/* ==========================================================================
   SISIMO — PROMOTIONAL FLOATING BADGE & MODAL POPUP
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FLOATING PROMOTIONAL BADGE (Default State)
   -------------------------------------------------------------------------- */
.floating-promo-badge {
    position: fixed;
    z-index: 89999;
    right: 16px;
    bottom: 16px;
    width: 120px;
    height: 120px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, visibility 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.floating-promo-badge.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.85);
    pointer-events: none;
}

.floating-promo-badge:hover {
    transform: translateY(-4px) scale(1.02);
}

.floating-promo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #F8F8F8;
    border: 3px solid #FFFFFF;
    color: #222222;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    line-height: 1;
    overflow: hidden;
}

.floating-promo-inner .fp-line-1 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: -1px;
}

.floating-promo-inner .fp-line-2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 0.9;
}

.floating-promo-inner .fp-line-3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 3px;
}

.floating-promo-inner .fp-cond {
    font-size: 8px;
    font-weight: 500;
    color: #555555;
    line-height: 1.1;
    margin-bottom: 4px;
}

.floating-promo-inner .fp-code {
    font-size: 10px;
    font-weight: 700;
    background-color: #ED55D8;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 2px 8px;
}

/* Close button for the badge */
.floating-promo-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #111111;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.15s ease, transform 0.15s ease;
    padding: 0;
}

.floating-promo-close:hover {
    background-color: #F0F0F0;
    transform: scale(1.08);
}

.floating-promo-close svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}


/* --------------------------------------------------------------------------
   2. PROMOTIONAL POPUP BACKDROP
   -------------------------------------------------------------------------- */
.promo-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 99900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.promo-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}


/* --------------------------------------------------------------------------
   3. PROMOTIONAL POPUP MODAL (Desktop Base)
   -------------------------------------------------------------------------- */
.promo-modal {
    position: fixed;
    z-index: 99910;
    right: 20px;
    bottom: 20px;
    width: 290px;
    height: 500px;
    background-color: #F8F8F8;
    border: 3px solid #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96) translateY(10px);
    transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 250ms ease, visibility 250ms;
    overflow: hidden;
}

.promo-modal.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* Close button for the modal */
.promo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.promo-modal-close:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.promo-modal-close svg {
    width: 20px;
    height: 20px;
}

/* Content Container */
.promo-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 40px 0 16px 0;
    overflow-y: auto;
    scrollbar-width: none;
}
.promo-modal-content::-webkit-scrollbar { display: none; }


/* --------------------------------------------------------------------------
   4. MODAL TYPOGRAPHY & LAYOUT
   -------------------------------------------------------------------------- */
/* Happy Days */
.promo-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #7CC49A;
    line-height: 0.9;
    margin-bottom: 24px;
}

.promo-title-group .promo-happy,
.promo-title-group .promo-days {
    font-size: 44px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Extra 10% Off */
.promo-offer-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1;
}

.promo-extra {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: -5px;
}

.promo-discount {
    display: flex;
    align-items: flex-start;
}

.promo-amount {
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.85;
}

.promo-percent-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 2px;
    margin-top: 4px;
}

.promo-percent {
    font-size: 38px;
    font-weight: 900;
    line-height: 0.8;
}

.promo-off {
    font-size: 44px;
    font-weight: 900;
    line-height: 0.9;
    margin-top: -2px;
}

/* Conditions text */
.promo-condition {
    font-size: 16px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 20px;
}

/* Code Bar */
.promo-code-bar {
    width: 100%;
    height: 65px;
    background-color: #ED55D8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.promo-code-bar .pc-label {
    font-size: 24px;
    font-weight: 400;
}

.promo-code-bar .pc-value {
    font-size: 30px;
    font-weight: 900;
}

/* Countdown */
.promo-countdown {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.pc-time {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #222222;
}

.pc-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pc-num {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
}

.pc-txt {
    font-size: 10px;
    color: #555555;
    margin-top: 4px;
}

.pc-colon {
    font-size: 26px;
    font-weight: 600;
    line-height: 1;
    margin-top: -1px;
}

/* Shop Now Button */
.promo-shop-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 165px;
    height: 52px;
    border: 2px solid #222222;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-bottom: auto;
}

.promo-shop-btn:hover {
    background-color: #222222;
    color: #FFFFFF;
}

/* Legal text */
.promo-legal {
    font-size: 11px;
    color: #555555;
    margin-top: 24px;
}


/* --------------------------------------------------------------------------
   5. MOBILE POPUP MODAL (Viewport < 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .floating-promo-badge {
        width: 96px;
        height: 96px;
        right: 12px;
        bottom: 84px;
    }

    .floating-promo-inner .fp-line-1 { font-size: 14px; }
    .floating-promo-inner .fp-line-2 { font-size: 26px; }
    .floating-promo-inner .fp-line-3 { font-size: 14px; }
    .floating-promo-inner .fp-cond { font-size: 7px; }
    .floating-promo-inner .fp-code { font-size: 9px; padding: 2px 6px; }

    /* Centered Mobile Modal */
    .promo-modal {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100% - 28px);
        max-width: 390px;
        height: 700px;
        max-height: calc(100vh - 24px);
        transform: translate(-50%, -46%) scale(0.96);
        border-radius: 10px;
    }

    .promo-modal.is-active {
        transform: translate(-50%, -50%) scale(1);
    }

    .promo-modal-close {
        top: 18px;
        right: 18px;
        width: 28px;
        height: 28px;
    }

    .promo-modal-close svg {
        width: 24px;
        height: 24px;
    }

    .promo-modal-content {
        padding: 50px 0 20px 0;
    }

    /* Scaled Typography for Mobile */
    .promo-title-group {
        margin-bottom: 28px;
    }

    .promo-title-group .promo-happy,
    .promo-title-group .promo-days {
        font-size: 46px;
    }

    .promo-offer-group {
        margin-bottom: 12px;
    }

    .promo-extra {
        font-size: 48px;
    }

    .promo-amount {
        font-size: 98px;
        letter-spacing: -4px;
    }

    .promo-percent-group {
        margin-left: 3px;
        margin-top: 6px;
    }

    .promo-percent {
        font-size: 42px;
    }

    .promo-off {
        font-size: 56px;
        margin-top: -6px;
    }

    .promo-condition {
        font-size: 18px;
        margin-bottom: 28px;
    }

    .promo-code-bar {
        height: 66px;
        margin-bottom: 30px;
    }

    .promo-code-bar .pc-label {
        font-size: 26px;
    }

    .promo-code-bar .pc-value {
        font-size: 32px;
    }

    .promo-countdown {
        margin-bottom: 36px;
    }

    .pc-num {
        font-size: 30px;
    }
    
    .pc-colon {
        font-size: 28px;
    }

    .promo-shop-btn {
        width: 140px;
        height: 44px;
        font-size: 15px;
    }
}
