.hvj-product-variation-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Metal Attribute Layout */
.hvj-metal-panel {
    margin-bottom: 0;
}
.hvj-metal-title {
    margin-bottom: 12px;
    font-size: 15px;
}
.hvj-metal-title .hvj-label {
    font-weight: 400;
}
.hvj-metal-title .hvj-value {
    font-weight: 600;
    margin-left: 5px;
}
.hvj-metal-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hvj-metal-swatches .hvj-swatch {
    cursor: pointer;
    border: 1px solid #d3d3d3;
    border-radius: 50%;
    outline: none;
    padding: 0;
    background-color: #f1f1f1;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}
.hvj-metal-swatches .hvj-swatch.active {
    outline: 1px solid #1a1a1a;
    outline-offset: 2px;
}

/* Collapsible General Panel styling */
.hvj-panel {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.hvj-panel-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #444;
    outline: none;
}
.hvj-panel-header .hvj-chevron svg {
    transition: transform 0.2s ease;
}
.hvj-panel.open .hvj-panel-header .hvj-chevron svg {
    transform: rotate(180deg);
}

.hvj-panel-content {
    padding-top: 15px;
}

/* Size buttons */
.hvj-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hvj-size-buttons .hvj-size-btn {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
}
.hvj-size-buttons .hvj-size-btn.active {
    border-color: #0b3c46;
    background-color: #f4f8f9;
    font-weight: bold;
}
.hvj-size-buttons .hvj-size-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Custom Select Dropdown styling */
.hvj-custom-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}
.hvj-custom-select-trigger {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    position: relative;
}
.hvj-custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #777;
}
.hvj-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #e0e0e0;
    background: #fff;
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.hvj-custom-select-options .hvj-custom-option {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}
.hvj-custom-select-options .hvj-custom-option:hover {
    background-color: #f5f5f5;
}
.hvj-custom-select-options .hvj-custom-option.selected {
    background-color: #e8f0fe;
    font-weight: bold;
}

/* Quantity & Add to Cart area */
.hvj-product-variation-widget .single_variation_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}
.hvj-product-variation-widget .quantity {
    display: inline-flex;
}
.hvj-product-variation-widget .quantity input {
    width: 60px;
    height: 48px;
    text-align: center;
    border: 1px solid #e0e0e0;
}
.hvj-product-variation-widget .single_add_to_cart_button {
    height: 48px;
    padding: 0 35px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.hvj-product-variation-widget .single_add_to_cart_button:hover {
    opacity: 0.9;
}

/* Reset wrapper styling */
.hvj-reset-wrapper {
    margin-top: 10px;
}
.hvj-reset-wrapper .reset_variations {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
}


/* ========================================
   HIDDEN NATIVE WOOCOMMERCE CONTROLS
======================================== */

.hvj-product-variation-widget .hvj-native-variation-selects {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
}

.hvj-product-variation-widget
.hvj-native-variation-selects
.wd-swatches-product,

.hvj-product-variation-widget
.hvj-native-variation-selects
.select2-container,

.hvj-product-variation-widget
.hvj-native-variation-selects
.wd-select {
    display: none !important;
}


/* ========================================
   METAL
======================================== */

.hvj-metal-panel {
    margin-bottom: 0;
}

.hvj-metal-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.hvj-metal-title .hvj-label {
    margin: 0;
    color: #7b8390;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.hvj-metal-title .hvj-value {
    margin: 0;
    color: #111111;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.hvj-metal-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.hvj-metal-swatches .hvj-swatch {
    display: block;
    width: 24px;
    height: 24px;
	min-height: 24px !important;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: none;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease,
        transform 180ms ease;
}

.hvj-metal-swatches .hvj-swatch:hover {
    transform: translateY(-1px);
}

.hvj-metal-swatches .hvj-swatch.active {
    border-color: #9ba4b2;
    outline: none;
}

.hvj-metal-swatches .hvj-swatch:focus-visible {
    outline: 1px solid #0b3c46;
    outline-offset: 4px;
}

.hvj-metal-swatches .hvj-metal-white {
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff 0%,
            #f9f9f9 24%,
            #d7d7d7 70%,
            #f4f4f4 100%
        );
}

.hvj-metal-swatches .hvj-metal-yellow {
    background:
        radial-gradient(
            circle at 35% 30%,
            #fffceb 0%,
            #ffe6a0 38%,
            #efd074 72%,
            #fff3c7 100%
        );
}

.hvj-metal-swatches .hvj-metal-rose {
    background:
        radial-gradient(
            circle at 35% 30%,
            #fff7f1 0%,
            #f7c3a5 42%,
            #dfa07b 72%,
            #fde4d3 100%
        );
}

