/* General Form Styling */
#custom-product-form-container {
    font-family: 'Jost', sans-serif;
    border: none;
    padding: 0;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-step h4 {
    font-family: 'Libre Baskerville', serif;
    margin-bottom: 15px;
}

/* Tabs in Step 1 */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: none;
    flex-direction: column;
    gap: 10px;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: #F7EEED;
    border-radius: 8px;
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #777;
    position: relative;
    transition: color 0.3s;
    outline-width: 0px;
    outline-style: none;
}


.tab-link.active, .tab-link:hover {
    color: #333;
    border-bottom: none !important;
    border-bottom-color: transparent !important;
    background-color: #ebe2e1;
}

.tab-link.active:after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Variation & Option Groups */
.variation-group, .option-group, .input-group {
    margin-bottom: 20px;
}

.variation-group label, .option-group label, .input-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

select, input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
p.personalized-price {
    border-top: 1px solid;
    border-bottom: 1px solid;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
}
.button-container {
  display: flex;
  flex-direction: column; /* stacks children in a column */
  gap: 20px;              /* optional spacing between rows */
  align-items: flex-start; /* keep them left-aligned */
}





.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.3s;
}

.color-swatch.active {
    box-shadow: 0 0 0 2px #a25d5d;
}

/* Step 2 - Diamond Filter */
.filter-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.filter-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    max-width: 250px;
    min-width: 150px;
    position: relative;
    gap: 8px;
}

.filter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f9f5f5;
    padding: 8px 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
}

.info-icon {
    cursor: pointer;
    position: relative;
    color: #a25d5d;
    font-size: 16px;
}

.info-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #333;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 200px;
    font-size: 14px;
    font-weight: normal;
    text-align: left;
    z-index: 100;
    border: 1px solid #a25d5d;
    margin-bottom: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.info-icon:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
}

.select2-container .select2-selection--single {
    height: 45px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    font-family: 'Jost', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.price-output {
    text-align: center;
    font-size: 18px;
    margin: 20px auto;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    width: 100%;
    max-width: 400px;
    font-family: 'Jost', sans-serif;
}

/* Step 3 - Customizations */
.stone-selection label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stone-selection img {
    vertical-align: middle;
    border-radius: 8px;
}

/* Summary Table */
#summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

#summary-table th, #summary-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}

#summary-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

#total-price {
    font-size: 1.5em;
    font-weight: bold;
    text-align: right;
    margin-top: 20px;
    color: #a25d5d;
}

/* Navigation Buttons */
.prev-step, .next-step, .single_add_to_cart_button {
    padding: 12px 25px;
    background-color: #a25d5d;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.prev-step {
    background-color: #777;
}

.prev-step:hover, .next-step:hover, .single_add_to_cart_button:hover {
    opacity: 0.9;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .filter-container {
        gap: 15px;
    }
    .filter-box {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .filter-box {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .tab-link {
        padding: 10px 15px;
        margin: 0 5px;
        font-size: 14px;
    }
}


/* Image Swatches */
.image-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.image-swatch {
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.3s;
}

.image-swatch.active {
    box-shadow: 0 0 0 2px #a25d5d;
}

.image-swatch {
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.3s;
    position: relative; /* Required for tooltip positioning */
}

.image-swatch.active {
    box-shadow: 0 0 0 2px #a25d5d;
}

.image-swatch-tooltip, .color-swatch-tooltip {
    position: fixed; /* Use fixed positioning to handle scrolling */
    background-color: #ebe2e1;
    color: #181818;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    margin-bottom: 5px;
    pointer-events: none; /* Prevent tooltip from interfering with mouse events */
}

.image-swatches:hover .image-swatch-tooltip, .color-swatches:hover .color-swatch-tooltip {
    opacity: 1;
}



/* Stone Swatches (Complementary Birthstones) */
.stone-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Matches the image grid, responsive */
    gap: 15px;
    justify-items: center;
    margin-bottom: 20px;
}

.stone-swatch-label {
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.stone-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd; /* Default border */
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stone-swatch img {
    width: 60px; /* Adjust based on image size in attached */
    height: 60px;
    object-fit: contain;
    border-radius: 50%; /* Round like in the image */
    margin-bottom: 8px;
}

.stone-name {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.stone-swatch-label input[type="checkbox"]:checked + .stone-swatch {
    border: 2px solid #a25d5d; /* Red border like "Opal" in the image */
    box-shadow: 0 4px 8px rgba(162, 93, 93, 0.2); /* Subtle shadow for selected */
}

.stone-swatch:hover {
    border-color: #a25d5d;
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Hide checkboxes completely */
.stone-swatch-label input[type="checkbox"] {
    display: none !important;
}

