:root {
    /* Block */
    --salepify-product-bundle__block__background-color: #F6F6F6;
    --salepify-product-bundle__block__border-color: #EBEBEB;
    --salepify-product-bundle__block__border-radius: 12px;
    --salepify-product-bundle__block__border-width: 1px;

    /* Sperator */
    --salepify-product-bundle__sperator__color: #ffffff;
    --salepify-product-bundle__sperator__background-color: #000000;
    --salepify-product-bundle__sperator__size: 32px;

    /* Header */
    --salepify-product-bundle__header__font-size: 16px;
    --salepify-product-bundle__header__font-weight: 700;
    --salepify-product-bundle__header__color: #303030;
    
    /* Product Background */
    --salepify-product-bundle__product-background__background-color: #FFFFFF;
    --salepify-product-bundle__product-background__border-color: #F6F6F6;
    --salepify-product-bundle__product-background__border-width: 1px;
    --salepify-product-bundle__product-background__border-radius: 12px;

    /* Product title */
    --salepify-product-bundle__product-title__font-size: 16px;
    --salepify-product-bundle__product-title__font-weight: 700;
    --salepify-product-bundle__product-title__color: #303030;

    /* Product price */
    --salepify-product-bundle__product-price__font-size: 16px;
    --salepify-product-bundle__product-price__font-weight: 700;
    --salepify-product-bundle__product-price__color: #303030;

    /* Product regular price */
    --salepify-product-bundle__product-regular-price__font-size: 12px;
    --salepify-product-bundle__product-regular-price__font-weight: 500;
    --salepify-product-bundle__product-regular-price__color: #B5B5B5;

    /* Product quantity */
    --salepify-product-bundle__product-quantity__font-size: 12px;
    --salepify-product-bundle__product-quantity__font-weight: 500;
    --salepify-product-bundle__product-quantity__color: #000000;
    --salepify-product-bundle__product-quantity__background-color: #00000033;

    /* Footer */
    --salepify-product-bundle__footer__font-size: 18px;
    --salepify-product-bundle__footer__font-weight: 700;
    --salepify-product-bundle__footer__color: #303030;

    /* Footer price */
    --salepify-product-bundle__footer-price__font-size: 16px;
    --salepify-product-bundle__footer-price__font-weight: 700;
    --salepify-product-bundle__footer-price__color: #303030;

    /* Footer regular price */
    --salepify-product-bundle__footer-regular-price__font-size: 12px;
    --salepify-product-bundle__footer-regular-price__font-weight: 500;
    --salepify-product-bundle__footer-regular-price__color: #B5B5B5;

    /* Button */
    --salepify-product-bundle__grab-btn__font-size: 14px;
    --salepify-product-bundle__grab-btn__font-weight: 600;
    --salepify-product-bundle__grab-btn__color: #ffffff;
    --salepify-product-bundle__grab-btn__background-color: #000000;

    /* Highlighted tag */
    --salepify-product-bundle__highlighted-tag__font-size: 14px;
    --salepify-product-bundle__highlighted-tag__font-weight: 600;
    --salepify-product-bundle__highlighted-tag__color: #ffffff;
    --salepify-product-bundle__highlighted-tag__background-color: #F3873A;
}

/* Common class start */
.salepify-product-bundle .block-stack {
    display: flex;
    flex-direction: column;
}

.salepify-product-bundle .inline-stack {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.salepify-product-bundle .gap-4 {
    gap: 4px;
}

.salepify-product-bundle .gap-6 {
    gap: 6px;
}

.salepify-product-bundle .gap-8 {
    gap: 8px;
}

.salepify-product-bundle .gap-16 {
    gap: 16px;
}

.salepify-product-bundle img {
    object-fit: fill;
    width: 100%;
    height: auto;
}

.salepify-product-bundle p {
    font-weight: 650;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
    margin: unset;
}
/* Common class end */
.salepify-product-bundle *{
    font-family: Inter, sans-serif;
    box-sizing: border-box;
}

.salepify-product-bundle {
    width: 100%;
    margin: auto;
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding: 16px;
    background-color: var(--salepify-product-bundle__block__background-color);
    border: var(--salepify-product-bundle__block__border-width) solid var(--salepify-product-bundle__block__border-color);
    border-radius: var(--salepify-product-bundle__block__border-radius);
}

/* Header */
.salepify-product-bundle .salepify-product-bundle__header{
    text-align: center;
    font-size: var(--salepify-product-bundle__header__font-size);
    font-weight: var(--salepify-product-bundle__header__font-weight);
    color: var(--salepify-product-bundle__header__color);
}

/* Info */
.salepify-produtc-bundle-info {
    align-items: center;
}

.salepify-produtc-bundle-info__image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 85px;
    height: 85px;
    border-radius: 4px;
    border: 1px solid rgb(0 0 0 / 10%);
    overflow: hidden;
}

