:root {
    --moonbundle-header-title-color: "#020202";
    --moonbundle-header-title-font-size: 14px;
    --moonbundle-header-title-weight: "bold";
    --moonbundle-header-show-title: #0000004d;

    --moonbundle-title-color: "#020202";
    --moonbundle-title-font-size: 20px;
    --moonbundle-title-weight: 500;
    --moonbundle-title-margin-bottom: 5px;

    --moonbundle-subtitle-color: "#444444";
    --moonbundle-subtitle-font-size: 14px;
    --moonbundle-subtitle-weight: "normal";

    --moonbundle-label-text-color: "#444444";
    --moonbundle-label-text-font-size: 12px;
    --moonbundle-label-text-weight: "normal";

    --moonbundle-best-seller-text-color: "#FFFFFF";
    --moonbundle-best-seller-text-font-size: 12px;
    --moonbundle-best-seller-text-weight: "bold";

    --moonbundle-price-color: "#020202";
    --moonbundle-price-font-size: 20px;
    --moonbundle-price-weight: 500;

    --moonbundle-compare-at-price-color: "#444444";
    --moonbundle-compare-at-price-font-size: 14px;
    --moonbundle-compare-at-price-weight: "normal";

    --moonbundle-colors-selected-bg: "#FFFFFF";
    --moonbundle-colors-bg: "#FFFFFF";
    --moonbundle-colors-border: "#020202";
    --moonbundle-colors-selected-border: "#d3d3d3";
    --moonbundle-colors-bg-label: "#737373";
    --moonbundle-colors-best-seller: "#FF3131";

    --moonbundle-colors-border-radius: 1px;

    --moonbundle-padding-offer: 30px 0 10px 0;

    --moonbundle-gift-title-text-color: '#000000';
    --moonbundle-gift-title-bg-color: '#737373';
    --moonbundle-gift-title-font-size: 10px;
    --moonbundle-gift-title-font-weight: 500;

    --moonbundle-gift-locked-bg-color: '#737373';
    --moonbundle-gift-locked-font-size: 10px;
    --moonbundle-gift-locked-font-weight: 500;
    --moonbundle-gift-locked-text-color: '#737373';

    --moonbundle-gift-footer-font-size: 10px;
    --moonbundle-gift-footer-font-weight: 500;
    --moonbundle-gift-footer-text-color: '#737373';
    --moonbundle-gift-footer-bg-color: '#737373';

    --moonbundle-gift-border-color: #aaaaaa;
    --moonbundle-gift-title-font-size: '16px';
    --moonbundle-gift-title-font-weight: 'bold';
    --moonbundle-gift-border: dashed;

    --moonbundle-gift-label-font-size: 10px;
    --moonbundle-gift-label-font-weight: 500;
    --moonbundle-gift-label-bg-color: '#737373';
    --moonbundle-gift-label-text-color: '#737373';

    --moonbundle-offer-img-size: 35px;
    --moonbundle-offer-img-border-radius: 5px;

    --moonbundle-gift-img-size: 80px;

}

.moonbundle-box {
    width: 100% !important;
    letter-spacing: normal !important;
    line-height: normal !important;
}

.moonbundle-box .moonbundle-title {
    font-weight: var(--moonbundle-header-title-weight);
    font-style: var(--moonbundle-header-title-style);
    font-size: var(--moonbundle-header-title-font-size);
    color: var(--moonbundle-header-title-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--moonbundle-title-margin-bottom);
}

.moonbundle-box .moonbundle-title::before,
.moonbundle-box .moonbundle-title::after {
    background-color: var(--moonbundle-header-show-title);
    content: "";
    flex-grow: 1;
    height: 2px;
}

.moonbundle-box .moonbundle-subtitle {
    color: var(--moonbundle-subtitle-color);
    padding: 0 0 20px 0;
    font-weight: var(--moonbundle-subtitle-weight);
    font-size: var(--moonbundle-subtitle-font-size);
    font-style: var(--moonbundle-subtitle-style);
    text-align: center;
}

.moonbundle-option input[type='radio'] {
    accent-color: var(--moonbundle-colors-selected-border);
    margin: 0 !important;
}