.hvj-metal-swatches .hvj-metal-platinum {
    background:
        radial-gradient(
            circle at 35% 30%,
            #ffffff 0%,
            #e7e8e8 38%,
            #c2c5c7 72%,
            #f1f2f2 100%
        );
}


/* ========================================
   COLLAPSIBLE ATTRIBUTE PANELS
======================================== */

.hvj-panel {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #dfe3e8;
}

.hvj-panel-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 16px;
    width: 100%;
    min-height: 104px;
    margin: 0;
    padding: 24px 0;
    border: 0;
    background: transparent;
    color: #747d8a;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
}

.hvj-panel-header:hover,
.hvj-panel-header:focus {
    background: transparent;
    color: #747d8a;
}

.hvj-panel-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.hvj-panel-selected-value {
    overflow: hidden;
    color: #111111;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hvj-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #929ba8;
}

.hvj-chevron svg {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 220ms ease;
}

.hvj-panel.open .hvj-chevron svg {
    transform: rotate(180deg);
}

.hvj-panel-content {
    padding: 0 0 30px;
}

.hvj-panel-content[hidden] {
    display: none;
}


/* ========================================
   SIZE BUTTONS
======================================== */

.hvj-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hvj-size-buttons .hvj-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 0;
    margin: 0;
    padding: 10px 10px;
    border: 1px solid #dfe3e8;
    border-radius: 0;
    background: #ffffff;
    color: #111111;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.hvj-size-buttons .hvj-size-btn:hover {
    border-color: #9ba4b2;
    background: #ffffff;
}

.hvj-size-buttons .hvj-size-btn.active {
    border-color: #0e2856;
    border-width: 2px;
    background: #ffffff;
    color: #111111;
    font-weight: 400;
}

.hvj-size-buttons .hvj-size-btn:focus-visible {
    outline: 2px solid #0b3c46;
    outline-offset: 3px;
}


/* ========================================
   GENERAL ATTRIBUTE OPTIONS
======================================== */

.hvj-attribute-options {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.hvj-attribute-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    border-radius: 0;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition:
        background-color 160ms ease,
        color 160ms ease;
}

.hvj-attribute-option:last-child {
    border-bottom: 0;
}

.hvj-attribute-option:hover {
    background: #f7f7f7;
}

.hvj-attribute-option.active {
    background: #f1f4f5;
    color: #0b3c46;
    font-weight: 500;
}


/* ========================================
   DISABLED VARIATION OPTIONS
======================================== */

.hvj-swatch.disabled,
.hvj-size-btn.disabled,
.hvj-attribute-option.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.hvj-size-btn.disabled,
.hvj-attribute-option.disabled {
    text-decoration: line-through;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .hvj-metal-title .hvj-label,
    .hvj-metal-title .hvj-value,
    .hvj-panel-title {
        font-size: 25px;
    }

    .hvj-panel-header {
        min-height: 88px;
    }

    .hvj-size-buttons .hvj-size-btn {
        min-width: 120px;
        min-height: 64px;
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .hvj-metal-panel {
        margin-bottom: 0;
    }

    .hvj-metal-title {
        gap: 8px;
        margin-bottom: 18px;
    }

    .hvj-metal-title .hvj-label,
    .hvj-metal-title .hvj-value,
    .hvj-panel-title {
        font-size: 20px;
    }

    .hvj-metal-swatches {
        gap: 14px;
    }

    .hvj-metal-swatches .hvj-swatch {
        width: 24px;
        height: 24px;
		min-height: 24px !important
    }

    .hvj-panel-header {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 72px;
        padding: 18px 0;
    }

    .hvj-panel-selected-value {
        display: none;
    }

    .hvj-panel-title {
        min-width: 0;
    }

    .hvj-size-buttons {
        gap: 10px;
    }

    .hvj-size-buttons .hvj-size-btn {
        flex: 0 0 calc(33.333% - 7px);
        min-width: 0;
        min-height: 52px;
        padding: 10px 8px;
        font-size: 17px;
    }

    .hvj-attribute-option {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 16px;
    }
}

/* Metal is permanently visible and is never an accordion */
.hvj-metal-panel {
    display: block !important;
}

.hvj-metal-panel .hvj-metal-swatches {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hvj-metal-panel .hvj-panel-header,
.hvj-metal-panel .hvj-chevron {
    display: none !important;
}

.hvj-metal-swatches .hvj-swatch-color {
    background-image: none;
}

.hvj-metal-swatches .hvj-swatch[style*="background-color"] {
    background-image: none;
}