.salepify-product-bundle .salepify-product-bundle-info__title{
    font-size: var(--salepify-product-bundle__product-title__font-size);
    font-weight: var(--salepify-product-bundle__product-title__font-weight);
    color: var(--salepify-product-bundle__product-title__color);
}

/* Bundle item */
.salepify-product-bundle-item {
    padding: 16px;
    background-color: var(--salepify-product-bundle__product-background__background-color);
    border: var(--salepify-product-bundle__product-background__border-width) solid var(--salepify-product-bundle__product-background__border-color);
    border-radius: var(--salepify-product-bundle__product-background__border-radius);
}

.salepify-product-bundle-item-info {
    justify-content: space-between;
}

.salepify-product-bundle-item-image {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border: 1px solid rgb(0 0 0 / 10%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.salepify-product-bundle-item-title {
    text-decoration: unset;
    line-height: 20px;
    letter-spacing: 0px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-word;
    white-space: normal;
    position: relative;
    -webkit-line-clamp: 3;
    font-size: var(--salepify-product-bundle__product-title__font-size);
    font-weight: var(--salepify-product-bundle__product-title__font-weight);
    color: var(--salepify-product-bundle__product-title__color);
}

.salepify-product-bundle-item-title:hover {
    text-decoration: underline;
}

.salepify-product-bundle .salepify-product-bundle-item-quantity {
    line-height: 12px;
    width: calc(var(--salepify-product-bundle__product-quantity__font-size) + 12px);
    height: calc(var(--salepify-product-bundle__product-quantity__font-size) + 12px);
    padding: 2px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--salepify-product-bundle__product-quantity__font-size);
    font-weight: var(--salepify-product-bundle__product-quantity__font-weight);
    color: var(--salepify-product-bundle__product-quantity__color);
    background-color: var(--salepify-product-bundle__product-quantity__background-color);
}

.salepify-product-bundle .salepify-product-bundle-item-price {
    font-size: var(--salepify-product-bundle__product-price__font-size);
    font-weight: var(--salepify-product-bundle__product-price__font-weight);
    color: var(--salepify-product-bundle__product-price__color);
}

.salepify-product-bundle .salepify-product-bundle-item-compare-price {
    font-size: var(--salepify-product-bundle__product-regular-price__font-size);
    font-weight: var(--salepify-product-bundle__product-regular-price__font-weight);
    color: var(--salepify-product-bundle__product-regular-price__color);
}

.salepify-product-bundle .salepify-product-bundle-item-compare-price,
.salepify-product-bundle .salepify-product-bundle-total__compare-price {
    text-align: end;
    text-decoration: line-through;
}

/* Bundle item - variant selector */
.salepify-product-bundle-item-variant {
    align-items: flex-end;
}

.salepify-product-bundle-item-variant__index{
    margin-bottom: 7px;
    line-height: 20px;
    font-size: 12px;
    font-weight: 500px;
    color: #303030;
}

.salepify-product-bundle-item-variant-label {
    line-height: 15px;
    font-size: 10px;
    font-weight: 400;
    color: #B5B5B5;
}

.salepify-product-bundle-item-variant__selector{
    position: relative;
    display: inline-block;
}

.salepify-product-bundle-item-variant__selector select{
    width: 88px;
    height: 34px;
    border-radius: 6px;
    padding: 5px 26px 5px 12px;
    box-shadow: 0px 1px 2px 0px #0000000D;
    border: 1px solid #D1D5DB;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    line-height: 24px;
}

.salepify-product-bundle-item-variant__selector select:hover
.salepify-product-bundle-item-variant__selector select:focus,
.salepify-product-bundle-item-variant__selector select:focus-visible {
    outline: none !important;
}

.salepify-product-bundle-item-variant__selector svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    pointer-events: none;
}

