/**
 * VS Gift Cards - Frontend Styles
 */

/* Gift Card Product Fields */
.vsgc-gift-card-fields {
    background: #f8f9fa;
    border: 2px solid #f1c349;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.vsgc-gift-card-fields h4 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1c349;
    color: #333;
    font-size: 1.2em;
}

.vsgc-gift-card-fields .form-row {
    margin-bottom: 15px;
}

.vsgc-gift-card-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vsgc-gift-card-fields label .required {
    color: #e74c3c;
}

.vsgc-gift-card-fields label .optional {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
}

.vsgc-gift-card-fields .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.vsgc-gift-card-fields .input-text:focus {
    border-color: #f1c349;
    outline: none;
}

/* Checkout/Cart Gift Card Box */
.vsgc-checkout-box {
    background: linear-gradient(135deg, #f1c349 0%, #d4a83a 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    color: #333;
}

.vsgc-checkout-box h4 {
    margin: 0 0 15px;
    font-size: 1.3em;
    color: #333;
}

.vsgc-balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vsgc-balance-info .vsgc-amount {
    font-size: 1.5em;
    font-weight: 700;
}

.vsgc-applied-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.vsgc-applied-amount {
    font-size: 1.3em;
    font-weight: 700;
    color: #2e7d32;
}

.vsgc-apply-form {
    background: rgba(255,255,255,0.3);
    padding: 15px;
    border-radius: 10px;
}

.vsgc-amount-input {
    margin-bottom: 15px;
}

.vsgc-amount-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.vsgc-amount-input input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1.1em;
    background: #fff;
}

.vsgc-buttons {
    display: flex;
    gap: 10px;
}

.vsgc-buttons .button {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.vsgc-apply-btn {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
}

.vsgc-apply-all-btn {
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #333 !important;
}

.vsgc-remove-btn {
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #333 !important;
    padding: 10px 25px !important;
    border-radius: 8px !important;
}

/* Account Section */
.vsgc-account-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.vsgc-balance-card {
    background: linear-gradient(135deg, #f1c349 0%, #d4a83a 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.vsgc-balance-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.vsgc-balance-header .vsgc-icon {
    font-size: 2em;
}

.vsgc-balance-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.vsgc-balance-amount {
    font-size: 3em;
    font-weight: 700;
    margin: 15px 0;
}

.vsgc-balance-note {
    margin: 0;
    opacity: 0.8;
}

/* Transfer Section */
.vsgc-transfer-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.vsgc-transfer-section h3 {
    margin: 0 0 10px;
    color: #333;
}

.vsgc-transfer-desc {
    color: #666;
    margin-bottom: 25px;
}

.vsgc-transfer-form .vsgc-form-row {
    margin-bottom: 20px;
}

.vsgc-transfer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.vsgc-transfer-form label .required {
    color: #e74c3c;
}

.vsgc-transfer-form input[type="email"],
.vsgc-transfer-form input[type="number"],
.vsgc-transfer-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.vsgc-transfer-form input:focus,
.vsgc-transfer-form textarea:focus {
    border-color: #f1c349;
    outline: none;
}

.vsgc-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vsgc-amount-wrapper .vsgc-currency {
    font-size: 1.2em;
    font-weight: 600;
}

.vsgc-amount-wrapper input {
    flex: 1;
}

.vsgc-send-all {
    background: #f1c349;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.vsgc-available {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.vsgc-form-actions {
    margin-top: 25px;
}

.vsgc-transfer-btn {
    background: #f1c349 !important;
    color: #333 !important;
    border: none !important;
    padding: 15px 30px !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
    width: 100%;
}

.vsgc-transfer-btn:hover {
    opacity: 0.9;
}

.vsgc-transfer-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
}

.vsgc-transfer-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

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

.vsgc-no-balance {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vsgc-no-balance p {
    margin: 0 0 15px;
    color: #666;
}

/* History Section */
.vsgc-history-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
}

.vsgc-history-section h3 {
    margin: 0 0 25px;
    color: #333;
}

.vsgc-transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.vsgc-transactions-table th,
.vsgc-transactions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.vsgc-transactions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.vsgc-transactions-table tr:last-child td {
    border-bottom: none;
}

.vsgc-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.vsgc-type-gift_card_received,
.vsgc-type-transfer_received,
.vsgc-type-credit {
    background: #e8f5e9;
    color: #2e7d32;
}

.vsgc-type-gift_card_sent,
.vsgc-type-transfer_sent,
.vsgc-type-debit {
    background: #ffebee;
    color: #c62828;
}

.vsgc-type-redemption {
    background: #e3f2fd;
    color: #1565c0;
}

.vsgc-type-admin_adjustment {
    background: #fff3e0;
    color: #e65100;
}

.vsgc-positive {
    color: #2e7d32;
    font-weight: 600;
}

.vsgc-negative {
    color: #c62828;
    font-weight: 600;
}

.vsgc-no-transactions {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
}

/* Login Notice */
.vsgc-login-notice {
    background: #fff3e0;
    border: 2px solid #f1c349;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.vsgc-login-notice a {
    color: #d4a83a;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .vsgc-balance-amount {
        font-size: 2.2em;
    }

    .vsgc-amount-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .vsgc-send-all {
        width: 100%;
    }

    .vsgc-transactions-table {
        font-size: 0.9em;
    }

    .vsgc-transactions-table th,
    .vsgc-transactions-table td {
        padding: 8px 10px;
    }

    .vsgc-buttons {
        flex-direction: column;
    }
}
