@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

#sternify-bundle {
    margin-block: 10px;
}

.st_swatch-color {
    display: block !important;
}

.st_dropdown-color, .st_dropdown-item-color {
    display: block !important;
}

.st_bundle-wrapper {
    --action_title-font_size: 15px;
    --action_title-font_weight: '400';
    --action_title-color: rgba(26, 161, 78, 1);
    --title_font_size: 15px;
    --title_font_weight: '400';
    --title_color: #000000;
    --highlighted_text-font_size: 18px;
    --highlighted_text-font_weight: '400';
    --highlighted_text-color: #000000;
    --price-font_size: 15px;
    --price-font_weight: '400';
    --price-color: #000000;
    --footer_text-font_size: 15px;
    --footer_text-font_weight: '400';
    --footer_text-color: #000000;
    --box_color-border_color: #000000;
    --box_color-background_color: #FFFFFF;
    --box_color-selected_background_color: #FFFFFF;
    --box_color-border_width: 2px;
    --box_color-border_radius: 10px;
    --badge-background_color: red;
    --badge-text_color: white;
    margin-block: 10px;
    text-align: start;
    line-height: 1.4;
}

.st_bundle-wrapper * {
    letter-spacing: normal;
    text-transform: initial;
}

.st_bundle-wrapper select:focus-visible {
    outline: initial;
    outline-offset: initial;
    box-shadow: initial;
}

.st_box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--action_title-font_size);
    font-weight: var(--action_title-font_weight, 500);
    color: var(--action_title-color);
    margin-bottom: 10px;
    justify-content: center;
}

.st_box-title:before,
.st_box-title:after {
    background-color: color-mix(in srgb, var(--box_color-border_color) 30%, transparent);
    content: "";
    flex-grow: 1;
    height: 2px;
}


.st_box-border {
    flex-grow: 1;
    background-color: #D1D5DB;
    height: 0.5px;
}

.st_selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    flex: 0 1 auto;
    min-width: min-content;
}

.st_availability-indicator {
    color: #e41e1e;
    font-size: 12px;
    font-style: italic;
    margin-left: 8px;
    display: none;
}

.st_selectors-label {
    font-size: 12px;
    color: var(--highlighted_text-color) !important;
}

.st_select-boxes {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    /* animation: append-animate .3s ease-in-out; */
    transform-origin: left;
}

.st_select-boxes-hidden {
    display: none;
}

