/* Popup base (hidden by default) */
.wdrb-modal {
    display: none; /* keep hidden initially */
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease-in-out;
    z-index: 199998999999999 !important;
}

/* When active */
.wdrb-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Card animation */
.wdrb-card {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.1s ease;
	z-index: 99999 !important;
}

/* Animate card on active */
.wdrb-modal.active .wdrb-card {
    transform: translateY(0);
    opacity: 1;
}


.wdrb-head {
    padding: 18px 22px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wdrb-body {
    padding: 12px 25px;
}
.button.wdrb {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
}
.wdrb-price {
    font-weight: 700;
}
.wdrb-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}
.wdrb-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 10px 0;
}

/* for popup diamond details*/

.wdrb-custom-details .elementor-icon-box-wrapper {
    display: flex;
    align-items: center;
}

.wdrb-custom-details .elementor-icon-box-icon {
    margin-right: 15px; /* Adjust spacing between icon and text */
}

.wdrb-custom-details .elementor-icon-box-content {
    flex-grow: 1; /* Allows content to take up the remaining space */
}

/* Sets a fixed size for the icon container for both diamond and ring details */
.wdrb-custom-details .elementor-icon-box-icon span.elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 55px !important; /* Adjust this value to your desired size */
    height: 55px !important; /* Adjust this value to your desired size */
    flex-shrink: 0 !important; /* Prevents the container from shrinking */
}

/* Forces the images to fit perfectly inside the container */
.wdrb-custom-details .elementor-icon-box-icon img.wdrb-icon-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Ensures the GIF isn't stretched */
        border: 1px solid #1C3455;
    border-radius: 10px;
}

.wdrb-card {
  position: relative;
  z-index: 1;
  background: #fff; /* your card background (unchanged) */
  border-radius: 16px; /* adjust as you like */
  padding: 20px;
  overflow: hidden;
}

/* Gradient border only */
.wdrb-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; /* thickness of border */
  border-radius: inherit;
  background: linear-gradient(
    270deg,
    #ff0080,
    #7928ca,
    #2afadf,
    #ff0080
  );
  background-size: 300% 300%;
  animation: gradientBorder 6s ease infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: -1;
}

@keyframes gradientBorder {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



.elementor-icon-box-title span {
    font-weight: bold;
    font-size: 15px;
    font-style: normal;
    text-transform: uppercase;
}

.elementor-icon-box-description {
    font-size: 13px;
    color: #7b7b7b;
    line-height: 1.5;
}
/* =========================== */
/* === Navigation and Steps === */
/* =========================== */
.wdrb-steps {
    display: none; /* Original style, but grouped here for context */
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.wdrb-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: #f5f7fb;
    border: 1px solid transparent;
}
.wdrb-step.active {
    background: #e6f3ff;
    border-color: #b7dcff;
}


/* ========================= */
/* === Option and Grid Styles === */
/* ========================= */
.wdrb-grid {
    display: flex;
    gap: 12px;
    width: 300px;
    margin: 0 auto 4px auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.wdrb-option {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wdrb-option input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: none;
}
.wdrb-option.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}
.wdrb-grid-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}
.wdrb-option-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.wdrb-option-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wdrb-option-box:hover {
    border-color: #9ca3af;
}
.wdrb-option-box span {
    display: block;
    font-size: 22px;
    font-weight: 700;
}
.wdrb-option-label {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}
.wdrb-option.selected,
.wdrb-option-group.selected .wdrb-option-box {
    border-color: #ffffff;
    background: #dcffe44f;
    box-shadow: 4px 0px 13px 2px #cbcbcb !important;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.wdrb-option-box.wdrb-size-option.selected {
    background: #eefff4;
    border: 2px solid #bbffd4;
    box-shadow: 0 6px 14px rgb(94 109 100 / 20%);
    transition: background .2s, border-color .2s, box-shadow .2s;
}

