/* ==========================
   T1 Gift Cards Block Styles
   ========================== */

/* Container */
.t1-giftcards-block-wrapper {
    margin: 1.5em 0;
    padding: 1.5em;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fafafa;
}

/* Gift card form */
#pwgc-redeem-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#pwgc-redeem-form label {
    width: 100%;
    font-weight: 600;
    margin-bottom: 0.3em;
    color: #333;
}

#pwgc-redeem-gift-card-number {
    flex: 1;
    min-width: 200px;
    padding: 0.6em 0.8em;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
}

#pwgc-redeem-gift-card-number:focus {
    border-color: #007cba;
    outline: none;
}

/* Apply button */
#pwgc-redeem-button {
    background-color: #007cba;
    color: white;
    font-weight: 500;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.1s;
}

#pwgc-redeem-button:hover {
    background-color: #005fa3;
}

#pwgc-redeem-button:active {
    transform: scale(0.97);
}

/* Error / message */
#pwgc-redeem-error {
    color: #d63638;
    margin-top: 0.5em;
    font-size: 14px;
    font-weight: 500;
}

/* Applied cards area */
#pwgc-applied-cards {
    margin-top: 1.2em;
    border-top: 1px solid #e5e5e5;
    padding-top: 1em;
}

/* Individual card item */
.pwgc-applied-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    border-bottom: 1px dashed #ddd;
}

.pwgc-applied-item:last-child {
    border-bottom: none;
}

.pwgc-card-number {
    font-weight: 600;
    color: #333;
}

.pwgc-card-amount {
    font-weight: 700;
    color: #007cba;
    margin-right: 10px;
}

/* Remove button */
.pwgc-remove-card {
    color: #d63638;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.pwgc-remove-card:hover {
    color: #b00020;
}

/* Expired */
.pwgc-balance-text span {
    color: #d63638;
    font-weight: 600;
}

/* Small responsive tweak */
@media (max-width: 480px) {
    #pwgc-redeem-form {
        flex-direction: column;
        align-items: stretch;
    }

    #pwgc-redeem-button {
        width: 100%;
    }
}