/* Vertical Options */

.moonbundle-box .moonbundle-options-vertical {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.moonbundle-options-vertical .moonbundle-option {
    flex-grow: 1;
    flex-basis: 0;
    text-align: center;
    border: 2px solid var(--moonbundle-colors-border);
    border-radius: var(--moonbundle-colors-border-radius);
    background-color: var(--moonbundle-colors-bg);
    position: relative;
    height: 100%;
}

.moonbundle-options-vertical .moonbundle-option-checkbox {
    margin-top: 15px;
}

.moonbundle-options-vertical .moonbundle-option-thumbnail {
    align-content: start;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moonbundle-options-vertical .moonbundle-option-thumbnail img {
    max-width: 50px;
    max-height: 50px;
}

.moonbundle-options-vertical .moonbundle-option-title {
    font-weight: var(--moonbundle-title-weight);
    font-style: var(--moonbundle-title-style);
    font-size: var(--moonbundle-title-font-size);
    color: var(--moonbundle-title-color);
    margin-top: 5px;
}

.moonbundle-options-vertical .moonbundle-option-subtitle {
    color: var(--moonbundle-subtitle-color);
    font-size: var(--moonbundle-subtitle-font-size);
    font-weight: var(--moonbundle-subtitle-weight);
    font-style: var(--moonbundle-subtitle-style);
    margin: 5px 0;
}

.moonbundle-options-vertical .moonbundle-option-single-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    margin: 7px 0;
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-vertical .moonbundle-option-new-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    margin: 7px 0;
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-vertical .moonbundle-option-old-price {
    text-decoration: line-through;
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    margin: 7px 0;
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-vertical .moonbundle-option-active {
    background-color: var(--moonbundle-colors-selected-bg);
    border-color: var(--moonbundle-colors-selected-border);
}

.moonbundle-options-vertical {
    .moonbundle-best-seller-box-block {
        position: absolute;
        z-index: 1;
        top: -8px;
        width: 100%;
        right: 0px;
        left: calc(50%);
        transform: translateX(-50%);
    }

    .moonbundle-best-seller-box-sticker {
        position: absolute;
        z-index: 1;
        top: -15px;
        left: calc(50%);
        transform: translateX(-50%);
    }

    .moonbundle-best-seller-box-model {
        width: 100%;
        position: absolute;
        z-index: 1;
        top: -2px;
        left: calc(50%);
        transform: translateX(-50%);
    }

    .moonbundle-best-seller-box-left {
        left: calc(0%);
        position: absolute;
        z-index: 1;
        top: -25px;
    }
}

.moonbundle-options-vertical .moonbundle-best-seller-block {
    margin: 0 8px;
    padding: 4px 8px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-vertical .moonbundle-best-seller-block:before,
.moonbundle-options-vertical .moonbundle-best-seller-block:after {
    display: block;
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    content: "";
    border-bottom-width: 8px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    filter: brightness(0.7);
}

.moonbundle-options-vertical .moonbundle-best-seller-block:before {
    left: 0;
    border-left: 9px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-vertical .moonbundle-best-seller-block:after {
    right: 0;
    border-right: 9px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-vertical .moonbundle-best-seller-sticker {
    position: relative;
    right: -15px;
    transform: rotate(7deg);
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-vertical .moonbundle-best-seller-model {
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
    text-align: center;
}

.moonbundle-options-vertical .moonbundle-best-seller-left {
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-vertical .moonbundle-label-inside {
    padding: 3px 5px;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: var(--moonbundle-colors-border-radius);
    margin-top: 5px;
}

.moonbundle-options-vertical .moonbundle-label-outside {
    left: 0px;
    position: absolute;
    bottom: 0;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: 0 0 var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius);
    width: 100%;
}

/* Horizontal options */

.moonbundle-box .moonbundle-options-horizontal {
    display: block;
}

.moonbundle-options-horizontal .moonbundle-option {
    border: 2px solid var(--moonbundle-colors-border);
    border-radius: var(--moonbundle-colors-border-radius);
    background-color: var(--moonbundle-colors-bg);
    margin-bottom: 10px;
}

.moonbundle-options-horizontal .moonbundle-option-details {
    display: flex;
    align-items: center;
    line-height: normal !important;
}

.moonbundle-options-horizontal .moonbundle-option-checkbox {
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-right: 10px;
}

.moonbundle-options-horizontal .moonbundle-option-price {
    width: 30%;
    align-content: end;
    display: flex;
    flex-direction: column;
    text-align: right;
    text-wrap: nowrap;
}

.moonbundle-options-horizontal .moonbundle-option-col {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: start;
}

.moonbundle-options-horizontal .moonbundle-option-thumbnail {
    align-content: start;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.moonbundle-options-horizontal .moonbundle-option-thumbnail img {
    max-width: 50px;
    max-height: 50px;
}

.moonbundle-options-horizontal .moonbundle-option-title {
    font-weight: var(--moonbundle-title-weight);
    font-style: var(--moonbundle-title-style);
    font-size: var(--moonbundle-title-font-size);
    color: var(--moonbundle-title-color);
    margin-right: 5px;
}

.moonbundle-options-horizontal .moonbundle-option-subtitle {
    color: var(--moonbundle-subtitle-color);
    font-size: var(--moonbundle-subtitle-font-size);
    font-weight: var(--moonbundle-subtitle-weight);
    font-style: var(--moonbundle-subtitle-style);
}

.moonbundle-options-horizontal .moonbundle-option-single-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-horizontal .moonbundle-option-new-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    text-align: right;
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-horizontal .moonbundle-option-old-price {
    text-decoration: line-through;
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    text-align: right;
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-horizontal .moonbundle-option-each-price {
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    text-align: right;
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-vertical .moonbundle-option-each-price {
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    margin: 7px 0;
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-horizontal .moonbundle-option-active {
    background-color: var(--moonbundle-colors-selected-bg);
    border-color: var(--moonbundle-colors-selected-border);
}

.moonbundle-options-horizontal {
    .moonbundle-best-seller-box-block {
        position: absolute;
        z-index: 1;
        top: -8px;
        right: 20px;
    }

    .moonbundle-best-seller-box-sticker {
        position: absolute;
        z-index: 1;
        top: -15px;
        right: 20px;
    }

    .moonbundle-best-seller-box-model {
        width: 100%;
        left: calc(50%);
        transform: translateX(-50%);
        position: absolute;
        z-index: 1;
        top: -2px;
        right: 20px;
    }

    .moonbundle-best-seller-box-left {
        width: fit-content;
        margin-left: 20px !important;
    }
}

.moonbundle-options-horizontal .moonbundle-best-seller-block {
    margin: 0 8px;
    padding: 2px 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-horizontal .moonbundle-best-seller-block:before,
.moonbundle-options-horizontal .moonbundle-best-seller-block:after {
    display: block;
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    content: "";
    border-bottom-width: 8px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    filter: brightness(0.7);
}

.moonbundle-options-horizontal .moonbundle-best-seller-block:before {
    left: 0;
    border-left: 8px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-horizontal .moonbundle-best-seller-block:after {
    right: 0;
    border-right: 8px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-horizontal .moonbundle-best-seller-sticker {
    position: relative;
    right: -15px;
    transform: rotate(7deg);
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-horizontal .moonbundle-best-seller-model {
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-horizontal .moonbundle-best-seller-left {
    left: 20px;
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-horizontal .moonbundle-label-inside {
    padding: 2px 8px;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: var(--moonbundle-colors-border-radius);
    margin: 3px 0 3px 0;
}

.moonbundle-options-horizontal .moonbundle-label-outside {
    position: absolute;
    left: calc(50%);
    transform: translateX(-50%);
    bottom: -8px;
    padding: 3px 5px;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-options-horizontal .moonbundle-variants-box {
    display: none;
    margin-top: 10px;
}

.moonbundle-options-vertical .moonbundle-variants-box {
    display: none;
    margin-top: 10px;
}

.moonbundle-options-horizontal .moonbundle-variant-row {
    display: flex;
    gap: 6px;
    align-items: last baseline;
}

.moonbundle-options-vertical .moonbundle-variant-row {
    display: flex;
    align-items: last baseline;
}

.moonbundle-options-horizontal .moonbundle-variant-id {
    align-content: start;
    display: flex;
    flex-direction: row;
    width: 10%;
}


/** Select variant */

.moonbundle-variant-select select {
    width: 100%;
    border: 1px solid var(--moonbundle-colors-selected-border) !important;
    padding: 8px 20px 8px 10px;
    background-color: rgb(255, 255, 255) !important;

    border-radius: var(--moonbundle-colors-border-radius) !important;
    color: rgb(28, 29, 29) !important;

    appearance: none;
    background-image: url('./dropdown-icon.svg');
    background-size: 7px;
    background-repeat: no-repeat;
    background-position: calc(100% - 7px) center;
    background-image: url('./dropdown-icon.svg');
    background-size: 7px;
    background-repeat: no-repeat;
    background-position: calc(100% - 7px) center;
}

.moonbundle-options-vertical .moonbundle-variant-select select {
    width: 100%;
    border: 1px solid var(--moonbundle-colors-selected-border) !important;
    padding: 7px 5px 7px 5px;
    background-color: rgb(255, 255, 255) !important;
    border-radius: var(--moonbundle-colors-border-radius) !important;
    color: rgb(28, 29, 29) !important;

    appearance: none;
    background-image: url('./dropdown-icon.svg');
    background-size: 7px;
    background-repeat: no-repeat;
    background-position: calc(100% - 5px) center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moonbundle-options-vertical .moonbundle-variant-select {
    align-items: center;
    flex-grow: 1;
    margin: 0px 4px;
    width: 100%;
}

.moonbundle-variant-select select:focus,
.moonbundle-variant-select select:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.moonbundle-gift-horizontal-container-left .moonbundle-variant-select select {
    border: 0px !important;
}

.moonbundle-gift-option .moonbundle-variant-select select {
    border: 1px solid var(--moonbundle-gift-border-color) !important;
}

.moonbundle-option-name {
    font-size: 10px;
    color: var(--moonbundle-gift-footer-text-color);
    margin-bottom: 3px;
}

.moonbundle-gift-container-right {
    display: flex;
    align-content: center;
    align-items: center;
    flex-direction: row;
    row-gap: 5px;
    flex-wrap: wrap;
    column-gap: 15px;
}

/* square layout */

.moonbundle-box .moonbundle-options-square {
    margin-top: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(10px * var(--block-spacing, 1));
}

.moonbundle-options-square .moonbundle-option {
    border: 2px solid var(--moonbundle-colors-border);
    border-radius: var(--moonbundle-colors-border-radius);
    background-color: var(--moonbundle-colors-bg);
    margin-bottom: 10px;
    align-content: center;
    height: 100%;
}

.moonbundle-options-square .moonbundle-option-details {
    display: flex;
}

.moonbundle-options-square .moonbundle-option-checkbox {
    margin-right: 5px;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.moonbundle-options-square .moonbundle-option-price {
    padding-left: 5px;
    align-content: end;
    display: flex;
    flex-direction: column;
    text-align: left;
    text-wrap: nowrap;
}

.moonbundle-options-square .moonbundle-option-col {
    padding-left: 5px;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.moonbundle-options-square .moonbundle-option-thumbnail {
    align-content: start;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.moonbundle-options-square .moonbundle-option-thumbnail img {
    max-width: 50px;
    max-height: 50px;
}

.moonbundle-options-square .moonbundle-option-title {
    font-weight: var(--moonbundle-title-weight);
    font-style: var(--moonbundle-title-style);
    font-size: var(--moonbundle-title-font-size);
    color: var(--moonbundle-title-color);
}

.moonbundle-options-square .moonbundle-option-subtitle {
    color: var(--moonbundle-subtitle-color);
    font-size: var(--moonbundle-subtitle-font-size);
    font-weight: var(--moonbundle-subtitle-weight);
    font-style: var(--moonbundle-subtitle-style);
}

.moonbundle-options-square .moonbundle-option-single-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-square .moonbundle-option-new-price {
    font-size: var(--moonbundle-price-font-size);
    font-weight: var(--moonbundle-price-weight);
    color: var(--moonbundle-price-color);
    font-style: var(--moonbundle-price-style);
}

.moonbundle-options-square .moonbundle-option-old-price {
    text-decoration: line-through;
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-square .moonbundle-option-each-price {
    font-size: var(--moonbundle-compare-at-price-font-size);
    color: var(--moonbundle-compare-at-price-color);
    font-weight: var(--moonbundle-compare-at-price-weight);
    font-style: var(--moonbundle-compare-at-price-style);
}

.moonbundle-options-square .moonbundle-option-active {
    background-color: var(--moonbundle-colors-selected-bg);
    border-color: var(--moonbundle-colors-selected-border);
}

.moonbundle-options-square {
    .moonbundle-best-seller-box-block {
        position: absolute;
        z-index: 1;
        top: -8px;
        right: 20px;
    }

    .moonbundle-best-seller-box-sticker {
        position: absolute;
        z-index: 1;
        top: -15px;
        right: 20px;
    }

    .moonbundle-best-seller-box-model {
        width: 100%;
        left: calc(50%);
        transform: translateX(-50%);
        position: absolute;
        z-index: 1;
        top: -2px;
        right: 20px;
    }

    .moonbundle-best-seller-box-left {
        left: calc(0%);
        position: absolute;
        z-index: 1;
        top: -25px;
        margin-left: 20px !important;
    }
}

.moonbundle-options-square .moonbundle-best-seller-block {
    margin: 0 8px;
    padding: 4px 12px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-square .moonbundle-best-seller-block:before,
.moonbundle-options-square .moonbundle-best-seller-block:after {
    display: block;
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    content: "";
    border-bottom-width: 8px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
    filter: brightness(0.7);
}

.moonbundle-options-square .moonbundle-best-seller-block:before {
    left: 0;
    border-left: 8px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-square .moonbundle-best-seller-block:after {
    right: 0;
    border-right: 8px solid transparent;
    border-bottom-color: var(--moonbundle-colors-best-seller);
}

.moonbundle-options-square .moonbundle-best-seller-sticker {
    position: relative;
    right: -15px;
    transform: rotate(7deg);
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-square .moonbundle-best-seller-model {
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-square .moonbundle-best-seller-left {
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
    color: var(--moonbundle-best-seller-text-color);
    font-size: var(--moonbundle-best-seller-text-font-size);
    font-weight: var(--moonbundle-best-seller-text-weight);
    background-color: var(--moonbundle-colors-best-seller);
    font-style: var(--moonbundle-best-seller-text-style);
}

.moonbundle-options-square .moonbundle-label-inside {
    padding: 3px 5px;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-options-square .moonbundle-label-outside {
    position: absolute;
    left: calc(50%);
    transform: translateX(-50%);
    bottom: 0px;
    padding: 3px 5px;
    color: var(--moonbundle-label-text-color);
    font-size: var(--moonbundle-label-text-font-size);
    font-weight: var(--moonbundle-label-text-weight);
    font-style: var(--moonbundle-label-text-style);
    background-color: var(--moonbundle-colors-bg-label);
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-options-square .moonbundle-variants-box {
    display: none;
    margin-top: 10px;
}

.moonbundle-options-square .moonbundle-variant-row {
    display: flex;
    gap: 6px;
    align-items: last baseline;
}

.moonbundle-variant-row {
    max-width: 100%;
    font-size: 12px;
    margin-bottom: 5px;
}

.moonbundle-options-square .moonbundle-variant-id,
.moonbundle-options-square .moonbundle-variant-select {
    align-items: center;
}

.moonbundle-options-square .moonbundle-variant-id {
    align-content: start;
    display: flex;
    flex-direction: row;
    width: 10%;
}

.moonbundle-options-square .moonbundle-variant-select {
    flex-grow: 1;
}

.moonbundle-options-square .moonbundle-variant-select select {
    width: 100%;
    border: 1px solid var(--moonbundle-colors-selected-border) !important;
    padding: 7px 20px 7px 10px;
    background-color: rgb(255, 255, 255) !important;
    margin-right: 4px;
    border-radius: var(--moonbundle-colors-border-radius) !important;
    color: rgb(28, 29, 29) !important;

    appearance: none;
    background-image: url('./dropdown-icon.svg');
    background-size: 7px;
    background-repeat: no-repeat;
    background-position: calc(100% - 7px) center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.moonbundle-options-square .moonbundle-variant-select select:focus,
.moonbundle-options-square .moonbundle-variant-select select:focus-visible {
    outline: none;
    outline-offset: 0;
    box-shadow: none;
}

.moonbundle-box .moonbundle-atc {
    width: 100%;
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
    font-size: 16px;
    padding: 15px 2px;
    font-weight: normal;
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-option-active .moonbundle-variants-box {
    display: block;
}

.moonbundle-quantity-input {
    display: none;
}

.moonbundle-not-available-warning {
    margin-bottom: 10px;
    border: 1px solid #ff2c2c;
    padding: 15px;
    color: #ff2c2c;
    background-color: #ffc0be;
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-product-card {
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: var(--moonbundle-gift-img-size);
    height: var(--moonbundle-gift-img-size);
    border: 2px var(--moonbundle-gift-border) var(--moonbundle-gift-border-color);
    border-radius: var(--moonbundle-colors-border-radius);
    background-color: var(--moonbundle-gift-locked-bg-color);
    position: relative;
    margin: 0px 0px 5px 0px;
}

.moonbundle-price-tag {
    background-color: var(--moonbundle-gift-label-bg-color);
    font-size: var(--moonbundle-gift-label-font-size);
    border-radius: var(--moonbundle-colors-border-radius);
    padding: 0px 5px 0px 5px;
    font-weight: var(--moonbundle-gift-label-font-weight);
    color: var(--moonbundle-gift-label-text-color);
    max-width: max-content;
    font-style: var(--moonbundle-gift-label-font-style);
    z-index: 1;
}

.moonbundle-gift-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    margin: 20px 0px 20px 0px;
}

.moonbundle-gift-img {
    width: 100%;
    height: 100%;
}

.moonbundle-gift-locked {
    width: 20px;
    height: 20px;
    margin-top: 23px;
    margin-bottom: 12px;
}

.moonbundle-gift-column {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.moonbundle-gift-locked-text {
    font-size: var(--moonbundle-gift-locked-font-size);
    font-weight: var(--moonbundle-gift-locked-font-weight);
    color: var(--moonbundle-gift-locked-text-color);
    font-style: var(--moonbundle-gift-locked-font-style);
}

.moonbundle-transition {
    transition: background-color 0.3s ease-out;
}

.moonbundle-gift-column .moonbundle-gift-selected-variant {
    width: 70px !important;
}

.moonbundle-gift-footer {
    display: block;
    width: 83px;
    margin-top: 5px;
}

.moonbundle-gift-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0px;
}

.moonbundle-gift-footer-text {
    background-color: var(--moonbundle-gift-footer-bg-color);
    font-size: var(--moonbundle-gift-footer-font-size);
    color: var(--moonbundle-gift-footer-text-color);
    font-weight: var(--moonbundle-gift-footer-font-weight);
    padding: 1px 2px 1px 2px;
    white-space: normal;
    word-wrap: break-word;
    border-radius: var(--moonbundle-colors-border-radius);
    font-style: var(--moonbundle-gift-footer-font-style);
    min-width: fit-content;
}

.moonbundle-gift-title-div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.moonbundle-gift-title {
    text-align: center;
    font-weight: var(--moonbundle-gift-title-font-weight);
    font-size: var(--moonbundle-gift-title-font-size);
    padding: 5px 15px 5px 15px;
    border-radius: var(--moonbundle-colors-border-radius);
    max-width: max-content;
    background-color: var(--moonbundle-gift-title-bg-color);
    color: var(--moonbundle-gift-title-text-color);
}

.moonbundle-option-disabled {
    color: #999999;
    /* Couleur grise pour les options désactivées */
    background-color: #f5f5f5;
    /* Optionnel : couleur de fond grisée */
}

.moonbundle-powered-by {
    width: 30%;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #0E2358;
    color: white;
    margin: auto;
    border-radius: 25px;
    font-size: 0.5em;
}

.moonbundle-offer-img {
    width: var(--moonbundle-offer-img-size);
    object-fit: contain;
    border-radius: var(--moonbundle-offer-img-border-radius);
}

.moonbundle-option-checkbox input {
    width: 18px;
    height: 18px;
}

.moonbundle-option-checkbox {
    width: fit-content;
}

.moonbundle-options-vertical .moonbundle-option-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moonbundle-option-col-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    word-wrap: anywhere;
}

.moonbundle-variant-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.moonbundle-variant-select-options {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.moonbundle-offer-wrapper {
    padding: 15px;
}

.moonbundle-gift-img-horizontal {
    width: var(--moonbundle-gift-img-size);
    height: var(--moonbundle-gift-img-size);
    border-radius: var(--moonbundle-free-gift-border-radius);
}

.moonbundle-gift-horizontal {
    background: var(--moonbundle-gift-bg-color);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1px;
}

.moonbundle-gift-horizontal:last-of-type {
    margin-bottom: 0px;
}

.moonbundle-gift-horizontal.selected {
    background: var(--moonbundle-gift-bg-color-selected);
}


.moonbundle-gift-locked {
    width: 20px;
    height: 20px;
    margin-top: 23px;
    margin-bottom: 12px;
}

.moonbundle-gift-locked-img {
    opacity: 1;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.moonbundle-gift-horizontal-container-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.moonbundle-gift-horizontal-container-right {
    display: flex;
    align-items: center;
}

.moonbundle-price-tag.relative {
    position: relative;
    top: 10px;
    margin: -16px 0 0;
}

.moonbundle-option-active .moonbundle-gift-horizontal {
    background: var(--moonbundle-gift-bg-color-selected) !important;
}

.moonbundle-option-wrapper {
    position: relative;
    flex-grow: 1;
    flex-basis: 0;
}

.moonbundle-option {
    overflow: hidden;
}

.moonbundle-remove-powered-by {
    width: 40%;
    margin: 10px auto;
}

.moonbundle-teasing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: "#333";
    font-size: "14px";
    z-index: 2;
    pointer-events: none;
}

.card-amount-icon .Polaris-Icon {
    margin: 0 !important;
    margin-right: 0.25rem !important;
}

/* Variant Popup button */

.moonbundle-gift-popup-button {
    background-color: var(--moonbundle-variant-toggle-button-background-color);
    cursor: pointer;
    font: inherit;
    color: var(--moonbundle-variant-toggle-button-text-color);
    bottom: 0;
    font-size: var(--moonbundle-variant-toggle-button-text-font-size);
    text-align: center;
    font-style: var(--moonbundle-variant-toggle-button-text-font-style);
    font-weight: var(--moonbundle-variant-toggle-button-text-font-weight);
}

.moonbundle-product-card .moonbundle-gift-popup-button {
    position: absolute;
    width: 100%;
    border: none;
    height: fit-content;
}

.moonbundle-gift-horizontal-container-left .moonbundle-gift-popup-button {
    margin-left: 10px;
    padding: 5px;
    max-width: fit-content;
    border-radius: var(--moonbundle-variant-toggle-button-border-radius);
    border-color: var(--moonbundle-variant-toggle-button-border-color);
    border: var(--moonbundle-variant-toggle-button-border);
}

.moonbundle-gift-popup-button:hover {
    transition: all 0.3s ease-in-out;
    transform: scale(1.1);
    animation: growHeight 0.2s steps(3);
    height: 100%;
}

@keyframes growHeight {
    0% {
        height: fit-content;
    }

    33% {
        height: 33%;
    }

    66% {
        height: 66%;
    }

    100% {
        height: 100%;
    }
}

.moonbundle-variant-modal-content {
    padding: 20px;
    background-color: var(--moonbundle-variant-modal-bg-color);
}

.moonbundle-variant-modal-product {
    display: flex;
    gap: 20px;
    padding: 10px;
    background-color: var(--moonbundle-variant-modal-bg-color);
}

.moonbundle-variant-modal-image {
    flex-shrink: 0;
}

.moonbundle-variant-modal-image img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--moonbundle-colors-border-radius);
}

.moonbundle-variant-modal-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-self: center;
}

.moonbundle-variant-modal-title {
    font-size: var(--moonbundle-variant-modal-title-font-size);
    font-weight: var(--moonbundle-variant-modal-title-font-weight);
    color: var(--moonbundle-variant-modal-title-color);
    font-style: var(--moonbundle-variant-modal-title-font-style);
}

.moonbundle-variant-modal-label {
    font-size: var(--moonbundle-variant-modal-label-font-size);
    color: var(--moonbundle-variant-modal-label-color);
    font-style: var(--moonbundle-variant-modal-label-font-style);
    font-weight: var(--moonbundle-variant-modal-label-font-weight);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    gap: 5px;
}

.moonbundle-variant-modal-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.moonbundle-variant-modal-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.moonbundle-variant-modal-option-title {
    font-size: 12px;
    font-weight: 500;
    color: #202223;
}

.moonbundle-variant-modal-option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.moonbundle-variant-modal-option-value {
    padding: 8px 16px;
    border: 1px solid #e1e3e5;
    border-radius: 20px;
    font-size: 14px;
    color: #202223;
    cursor: pointer;
    transition: all 0.3s ease;
}

.moonbundle-variant-modal-option-value:hover {
    background-color: #f6f6f7;
}

.moonbundle-variant-modal-option-value.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.moonbundle-variant-modal-confirm-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: var(--moonbundle-variant-modal-confirm-button-background-color);
    color: var(--moonbundle-variant-modal-confirm-button-text-color);
    border: 1px var(--moonbundle-variant-modal-confirm-button-border-style) var(--moonbundle-variant-modal-confirm-button-border-color);
    border-radius: var(--moonbundle-variant-modal-confirm-button-border-radius);
    cursor: pointer;
    font-size: var(--moonbundle-variant-modal-confirm-button-text-font-size);
    font-weight: var(--moonbundle-variant-modal-confirm-button-text-font-weight);
    font-style: var(--moonbundle-variant-modal-confirm-button-text-font-style);
}

/* Mobile & Tablet - Media Query */
@media (max-width: 1024px) {
    .moonbundle-variant-modal-content .moonbundle-variant-modal-product {
        flex-direction: column !important;
        align-items: center !important;
    }

    .moonbundle-variant-modal-content .moonbundle-variant-modal-image {
        flex: 0 0 auto !important;
    }

    .moonbundle-variant-modal-content .moonbundle-variant-modal-image img {
        max-width: 150px !important;
        margin: 0 auto !important;
    }

    .moonbundle-variant-popup.moonbundle-modal-popup {
        width: 95% !important;
    }
}

.moonbundle-variant-modal-content .moonbundle-variant-modal-product {
    flex-direction: row;
}

.moonbundle-variant-modal-content .moonbundle-variant-modal-image {
    flex: 0 0 200px;
}

.moonbundle-gift-img-unlocked {
    transition: all 0.3s ease-in-out;
}

/* Popup classique (centrée) */
.moonbundle-variant-popup.moonbundle-modal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.moonbundle-variant-popup.moonbundle-modal-popup .moonbundle-variant-modal-content {
    border-radius: var(--moonbundle-colors-border-radius);
}

/* Popup en bas (1/5 hauteur, pleine largeur) */
.moonbundle-variant-popup.moonbundle-modal-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.moonbundle-variant-popup.moonbundle-modal-bottom .moonbundle-variant-modal-content {
    border-radius: var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius) 0 0;
}

/* Popup en haut (1/5 hauteur, pleine largeur) */
.moonbundle-variant-popup.moonbundle-modal-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.moonbundle-modal-top .moonbundle-variant-modal-content {
    border-radius: 0 0 var(--moonbundle-colors-border-radius) var(--moonbundle-colors-border-radius);
}

.moonbundle-variant-modal-overlay {
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    position: fixed;
}

.moonbundle-variant-modal-close {
    position: absolute;
    top: 0px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
}