/* Phiten Header & Bottom Bar Bonus Widget Styling */
.phiten-bonus-widget {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 4px 12px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    height: 28px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* State 1: Active with positive balance */
.phiten-bonus-widget--active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.15);
}
.phiten-bonus-widget--active:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%) !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    transform: translateY(-1px);
}
.phiten-bonus-widget--active .phiten-bonus-widget__icon {
    color: #d97706;
}

/* State 2: Authorized with 0 balance */
.phiten-bonus-widget--zero {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}
.phiten-bonus-widget--zero:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}
.phiten-bonus-widget--zero .phiten-bonus-widget__icon {
    color: #94a3b8;
}

/* State 3: Guest / Not authorized */
.phiten-bonus-widget--guest {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}
.phiten-bonus-widget--guest:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}
.phiten-bonus-widget--guest .phiten-bonus-widget__icon {
    color: #2563eb;
}

.phiten-bonus-widget__icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.phiten-bonus-widget:hover .phiten-bonus-widget__icon {
    transform: scale(1.15) rotate(5deg);
}

.phiten-bonus-widget__val {
    color: #78350f;
    font-size: 13px;
}

/* Mobile: Never show raw button in #mobileheader */
#mobileheader .phiten-bonus-widget {
    display: none !important;
}

/* Mobile Slide-out Menu Loyalty Card */
.phiten-mobile-menu-bonus {
    margin: 12px 14px 8px 14px !important;
}
.phiten-mobile-menu-bonus__link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 1px solid #fcd34d !important;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.12) !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--active .phiten-mobile-menu-bonus__star {
    color: #d97706 !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--active .phiten-mobile-menu-bonus__title {
    color: #92400e !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--active .phiten-mobile-menu-bonus__sub {
    color: #b45309 !important;
}

.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--zero {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--zero .phiten-mobile-menu-bonus__star {
    color: #94a3b8 !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--zero .phiten-mobile-menu-bonus__title {
    color: #334155 !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--zero .phiten-mobile-menu-bonus__sub {
    color: #64748b !important;
}

.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--guest {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--guest .phiten-mobile-menu-bonus__star {
    color: #2563eb !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--guest .phiten-mobile-menu-bonus__title {
    color: #1e40af !important;
}
.phiten-mobile-menu-bonus__link.phiten-mobile-menu-bonus--guest .phiten-mobile-menu-bonus__sub {
    color: #3b82f6 !important;
}

.phiten-mobile-menu-bonus__star {
    flex-shrink: 0 !important;
    line-height: 1 !important;
}
.phiten-mobile-menu-bonus__info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}
.phiten-mobile-menu-bonus__title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.phiten-mobile-menu-bonus__sub {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
}

/* Rock-solid layout for the bottom sticky bar (.basket_bottom_block) */
@media (min-width: 769px) {
    body .basket_bottom_block {
        height: 51px !important;
        line-height: 51px !important;
        overflow: visible !important;
    }
    .basket_bottom_block .maxwidth-theme {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: 51px !important;
        max-height: 51px !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }
    .basket_bottom_block .top-block-item.pull-left {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
        flex-shrink: 0 !important;
        float: none !important;
    }
    .basket_bottom_block .phiten-bottom-contacts {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
        gap: 16px !important;
    }
    .basket_bottom_block .phone-block .inline-block {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
    }
    .basket_bottom_block .phone.with_dropdown {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
        line-height: normal !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .basket_bottom_block .phone.with_dropdown a {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        line-height: normal !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .basket_bottom_block .phiten-contact-links {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
        margin: 0 !important;
        gap: 8px !important;
    }
    .basket_bottom_block .phiten-contact-links a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
    .basket_bottom_block .top-block-item.pull-right {
        display: inline-flex !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        height: 51px !important;
        float: none !important;
        gap: 12px !important;
    }
    .basket_bottom_block .top-btn.inner-table-block {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
    }
    .basket_bottom_block .top-btn.inner-table-block a {
        display: inline-flex !important;
        align-items: center !important;
        height: 51px !important;
    }
}
