.gift-card-balance-page {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-family: "montserrat", sans-serif;
}

.gift-card-balance-intro {
    margin: 0 0 1.25rem;
    color: #686868;
    line-height: 1.5;
}

.gift-card-balance-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.gift-card-balance-form .form-group {
    margin-bottom: 1rem;
}

.gift-card-balance-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.gift-card-balance-form input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    font-size: 1rem;
    font-family: "montserrat", sans-serif;
}

.gift-card-balance-form .secondary-btn {
    margin-top: 0.25rem;
    cursor: pointer;
    font-family: "montserrat", sans-serif;
    font-weight: 600;
}

.gift-card-balance-alert {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.gift-card-balance-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.gift-card-balance-alert-success {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #047857;
}

.gift-card-balance-card {
    display: grid;
    gap: 0.25rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid #fde68a;
}

.gift-card-balance-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.gift-card-balance-opening {
    font-size: 1.35rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.2;
}

.gift-card-balance-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #78350f;
}

.gift-card-balance-code {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.gift-card-balance-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.2;
}

.gift-card-balance-footer-note {
    margin: 1.25rem 0 0;
    color: #686868;
    font-size: 0.95rem;
}

.gift-card-balance-footer-note a {
    color: #111827;
    font-weight: 600;
}

.gift-card-history-wrap {
    margin-top: 1.5rem;
}

.gift-card-history-heading {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.gift-card-history-note {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.5;
}

.gift-card-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.gift-card-history-table thead th {
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gift-card-history-table tbody td {
    padding: 0.85rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
    color: #111827;
}

.gift-card-history-description {
    display: block;
    font-weight: 600;
}

.gift-card-history-order-total {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 500;
}

.gift-card-history-amount-positive {
    color: #047857;
    font-weight: 700;
    white-space: nowrap;
}

.gift-card-history-amount-negative {
    color: #b45309;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .gift-card-balance-summary-grid {
        grid-template-columns: 1fr;
    }

    .gift-card-history-table thead {
        display: none;
    }

    .gift-card-history-table tbody tr {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid #eef2f7;
    }

    .gift-card-history-table tbody td {
        display: block;
        border: 0;
        padding: 0.2rem 0;
    }

    .gift-card-history-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6b7280;
        margin-bottom: 0.15rem;
    }
}
