/* Bottom Sheet VIP Promotion Styles - Modern Theme */

.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto; /* Enable scroll if content is too tall */
    padding: 24px 20px 80px; /* Increased bottom padding for mobile safe area */
    width: 100%;
    box-sizing: border-box;
}

.bottom-sheet.active {
    bottom: 0;
    animation: slideUpBounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideUpBounce {
    0% {
        bottom: -100%;
        opacity: 0;
    }

    60% {
        bottom: 20px;
        opacity: 1;
    }

    80% {
        bottom: -10px;
    }

    100% {
        bottom: 0;
        opacity: 1;
    }
}

.bottom-sheet-close {
    position: fixed;
    top: -50px;
    right: 20px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10001;
    opacity: 1;
    font-weight: 600;
}

.bottom-sheet-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #333;
}

.bottom-sheet-content {
    padding: 0 10px;
    position: relative;
}

.vip-promo-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
    letter-spacing: -0.5px;
}

.vip-promo-title i {
    color: #ffca28; /* Gold color for crown icon */
    margin-right: 8px;
}

.vip-promo-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

.vip-benefits {
    background: #fff5f8; /* Very light pink background */
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ffe0ea;
}

.vip-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.vip-benefit-item:last-child {
    margin-bottom: 0;
}

.vip-benefit-icon {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
    color: #f54a91; /* MomVN Pink */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245, 74, 145, 0.15);
}

.vip-cta-button {
    background: linear-gradient(135deg, #f54a91 0%, #ff7eb3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 74, 145, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
    line-height: 1;
}

.vip-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 74, 145, 0.4);
    color: white;
    text-decoration: none;
}

.vip-cta-button i {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.vip-cta-button:hover i {
    transform: translateX(4px);
}

.bottom-sheet-close-secondary {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 12px;
    cursor: not-allowed;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
}

.bottom-sheet-close-secondary:not(:disabled) {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bottom-sheet-close-secondary:not(:disabled):hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.action-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .bottom-sheet {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -100%; /* Reset initial state */
        border-radius: 24px; /* Full rounded corners on desktop */
        margin-bottom: 20px;
    }
    
    .bottom-sheet.active {
        bottom: 20px; /* Float slightly above bottom on desktop */
        animation: slideUpDesktop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    @keyframes slideUpDesktop {
        0% {
            bottom: -100%;
            opacity: 0;
        }
        100% {
            bottom: 20px;
            opacity: 1;
        }
    }

    .bottom-sheet-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: rgba(0, 0, 0, 0.05);
        color: #666;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 50%;
    }
    
    .bottom-sheet-close .close-label {
        display: none; /* Hide label on desktop close button */
    }
    
    .bottom-sheet-close::before {
        content: '\00d7'; /* Multiplication sign as X */
        font-size: 24px;
        line-height: 1;
    }
}
