/**
 * Gift Certificate Cart/Checkout Styles
 */

/* Gift Certificate Form */
.wcgc-gift-certificate-form {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.wcgc-gift-certificate-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.wcgc-gift-certificate-form input[type="text"] {
    width: 200px;
    padding: 8px 12px;
    margin-right: 10px;
}

.wcgc-gift-certificate-form .button {
    vertical-align: middle;
}

/* Checkout Gift Certificate Section */
.wcgc-checkout-gift-certificate {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.wcgc-checkout-gift-certificate h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.wcgc-checkout-gift-certificate .wcgc-gift-certificate-form {
    margin: 0;
    padding: 0;
    background: none;
}

/* Applied Certificates List */
.wcgc-applied-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcgc-applied-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.wcgc-applied-list li:last-child {
    border-bottom: none;
}

.wcgc-applied-list .wcgc-code {
    font-family: monospace;
    background: #eee;
    padding: 2px 8px;
    border-radius: 3px;
}

.wcgc-applied-list .wcgc-amount {
    color: #46b450;
    font-weight: 600;
}

.wcgc-applied-list .wcgc-remove-certificate {
    color: #a00;
    font-size: 12px;
    text-decoration: none;
}

.wcgc-applied-list .wcgc-remove-certificate:hover {
    color: #dc3232;
}

/* Store Credit Option */
.wcgc-store-credit-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wcgc-store-credit-option input[type="checkbox"] {
    margin: 0;
}

.wcgc-store-credit-option small {
    display: block;
    margin-top: 5px;
    color: #46b450;
}

/* Applied Certificates Row */
tr.wcgc-applied-certificates th,
tr.wcgc-applied-certificates td {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Status Badges */
.wcgc-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wcgc-status-active {
    background: #d4edda;
    color: #155724;
}

.wcgc-status-depleted {
    background: #f8d7da;
    color: #721c24;
}

.wcgc-status-voided {
    background: #e2e3e5;
    color: #383d41;
}

.wcgc-status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.wcgc-status-converted {
    background: #cce5ff;
    color: #004085;
}

/* Loading State */
.wcgc-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Messages */
.wcgc-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.wcgc-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcgc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .wcgc-gift-certificate-form input[type="text"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .wcgc-gift-certificate-form .button {
        width: 100%;
    }

    .wcgc-applied-list li {
        flex-wrap: wrap;
    }
}
