/**
 * Gift Card Styles
 */

/* Gift Card Form on Cart Page */
.gift-card-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.gift-card-wrapper .block-title {
    margin-bottom: 15px;
    font-size: 16px;
}

.gift-card-wrapper .block-title strong {
    font-weight: 600;
}

/* Applied Gift Cards */
.applied-gift-cards {
    margin-bottom: 15px;
    padding: 10px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.applied-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.applied-card .code {
    font-family: monospace;
    font-weight: 600;
    color: #2e7d32;
}

.applied-card .amount {
    color: #2e7d32;
    font-weight: 600;
    margin: 0 10px;
}

.applied-card .remove-giftcard {
    padding: 5px 10px;
    border: 1px solid #c62828;
    background: #fff;
    color: #c62828;
    cursor: pointer;
    font-size: 12px;
}

.applied-card .remove-giftcard:hover {
    background: #c62828;
    color: #fff;
}

/* Gift Card Form Fields */
.gift-card-wrapper .field {
    margin-bottom: 15px;
}

.gift-card-wrapper .label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.gift-card-wrapper .input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-transform: uppercase;
}

.gift-card-wrapper .input-text:focus {
    border-color: #1979c3;
    outline: none;
}

/* Apply Button */
.gift-card-wrapper .action.primary {
    padding: 10px 20px;
    background: #1979c3;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.gift-card-wrapper .action.primary:hover {
    background: #006bb4;
}

/* Messages */
#giftcard-message {
    margin-top: 10px;
}

#giftcard-message .message {
    padding: 10px;
    margin-top: 10px;
}

#giftcard-message .message.success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

#giftcard-message .message.error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* Check Balance Page */
.gift-card-check {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.check-form {
    margin-bottom: 30px;
}

#balance-result {
    padding: 20px;
    border: 2px solid #1979c3;
    background: #f5f5f5;
    margin-top: 20px;
}

.balance-info {
    margin-top: 15px;
}

.balance-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.balance-info .info-row .label {
    font-weight: 600;
}

.balance-info .info-row .value {
    color: #1979c3;
    font-weight: 600;
}

/* Customer Account - My Gift Cards */
.customer-giftcards .table-gift-cards {
    width: 100%;
}

.customer-giftcards .table-gift-cards td,
.customer-giftcards .table-gift-cards th {
    padding: 10px;
    text-align: left;
}

.status-active {
    color: #2e7d32;
    font-weight: 600;
}

.status-used {
    color: #757575;
}

.status-expired {
    color: #c62828;
}

.status-disabled {
    color: #f57c00;
}

/* Responsive */
@media (max-width: 768px) {
    .applied-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .applied-card .amount,
    .applied-card .remove-giftcard {
        margin-top: 5px;
    }
}