.st_select-boxes-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.st_select-box-content {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.st_select-box-index {
    text-align: center;
    font-size: 11px;
    min-width: 16px;
    color: var(--title-color) !important;
    /* background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    height: 30px; */
}

.st_select-box-selectors {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    flex: 1;
    align-items: stretch;
    row-gap: 5px;
}

@keyframes append-animate {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.st_bundle-box {
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
    background-color: #ffffff;
    border-radius: var(--box_color-border_radius);
    background-color: var(--box_color-background_color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--box_color-border_color) 30%, transparent);
}

.st_bundle-box-content {
    padding: 10px 20px;
}

.st_bundle-box.active {
    background-color: var(--box_color-selected_background_color) !important;
    /* border-width: var(--box_color-border_width) !important; */
    box-shadow: inset 0 0 0 var(--box_color-border_width) var(--box_color-border_color);
    cursor: default;
}

.st_bundle-box[badgeActive="true"] {
    margin-top: 15px;
}

.st_input-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.st_input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.st_input-circle {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid #fff;
    position: relative;
    display: block !important;
    overflow: hidden;
    opacity: 0.3;
    background: #fff;
    box-shadow: 0 0 0 2px var(--box_color-border_color, #000);
    box-sizing: border-box;
}

/* .st_bundle-box.active .st_input-circle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: var(--box_color-border_color);
} */

.st_bundle-box.active .st_input-circle {
    opacity: 1;
    background: var(--box_color-border_color, #000);
}

.st_input-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    word-break: break-word;
}

.st_input-highlighted-tag {
    font-size: var(--highlighted_text-font_size);
    font-weight: var(--highlighted_text-font_weight);
    color: var(--highlighted_text-color);
    word-break: break-word;
}

.st_input-title-wrapper {
    display: flex;
    flex-wrap: wrap;
    -moz-column-gap: 8px;
    column-gap: 8px;
    align-items: center;
}

.st_input-label:empty {
    display: none;
}

.st_input-label {
    padding: 4px 8px;
    font-size: 14px;
    background-color: var(--label-background_color);
    color: var(--label-text_color);
    border-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_input-title {
    font-size: var(--title-font_size);
    font-weight: var(--title-font_weight, 500);
    color: var(--title-color);
    word-break: break-word;
}


.st_selector {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    font-family: system-ui;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0 1px #c8c8c8 !important;
    border: none;
    border-radius: 0;
    padding: 6px 24px 6px 6px;
    margin: 0;
    background-image: url("data:image/svg+xml;utf8,<svg width='10' height='4' viewBox='0 0 10 4' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 4L0.669872 0.25L9.33013 0.249999L5 4Z' fill='black'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-color: #fff !important;
    background-size: initial;
    color: #000 !important;
    outline: none;
    min-width: 100px;
    max-width: 180px;
    width: auto;
    height: 100%;
    min-height: auto;
    box-sizing: border-box;
    border-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_selector:focus {
    border: none;
    box-shadow: 0 0 0 2px black !important;
}

.st_selector option[disabled] {
    color: #999 !important;
    background-color: #f5f5f5 !important;
}

.st_selector option[data-unavailable="true"] {
    color: #e41e1e !important;
    font-style: italic;
    background-color: #ffe6e6 !important;
    text-decoration: line-through;
}

.st_price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.st_compare-at-price {
    font-size: var(--highlighted_text-font_size);
    color: var(--compare_at_price-color);
    font-weight: var(--highlighted_text-font_weight);
    position: relative;
    text-decoration: line-through;
}

.st_discounted-price {
    font-size: var(--title-font_size);
    color: var(--price-color);
    font-weight: var(--title-font_weight, 500);
    min-width: max-content;
}

/* .st_compare-at-price::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid rgb(0, 0, 0);
    transform: rotate(-10deg);
} */

.st_input-and-price-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px
}

.st_input-and-price-wrapper[badgeActive='true'] {
    margin-top: 5px;
}

.st_highlighted-badge {
    position: absolute;
    top: -10px;
    background-color: var(--badge-background_color);
    color: var(--badge-text_color);
    padding: 6px 8px;
    border-radius: 0px 0px 10px 10px;
    right: calc(var(--box_color-border_radius) + 15px);
    font-family: sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.st_highlighted-badge::after {
    display: block;
    position: absolute;
    top: 0;
    right: -10px;
    width: 0px;
    height: 0px;
    -webkit-transform: rotate(360deg);
    border-style: solid;
    border-width: 11px 0 0 11px;
    border-color: transparent transparent transparent var(--badge-background_color);
    content: "";
    filter: brightness(0.7);
}

.st_highlighted-badge::before {
    display: block;
    position: absolute;
    top: 0;
    left: -10px;
    width: 0px;
    height: 0px;
    -webkit-transform: rotate(360deg);
    transform: scaleX(-1);
    border-style: solid;
    border-width: 11px 0 0 11px;
    border-color: transparent transparent transparent var(--badge-background_color);
    content: "";
    filter: brightness(0.7);
}

.st_price_label {
    font-size: 13px;
    font-weight: 400;
}

.st_footer-wrapper {
    display: flex;
    justify-content: space-between;
    font-size: var(--footer_text-font_size);
    font-weight: var(--footer_text-font_weight);
    color: var(--footer_text-color);
}

.st_footer-left-text {
    width: 50%;
    text-align: start;
    color: var(--footer_text-color);
}

.st_footer-right-text {
    width: 50%;
    text-align: end;
}

.st_custom-image {
    width: var(--bundle_image-size);
    min-width: var(--bundle_image-size);
    height: var(--bundle_image-size);
    min-height: var(--bundle_image-size);
    border-radius: var(--bundle_image-border_radius);
    object-fit: contain;
}

.st_gift-products-container {
    display: flex;
    border-radius: 0px 0px var(--box_color-border_radius) var(--box_color-border_radius);
    gap: 1px;
    flex-direction: column;
    overflow: hidden;
}

.st_gift-product-wrapper {
    background-color: var(--gift_product-background_color_selected);
    padding: 10px;
    padding-inline: max(var(--box_color-border_radius), 10px);
    transition: padding 0.2s ease-in-out;
}

.st_bundle-box:not(.active) .st_gift-product-wrapper {
    padding-block: 5px;
    background-color: var(--gift_product-background_color);
}

.st_bundle-box:not(.active) .st_gift-product-content {
    padding: 0;
}

.st_gift-product-content a {
    text-decoration: none;
    color: var(--gift_product-text_color);
}

.st_gift-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.st_gift-product img {
    width: var(--gift_product-size);
    height: var(--gift_product-size);
    border-radius: var(--gift_product-border_percent);
    object-fit: contain;
    transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
}

.st_bundle-box:not(.active) .st_gift-product img {
    width: 30px;
    height: 30px;
    border-radius: var(--gift_product-border_percent);
}

.st_gift-product-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--gift_product-text_color_selected);
    transition: font-size 0.2s ease-in-out;
}

.st_bundle-box:not(.active) .st_gift-product-title {
    font-size: 12px;
    color: var(--gift_product-text_color);
}

.st_gift-product-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 3px;
    column-gap: 8px;
    transition: padding 0.2s ease-in-out;
    width: 100%;
    min-width: 0;
}

.st_gift-variant-selectors {
    display: flex;
    gap: 8px;
    opacity: 1;
    max-height: 50px;
    visibility: visible;
    transform-origin: top;
    transform: scaleY(1);
    transition: all 0.2s ease-in-out;
    width: 100%;
    flex: 1;
}

.st_bundle-box:not(.active) .st_gift-variant-selectors {
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    transform: scaleY(0);
    margin: 0;
    padding: 0;
}

.st_gift-selector-wrapper {
    display: flex;
}

.st_gift-selector {
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    font-family: system-ui;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 0 0 1px grey !important;
    border: none;
    border-radius: 0;
    padding: 6px 24px 6px 6px;
    margin: 0;
    background-image: url("data:image/svg+xml;utf8,<svg width='10' height='4' viewBox='0 0 10 4' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5 4L0.669872 0.25L9.33013 0.249999L5 4Z' fill='black'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-color: #fff !important;
    background-size: initial;
    color: #000 !important;
    outline: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.st_gift-selector:focus {
    border: none;
    box-shadow: 0 0 0 2px black !important;
}

.st_gift-selector option {
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Error styles for out of stock */
.st_error-box {
    background-color: #ffebeb;
    color: #e41e1e;
    padding: 12px;
    margin-top: 10px;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.st_selector-wrapper {
    position: relative;
}

.st_selector.unavailable {
    box-shadow: 0 0 0 1px #e41e1e !important;
    border: none;
}

/* Unavailable styling for swatch mode */
.st_selector-wrapper--swatch:has(.st_selector.unavailable) .st_swatch-item--selected,
.st_selector--swatch.unavailable ~ * .st_swatch-item--selected {
    box-shadow: 0 0 0 1px #e41e1e !important;
}

/* Unavailable styling for text-image mode */
.st_selector--text-image.unavailable ~ .st_custom-dropdown .st_dropdown-trigger,
.st_custom-dropdown:has(.st_selector.unavailable) .st_dropdown-trigger {
    box-shadow: 0 0 0 1px #e41e1e !important;
    border-color: #e41e1e !important;
}

.st_unavailable-message {
    color: #e41e1e;
    font-size: 12px;
    margin-top: 8px;
    margin-left: 26px; /* Align with selectors content, accounting for index width */
    padding: 4px 8px;
    display: none;
}


/* Enhanced Selector Modes Styles */

/* Custom Text + Image Dropdown */
.st_selector-wrapper--text-image {
    position: relative;
    width: auto;
    flex: 0 1 auto;
    min-width: fit-content;
}

.st_custom-dropdown {
    position: relative;
    width: auto;
    min-width: 120px;
    height: 100%;
}

.st_dropdown-trigger {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background-color: #fff;
    box-shadow: 0 0 0 1px #c8c8c8;
    border-radius: 0;
    cursor: pointer;
    min-height: 36px;
    gap: 8px;
    transition: border-color 0.2s ease;
    border-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_dropdown-trigger:hover {
    border-color: #999;
}

.st_custom-dropdown.st_dropdown--open .st_dropdown-trigger {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.st_dropdown-selected {
    display: flex;
    align-items: center;
    width: auto;
    gap: 8px;
    flex: 1;
    white-space: nowrap;
}

.st_dropdown-image,
.st_dropdown-item-image,
.st_dropdown-color,
.st_dropdown-item-color {
    width: var(--selector_image-size, 24px);
    height: var(--selector_image-size, 24px);
    object-fit: cover;
    border-radius: var(--selector_image-border_radius, 3px);
    background: #f5f5f5;
}

.st_dropdown-color,
.st_dropdown-item-color {
    border: 1px solid #E1E3E5;
    flex-shrink: 0;
}

.st_dropdown-text,
.st_dropdown-item-text {
    font-size: 14px;
    color: #000;
}

.st_dropdown-arrow {
    width: 10px;
    height: 6px;
    color: #666;
    transition: transform 0.2s ease;
}

.st_custom-dropdown.st_dropdown--open .st_dropdown-arrow {
    transform: rotate(180deg);
}

.st_dropdown-menu {
    position: absolute;
    top: 102%;
    left: 0;
    right: 0;
    width: fit-content;
    min-width: max-content;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.st_dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.st_dropdown-item:hover {
    background-color: #f5f5f5;
}

.st_dropdown-item--selected {
    background-color: #e9ecef;
}

.st_dropdown-item--selected:hover {
    background-color: #e9ecef;
}

/* Hide the native select */
.st_selector--text-image {
    display: none;
}

/* Loading states */
.st_selector-preview--loading,
.st_selector-swatch--loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Accessibility improvements */
.st_selector--text-image:focus + .st_selector-preview {
    box-shadow: 0 0 0 2px #2c5aa0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .st_selector-wrapper--text-image {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .st_selector--text-image {
        width: 100%;
    }
    
    .st_selector-preview {
        width: 60px;
        height: 60px;
        align-self: flex-start;
    }
    
    .st_selector-swatch {
        width: 45px;
        height: 45px;
    }
    
    .st_selector-swatches {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .st_selector-swatch {
        width: 40px;
        height: 40px;
    }
    
    .st_selector-swatches {
        gap: 4px;
    }
    
    .st_selector-preview {
        width: 50px;
        height: 50px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .st_selector-swatch {
        border-color: #000;
    }
    
    .st_selector-swatch.active {
        border-color: #000;
        box-shadow: 0 0 0 2px #000;
    }
    
    .st_selector-preview {
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .st_selector-swatch,
    .st_selector-preview-image {
        transition: none;
    }
    
    .st_selector-swatch:hover:not(.unavailable) {
        transform: none;
    }
    
    .loading {
        animation: none;
        background: #e0e0e0;
    }
}

/* Option display styling */
.st_option-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.st_option-image-container {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
}

.st_option-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.st_option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.st_option-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.st_option-value {
    font-size: 14px;
    color: #212529;
    font-weight: 400;
}

/* Make option display clickable */
.st_option-display {
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.st_option-display:hover {
    background-color: #e9ecef;
}

.st_option-display:active {
    background-color: #dee2e6;
}

.st_option-dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.st_option-display.open .st_option-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menu */
.st_option-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.st_option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.st_option-item:hover {
    background-color: #f8f9fa;
}

.st_option-item.selected {
    background-color: #e3f2fd;
}

.st_option-item[data-unavailable="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.st_option-item[data-unavailable="true"]:hover {
    background-color: transparent;
}

.st_option-item-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #dee2e6;
}

.st_option-item-text {
    font-size: 14px;
    color: #212529;
}

/* Position relative for dropdown positioning */
.st_selector-wrapper {
    position: relative;
}


/* Image Swatch Styles */
.st_selector-wrapper--swatch {
  box-shadow: inset 0 0 0 1px #5858583e;
  border-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_swatches-container {
  display: flex;
  flex-wrap: wrap;
  height: 100%;
}

.st_swatch-item {
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  opacity: 1;
  position: relative;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st_swatch-item:first-child {
  border-top-left-radius: calc(var(--box_color-border_radius) * 0.5);
  border-bottom-left-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_swatch-item:last-child {
  border-top-right-radius: calc(var(--box_color-border_radius) * 0.5);
  border-bottom-right-radius: calc(var(--box_color-border_radius) * 0.5);
}

.st_swatch-image-wrapper {
  width: var(--selector_image-size, 50px);
  height: var(--selector_image-size, 50px);
  border-radius: var(--selector_image-border_radius, 4px);
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st_swatch-item--selected {
  box-shadow: inset 0 0 0 1.5px var(--box_color-border_color, #000);
}

/* .st_swatch-item--selected .st_swatch-image-wrapper {
  box-shadow: 0 0 0 2px var(--box_color-border_color, #000);
} */

.st_swatch-item:hover:not(.st_swatch-item--unavailable):not(.st_swatch-item--sold-out) .st_swatch-image-wrapper {
  /* box-shadow: 0 0 0 2px var(--box_color-border_color, #000); */
  /* opacity: 0.8; */
}

.st_swatch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st_swatch-placeholder {
  font-size: 20px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
}

/* Unavailable swatch styles */
.st_swatch-item--unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

.st_swatch-item--unavailable::after,
.st_swatch-item--unavailable::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 70%;
  background-color: #e41e1e;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.st_swatch-item--unavailable::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.st_swatch-item--unavailable::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.st_swatch-item--unavailable:hover {
  opacity: 0.4 !important;
}

.st_swatch-item--unavailable .st_swatch-image-wrapper {
  border-color: #ccc !important;
}

/* Sold out swatch styles */
.st_swatch-item--sold-out {
  opacity: 0.6;
  cursor: not-allowed;
}

.st_swatch-sold-out-overlay {
  position: absolute;
  width: 80%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  height: 50%;
  background: linear-gradient(45deg, transparent 46%, #ff0000 46%, #ff00008a 54%, transparent 54%);
  z-index: 2;
  pointer-events: none;
}

.st_swatch-item--sold-out:hover {
  opacity: 0.6 !important;
}

.st_swatch-item--sold-out .st_swatch-image-wrapper {
  border-color: #ff6666 !important;
}

.st_selector--swatch {
  display: none;
}

/* Item-level unavailable styling */
.st_item-unavailable {
  opacity: 0.6;
  pointer-events: none;
}

.st_item-unavailable-message {
  color: #ff0000;
  font-size: 12px;
  margin-top: 8px;
  padding: 4px 8px;
  background-color: #ffe6e6;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}
