/* SMF Referral - Frontend styles */

.smf-ref-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    animation: smfRefSlideDown 0.4s ease-out;
}

@keyframes smfRefSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

.smf-ref-banner-icon {
    font-size: 20px;
}

.smf-ref-banner-text {
    flex: 1;
    text-align: center;
    max-width: 800px;
}

.smf-ref-banner-text strong {
    color: #ffd54f;
}

.smf-ref-banner-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s;
}

.smf-ref-banner-close:hover {
    background: rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
    .smf-ref-banner {
        flex-wrap: wrap;
        font-size: 13px;
        padding: 10px 14px;
    }
    .smf-ref-banner-text {
        order: 3;
        width: 100%;
        text-align: left;
    }
}

/* Credit redemption in checkout */
.smf-credit-redemption {
    background: #f7f9fc;
    border: 1px solid #e1e6ee;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 16px 0;
}

.smf-credit-redemption label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.smf-credit-redemption input[type="checkbox"] {
    flex-shrink: 0;
}

.smf-credit-redemption strong {
    color: #1a1a1a;
}

.smf-credit-note {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 4px;
    margin-left: 24px;
}