/* =============================== */
/* === Live Output and Display === */
/* =============================== */
.wdrb-live-output {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    margin-top: 20px;
}
.wdrb-live-output .wdrb-live-item {
    flex: 1;
}
.wdrb-live-output .wdrb-live-price,
.wdrb-live-output .wdrb-live-carat {
    font-size: 2em;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.2;
}
.wdrb-live-output .wdrb-live-item + .wdrb-live-item {
    border-left: 1px solid #e2e8f0;
}
.wdrb-live-output .wdrb-description {
    font-size: 0.8em;
    color: #6b7280;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}
.wdrb-carat-out-val {
    font-weight: 600;
}
.wdrb-price-adj {
    font-size: 12px;
    color: #6b7280;
}
.wdrb-field-label {
    font-weight: 600;
    font-size: 17px;
    display: inline-block;
    margin-bottom: 10px;
}

/* ==================== */
/* === Slider Styles === */
/* ==================== */
.wdrb-slider-container {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 25px; /* Add padding to make space for ticks */
}
input.wdrb-field.wdrb-range {
    border-color: white;
    width: 100%;
}
.wdrb-carat-tooltip {
    position: absolute;
    top: -42px;
    background-color: #a2e0dc00;
    color: #1f2937;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    transition: left 0.1s ease-out;
    border: 1px solid #7ad4cc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.wdrb-carat-tooltip::after {
    content: "";
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #71b8b2 transparent transparent transparent;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #4a90e2;
    cursor: pointer;
    border-radius: 50%;
    margin-top: -2px;
    border: none;
    position: relative;
    z-index: 1;
}
input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #4a90e2;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    z-index: 1;
}
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
}
input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
}

/* === Slider Ticks === */
.wdrb-slider-container .wdrb-slider-ticks {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
}

.wdrb-slider-container .wdrb-slider-tick {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: #666;
}

.wdrb-slider-container .wdrb-slider-tick span {
    display: block;
}

.wdrb-slider-container .wdrb-slider-tick::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 5px;
    background-color: #ccc;
}


/* ============================ */
/* === Legacy/Placeholder Styles === */
/* ============================ */
.wdrb-shapes-grid, .wdrb-metals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.wdrb-shape-option, .wdrb-metal-option {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}
.wdrb-shape-option.selected, .wdrb-metal-option.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #3b82f6;
}
.wdrb-shape-option img {
    max-width: 100%;
    height: auto;
}
.wdrb-metal-option .color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #e5e7eb;
}



@media (max-width: 768px) {
  .wdrb-grid-boxes {
    margin-bottom: 8px;
  }
  .wdrb-card {
    max-width: 365px;
    border-radius: 6px;
  }
  
  .wdrb-live-output {
    padding: 8px;
    margin-top: 8px;
  }

  .wdrb-live-output .wdrb-live-price,
  .wdrb-live-output .wdrb-live-carat {
    font-size: 18px; /* Reduce font size for smaller screens */
  }

  .wdrb-live-output .wdrb-description {
    font-size: 11px;
    margin-top: 4px;
  }
  .wdrb-grid{
      margin: 0 auto 10px auto;
  }

  .wdrb-option-box {
    padding: 8px;
  }

  .wdrb-option-label {
    margin-top: 6px;
    font-size: 10px;
    
  }
  .wdrb-field-label {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 10px;
}

  .wdrb-head {
    padding: 10px 16px;
    font-size: 14px;
    text-align: center; /* Optional: helps on mobile layout */
  }
}

