/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.5;
}

.voucher-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 16px;
}

.platform-logo {
    max-width: 150px;
    height: auto;
}

/* ===== Offer Image ===== */
.offer-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* ===== Offer Title ===== */
.offer-title {
    text-align: center;
    margin: 16px 0;
}

.offer-title h1 {
    font-size: 1.6rem;
    margin: 0;
}

/* ===== Seller Section ===== */
.seller {
    text-align: center;
    margin: 20px 0;
}

.seller-logo {
    max-width: 100px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.seller-name {
    font-size: 1.2rem;
    margin: 4px 0;
}

.seller-location {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
}

/* ===== Voucher Code Card ===== */
.voucher-code-card {
    border: 2px dashed #000;
    border-radius: 12px;
    text-align: center;
    padding: 16px;
    margin: 20px 0;
    background-color: #fafafa;
}

.voucher-label {
    font-size: 0.8rem;
    color: #555;
    margin: 0;
}

.voucher-code {
    font-size: 2rem;
    letter-spacing: 4px;
    margin: 6px 0 0;
    font-weight: bold;
}

/* ===== QR Code ===== */
.qr-section {
    text-align: center;
    margin: 16px 0;
}

.qr-code {
    max-width: 220px;
    width: 60%;
    height: auto;
}

/* ===== Status ===== */
.voucher-status {
    text-align: center;
    margin: 16px 0;
}

.status-label {
    font-weight: bold;
    margin-right: 4px;
}

.status-value {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    min-width: 80px;
}

/* Status Colors */
.status-valid {
    background-color: #d4edda;
    color: #155724;
}

.status-redeemed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-expired {
    background-color: #f5c6cb;
    color: #721c24;
}

/* Redeem Button Section */
.redeem-button-section button {
    width: 80%;
    max-width: 300px;
    font-size: 1rem;
}

#redeem-feedback {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ===== Instructions ===== */
.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin: 8px 0;
    font-size: 0.95rem;
}

/* ===== Important Notice ===== */
.important {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-top: 24px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .voucher-code {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .voucher-container {
        padding: 12px;
    }

    .redeem-button-section button {
        width: 90%;
    }
}