@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_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;
}

.st_selectors-label {
    margin-bottom: 10px;
    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;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.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;
}

@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);
}

.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 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: auto;
    height: auto;
    min-height: auto;
}

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

.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-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;
    border-radius: 0px 0px var(--box_color-border_radius) var(--box_color-border_radius);
}

.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;
}

.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;
}

.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 {
    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: auto;
    height: auto;
    min-height: auto;
}

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

/* 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;
}

.st_unavailable-message {
    color: #e41e1e;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.st_selector.unavailable + .st_unavailable-message {
    display: block;
}