@media (max-width: 480px) {
  .wdrb-live-output .wdrb-live-price,
  .wdrb-live-output .wdrb-live-carat {
    font-size: 16px;
  }

  .wdrb-live-output .wdrb-description {
    font-size: 10px;
  }

  .wdrb-head {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.elementor-widget-container.wdrb-custom-details {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.elementor-icon-box-title {
    font-size: 16px;
    font-style: italic;
    text-transform: uppercase;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.elementor-icon-box-title span {
    font-weight: bold;
    font-style: normal;
}

.elementor-icon-box-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* This targets the total price display on the product page */
.woocommerce-price-amount {
    font-size: 20px;
    font-weight: bold;
    color: #2a2a2a;
}


/* Hide the duplicate subtotal in the mini-cart */
.widget_shopping_cart_content .mini_cart_item .mini-cart-item-subtotal {
    display: none !important;
}

/* Hide the stuck loader in the mini-cart */
.widget_shopping_cart_content .nasa-loader {
    display: none !important;
}

img.sizeguide {
    width: 45px;
    margin-left: 18px;
    margin-bottom: 15px;
    cursor: pointer; /* Makes it look clickable */
    transition: transform 0.2s ease, opacity 0.2s ease; /* Smooth transition for hover effect */
}

img.sizeguide:hover {
    opacity: 0.8; /* Slightly fade on hover */
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* --- NEW: Ring Size Guide Popup Styles --- */
.wdrb-sizeguide-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 1200px;
    width: 100%;
    padding: 25px 35px 35px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.wdrb-modal.active .wdrb-sizeguide-card {
    transform: translateY(0);
    opacity: 1;
}

.wdrb-sizeguide-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.wdrb-sizeguide-close:hover {
    color: #333;
}

.wdrb-sizeguide-header {
    text-align: center;
    margin-bottom: 25px;
}
.wdrb-sizeguide-header h2 {
    font-size: 26px;
    color: #333;
    margin: 0 0 5px 0;
}
.wdrb-sizeguide-header p {
    font-size: 16px;
    color: #777;
    margin: 0;
}

.wdrb-sizeguide-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.wdrb-sizeguide-tab-btn {
    padding: 12px 25px;
    border: 1px solid #48a9a6;
    background-color: #fff;
    color: #48a9a6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wdrb-sizeguide-tab-btn:hover {
    background-color: #f0f8f7;
}
.wdrb-sizeguide-tab-btn.active {
    background-color: #48a9a6;
    color: #fff;
}

.wdrb-sizeguide-tab-pane {
    display: none;
}
.wdrb-sizeguide-tab-pane.active {
    display: flex;
}

.wdrb-sizeguide-col {
    padding: 0 15px;
    box-sizing: border-box;
}
.wdrb-sizeguide-col-left {
    flex: 1 1 55%;
}
.wdrb-sizeguide-col-right {
    flex: 1 1 45%;
}
.wdrb-sizeguide-image {
    border: 1px solid #e7ddeb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.wdrb-sizeguide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.wdrb-sizeguide-col-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wdrb-sizeguide-col-left li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.wdrb-sizeguide-col-left li svg {
    flex-shrink: 0;
    margin-top: 1px;
}

div#cart-sidebar .nasa-loader {
    display: none;
}

.wdrb-sizeguide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wdrb-sizeguide-table th, .wdrb-sizeguide-table td {
    text-align: left;
    padding: 10px;
}
.wdrb-sizeguide-table thead {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}
.wdrb-sizeguide-table tbody tr {
    background-color: #fff;
}
.wdrb-sizeguide-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}
.wdrb-sizeguide-table td {
    color: #333;
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .wdrb-sizeguide-card {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .wdrb-sizeguide-header h2 {
        font-size: 22px;
    }
    .wdrb-sizeguide-header p {
        font-size: 14px;
    }
    .wdrb-sizeguide-tab-pane.active {
        flex-direction: column;
    }
    .wdrb-sizeguide-col {
        padding: 0;
    }
    .wdrb-sizeguide-col-right {
        margin-top: 30px;
    }
}

/** This for Change button **/
span.changediamonds, span.changering {
    margin-left: 10px;
    padding: 3px 8px;
    border: 1px solid #1C3455;
    border-radius: 5px;
    background: #1C3455;
    color: white;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* --- NEW: Help Icon Styles --- */
.wdrb-grid .helppopup {
    flex: 0 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
}
.wdrb-grid .helppopup img {
    width: 15px;
    transition: transform 0.2s ease;
}
.wdrb-grid .helppopup:hover img {
    transform: scale(1.1);
}

/* --- NEW: Help Popup Styles --- */
.wdrb-help-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 25px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.2s ease-out;
    text-align: left;
}
.wdrb-modal.active .wdrb-help-card {
    transform: translateY(0);
    opacity: 1;
}
.wdrb-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.wdrb-help-close:hover {
    color: #333;
}
.wdrb-help-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.wdrb-help-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
}
.wdrb-help-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}


.wdrb-field-label {
  display: flex;
  align-items: center;
}

.colorhpopup img,
.clearityhpopup img,
.carathpopup img {
  margin-left: 5px;  /* Space between the text and the image */
  width: 15px;       /* Ensure the image is the desired width */
  height: auto;      /* Maintain image's aspect ratio */
  display: inline-block; /* Ensure the image is inline and respects layout */
}

.wdrb-carat-out {
    display: inline-flex;
    align-items: center; /* keeps text + image aligned */
    gap: 4px; /* small space between text and icon */
}

.wdrb-carat-out-val {
    margin-right: 2px; /* spacing before "ct" */
	margin-left:3px;
}

.wdrb-carat-out img {
    width: 15px; /* adjust icon size */
    vertical-align: middle;
}


/* --- NEW: Color Help Popup Styles --- */
label.colorhpopup img {
    width: 15px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

label.colorhpopup img:hover {
    transform: scale(1.1);
}

.wdrb-color-help-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 25px 35px 35px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.wdrb-modal.active .wdrb-color-help-card {
    transform: translateY(0);
    opacity: 1;
}

.wdrb-color-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.wdrb-color-help-close:hover {
    color: #333;
}

.wdrb-color-help-header {
    text-align: center;
    margin-bottom: 25px;
}
.wdrb-color-help-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 5px 0;
}
.wdrb-color-help-header p {
    font-size: 15px;
    color: #777;
    margin: 0;
}

.wdrb-color-help-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.wdrb-color-help-tab-btn {
    padding: 10px 20px;
    border: 1px solid #1C3455;
    background-color: #fff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wdrb-color-help-tab-btn:hover {
    background-color: #f0f5fa;
}
.wdrb-color-help-tab-btn.active {
    background-color: #22917d !important;
    color: #fff;
}

.wdrb-color-help-tab-pane {
    display: none;
    text-align: center;
}
.wdrb-color-help-tab-pane.active {
    display: block;
}

/* ADD THESE NEW STYLES for the image and heading */
.wdrb-color-help-tab-pane img {
    max-height: 200px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border: 1px solid #eee;
    border-radius: 4px;
}
.wdrb-color-help-tab-pane h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: capitalize;
}
/* END of new styles */

.wdrb-color-help-tab-pane p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* --- NEW: Clarity Help Popup Styles --- */
label.clearityhpopup img {
    width: 15px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

label.clearityhpopup img:hover {
    transform: scale(1.1);
}

.wdrb-clarity-help-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 25px 35px 35px 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.wdrb-modal.active .wdrb-clarity-help-card {
    transform: translateY(0);
    opacity: 1;
}

.wdrb-clarity-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.wdrb-clarity-help-close:hover {
    color: #333;
}

.wdrb-clarity-help-header {
    text-align: center;
    margin-bottom: 25px;
}
.wdrb-clarity-help-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 5px 0;
}
.wdrb-clarity-help-header p {
    font-size: 15px;
    color: #777;
    margin: 0;
}

.wdrb-clarity-help-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.wdrb-clarity-help-tab-btn {
    padding: 10px 20px;
    border: 1px solid #1C3455;
    background-color: #fff;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wdrb-clarity-help-tab-btn:hover {
    background-color: #f0f5fa;
}
.wdrb-clarity-help-tab-btn.active {
    background-color: #22917d !important;
    color: #fff;
}

.wdrb-clarity-help-tab-pane {
    display: none;
    text-align: center;
}
.wdrb-clarity-help-tab-pane.active {
    display: block;
}

.wdrb-clarity-help-tab-pane img {
    max-width: 100%;
    display: block;
    max-height: 200px;
    object-fit: cover;
    padding: 10px;
    margin: 0 auto 15px auto;
    border: 1px solid #eee;
    border-radius: 4px;
}
.wdrb-clarity-help-tab-pane h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-transform: capitalize;
}

