/* SM Checkout - Modal Overlay */

#smc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: smcFadeIn 0.25s ease;
}

#smc-modal {
    background: #1a1a1a;
    color: #fff;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: smcSlideUp 0.3s ease;
    overflow: hidden;
}

/* Close button */
#smc-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
    padding: 4px 8px;
}
#smc-close:hover {
    color: #fff;
}

/* Header */
#smc-header {
    text-align: center;
    padding: 28px 28px 0;
}
#smc-icon {
    font-size: 32px;
    color: #ff8c00;
    margin-bottom: 8px;
}
#smc-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* Divider */
#smc-divider {
    height: 1px;
    background: #333;
    margin: 16px 28px;
}

/* Loading state */
#smc-loading {
    text-align: center;
    padding: 48px 28px;
}
#smc-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #333;
    border-top-color: #ff8c00;
    border-radius: 50%;
    animation: smcSpin 0.8s linear infinite;
    margin: 0 auto 16px;
}
#smc-loading-text {
    color: #999;
    font-size: 14px;
}

/* Iframe container */
#smc-iframe-container {
    display: none;
    flex: 1;
    min-height: 0;
}
#smc-iframe {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 70vh !important;
    border: none !important;
    background: #1a1a1a !important;
}

/* Success state */
#smc-success {
    text-align: center;
    padding: 48px 28px;
}
#smc-success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 16px;
}
#smc-success-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
#smc-success-text {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

/* Error state */
#smc-error {
    background: #3a1a1a;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 28px 16px;
    font-size: 13px;
    text-align: center;
}

/* Animations */
@keyframes smcFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes smcSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes smcSpin {
    to { transform: rotate(360deg); }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    #smc-modal {
        max-width: 90%;
    }
}

/* Responsive - Mobile (bottom sheet) */
@media (max-width: 480px) {
    #smc-overlay {
        align-items: flex-end;
    }
    #smc-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: smcSlideUpMobile 0.3s ease;
    }
    #smc-iframe {
        height: 80vh;
    }
}
@keyframes smcSlideUpMobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
