/* ==========================================================================
   Gift Card — Frontend styles
   Usato da: [gc_check_balance] e tab My Account "Le mie Gift Card"
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: badge stato
   -------------------------------------------------------------------------- */
.gc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
}

.gc-badge--active {
    background: #e6f4ea;
    color: #1e7e34;
}

.gc-badge--inactive {
    background: #fce8e8;
    color: #b71c1c;
}

/* --------------------------------------------------------------------------
   Shared: notice
   -------------------------------------------------------------------------- */
.gc-notice {
    padding: 12px 16px;
    border-left: 4px solid;
    margin: 16px 0;
    border-radius: 3px;
}

.gc-notice--error {
    background: #fce8e8;
    border-color: #b71c1c;
    color: #7f0000;
}

.gc-notice--success {
    background: #e6f4ea;
    border-color: #1e7e34;
    color: #145222;
}

/* --------------------------------------------------------------------------
   Shortcode [gc_check_balance]
   -------------------------------------------------------------------------- */
.gc-balance-wrap {
    max-width: 560px;
}

.gc-check-balance-form .gc-field {
    margin-bottom: 16px;
}

.gc-check-balance-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.gc-check-balance-form input[type="text"],
.gc-check-balance-form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.gc-submit-btn {
    cursor: pointer;
}

/* Result card */
.gc-result {
    margin-top: 24px;
    padding: 20px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.gc-result__title {
    margin: 0 0 16px;
    font-size: 1.1em;
}

.gc-result__subtitle {
    margin: 24px 0 12px;
    font-size: 1em;
}

/* Summary table */
.gc-result__summary {
    width: 100%;
    border-collapse: collapse;
}

.gc-result__summary th,
.gc-result__summary td {
    padding: 8px 12px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
    vertical-align: top;
}

.gc-result__summary th {
    width: 40%;
    color: #555;
    font-weight: 600;
}

/* Transactions table */
.gc-result__transactions {
    width: 100%;
    border-collapse: collapse;
    font-size: .92em;
}

.gc-result__transactions th,
.gc-result__transactions td {
    padding: 7px 10px;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
}

.gc-result__transactions thead th {
    background: #f5f5f5;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   My Account — tab "Le mie Gift Card"
   -------------------------------------------------------------------------- */
.gc-account-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gc-account-table {
    width: 100%;
    border-collapse: collapse;
}

.gc-account-table th,
.gc-account-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

.gc-account-table thead th {
    background: #f8f8f8;
    font-weight: 700;
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #444;
}

.gc-account-row--inactive td {
    opacity: .72;
}

.gc-code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .88em;
    letter-spacing: .05em;
}

.gc-no-expiry {
    color: #aaa;
    font-style: italic;
}

.gc-no-cards {
    color: #666;
    font-style: italic;
}

/* Responsive — impila colonne su schermi piccoli */
@media (max-width: 600px) {
    .gc-account-table thead {
        display: none;
    }

    .gc-account-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
    }

    .gc-account-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f0f0f0;
        font-size: .9em;
    }

    .gc-account-table td::before {
        content: attr(data-title);
        font-weight: 700;
        color: #555;
        flex: 0 0 45%;
    }
}