.wdrb-clarity-help-tab-pane p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* --- NEW: Carat Help Popup Styles --- */
label.carathpopup img {
    width: 15px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

label.carathpopup img:hover {
    transform: scale(1.1);
}

.wdrb-carat-help-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.wdrb-modal.active .wdrb-carat-help-card {
    transform: translateY(0);
    opacity: 1;
}

.wdrb-carat-help-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #aaa;
    cursor: pointer;
}

.wdrb-carat-help-header {
    text-align: center;
    margin-bottom: 20px;
}

.wdrb-carat-help-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0 0 5px 0;
}
.wdrb-carat-help-header p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.wdrb-carat-visualizer {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.wdrb-carat-visualizer .wdrb-hand-img {
    width: 100%;
    height: auto;
    display: block;
}

.wdrb-carat-visualizer .wdrb-diamond-visual {
    position: absolute;
    top: 50%; /* Adjust vertical position */
    left: 44%; /* Adjust horizontal position */
    width: 40px; /* Initial size */
    height: 40px; /* Initial size */
    transform: translate(-50%, -50%);
    transition: width 0.1s ease, height 0.1s ease;
}

.wdrb-carat-slider-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.wdrb-carat-slider-control input[type="range"] {
    flex-grow: 1;
}

.wdrb-carat-slider-control .wdrb-carat-label-min,
.wdrb-carat-slider-control .wdrb-carat-label-max {
    font-size: 13px;
    color: #666;
}

.wdrb-carat-live-display {
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* ================================= */
/* === Mobile Responsive Styles === */
/* ================================= */

@media (max-width: 768px) {
    /* --- Responsive styles for Help Popups --- */

    /* General Help Card (for Lab-grown/Natural) */
    .wdrb-help-card {
        padding: 20px 25px;
    }
    .wdrb-help-header h2 {
        font-size: 20px;
    }
    .wdrb-help-content p {
        font-size: 14px;
    }

    /* Color & Clarity Help Cards */
    .wdrb-color-help-card,
    .wdrb-clarity-help-card {
        padding: 20px;
        max-height: 90vh; /* Allow scrolling on small screens */
        overflow-y: auto;
    }
    .wdrb-color-help-header h2,
    .wdrb-clarity-help-header h2 {
        font-size: 20px;
    }
    .wdrb-color-help-header p,
    .wdrb-clarity-help-header p {
        font-size: 14px;
    }
    .wdrb-color-help-tabs,
    .wdrb-clarity-help-tabs {
        gap: 8px; /* Reduce gap between tabs */
        flex-wrap: wrap; /* Allow tabs to wrap to the next line */
    }
    .wdrb-color-help-tab-btn,
    .wdrb-clarity-help-tab-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    .wdrb-color-help-tab-pane p,
    .wdrb-clarity-help-tab-pane p {
        font-size: 14px;
    }

    /* Carat Visualizer Help Card */
    .wdrb-carat-help-card {
        padding: 20px;
    }
    .wdrb-carat-help-header h2 {
        font-size: 20px;
    }
    .wdrb-carat-help-header p {
        font-size: 13px;
    }
    .wdrb-carat-live-display {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    /* Finer adjustments for small phones */
    .wdrb-color-help-header h2,
    .wdrb-clarity-help-header h2,
    .wdrb-carat-help-header h2 {
        font-size: 18px;
	    padding-right: 35px;

    }

    .wdrb-color-help-tab-btn,
    .wdrb-clarity-help-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wdrb-carat-slider-control {
        gap: 10px;
    }
    .wdrb-carat-slider-control .wdrb-carat-label-min,
    .wdrb-carat-slider-control .wdrb-carat-label-max {
        font-size: 12px;
    }
}


/* --- RTL Slider Correction --- */

/* Reverses the slider so min is on the right and max is on the left */
[dir="rtl"] input[type="range"] {
  direction: rtl;
}

/* Prepares the tooltip for right-side positioning */
[dir="rtl"] .wdrb-carat-tooltip {
  transform: translateX(50%);
}

[dir="rtl"] .wdrb-carat-tooltip::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* Prepares the number ticks for right-side positioning */
[dir="rtl"] .wdrb-slider-container .wdrb-slider-tick {
  transform: translateX(50%);
}

[dir="rtl"] .wdrb-custom-details .elementor-icon-box-wrapper {
    gap: 10px;
}