.salepify-product-bundle-item-variant__selector svg path{
    fill: #9CA3AF;
}

/* Seperator (“+” sign) */
.salepify-product-bundle-sperator {
    border-radius: 50%; 
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: auto;
    width: var(--salepify-product-bundle__sperator__size); 
    height: var(--salepify-product-bundle__sperator__size);
    background-color: var(--salepify-product-bundle__sperator__background-color); 
}

.salepify-product-bundle-sperator::before,
.salepify-product-bundle-sperator::after {
    content: "";
    position: absolute;
    background-color: var(--salepify-product-bundle__sperator__color);
    border-radius: calc(32px / 16);
}

/* Thanh dọc */
.salepify-product-bundle-sperator::before {
    width: calc(100% / 8);
    height: calc(100% / 2);
}

/* Thanh ngang */
.salepify-product-bundle-sperator::after {
    width: calc(100% / 2);
    height: calc(100% / 8);
}

/* Total deal */
.salepify-product-bundle-total {
    justify-content: space-between;
    padding: 0px 16px;
}

.salepify-product-bundle .salepify-product-bundle-total__title {
    font-size: var(--salepify-product-bundle__footer__font-size);
    font-weight: var(--salepify-product-bundle__footer__font-weight);
    color: var(--salepify-product-bundle__footer__color);
}

.salepify-product-bundle .salepify-product-bundle-total__price {
    font-size: var(--salepify-product-bundle__footer-price__font-size);
    font-weight: var(--salepify-product-bundle__footer-price__font-weight);
    color: var(--salepify-product-bundle__footer-price__color);
}

.salepify-product-bundle .salepify-product-bundle-total__compare-price {
    font-size: var(--salepify-product-bundle__footer-regular-price__font-size);
    font-weight: var(--salepify-product-bundle__footer-regular-price__font-weight);
    color: var(--salepify-product-bundle__footer-regular-price__color);
}

/* Grab button */
.salepify-product-bundle-grab-btn {
    width: 100%;
    min-height: 40px;
    padding: 7px 11px;
    box-shadow: 0px 1px 2px 0px #0000000D;
    line-height: 16px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: var(--salepify-product-bundle__grab-btn__font-size);
    font-weight: var(--salepify-product-bundle__grab-btn__font-weight);
    color: var(--salepify-product-bundle__grab-btn__color);
    background-color: var(--salepify-product-bundle__grab-btn__background-color);
}

.salepify-product-bundle-grab-btn span {
    z-index: 20;
}

.salepify-product-bundle-grab-btn::after {
    background: #fff;
    content: "";
    height: 155px;
    left: -75px;
    opacity: 0.2;
    position: absolute;
    top: -50px;
    transform: rotate(35deg);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    width: 50px;
    z-index: 100;
}

.salepify-product-bundle-grab-btn:hover::after {
    left: 120%;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.salepify-product-bundle-grab-btn--loading::before {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: var(--salepify-product-bundle__grab-btn__color);
    border-radius: 50%;
    animation: tlPackageDealSpinner 1s ease infinite;
    z-index: 20;
}

.salepify-product-bundle-grab-btn--loading span {
    visibility: hidden;
    opacity: 0;
}


/* Highlighted tag */
.salepify-product-bundle-highlighted-tag {
    --f: 10px; /* control the folded part */
    
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px 60px;
    clip-path: polygon(100% calc(100% - var(--f)),100% 100%,calc(100% - var(--f)) calc(100% - var(--f)),var(--f) calc(100% - var(--f)), 0 100%,0 calc(100% - var(--f)),999px calc(100% - var(--f) - 999px),calc(100% - 999px) calc(100% - var(--f) - 999px));
    transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
    line-height: 20px;
    transform-origin: 0% 100%;
    font-size: var(--salepify-product-bundle__highlighted-tag__font-size);
    font-weight: var(--salepify-product-bundle__highlighted-tag__font-weight);
    color: var(--salepify-product-bundle__highlighted-tag__color);
    background: var(--salepify-product-bundle__highlighted-tag__background-color);
    border-bottom: var(--f) solid var(--salepify-product-bundle__highlighted-tag__background-color);
}

@keyframes tlPackageDealSpinner {
    from {
      transform: rotate(0turn);
    }
  
    to {
      transform: rotate(1turn);
    }
}