/* Gift Voucher Frontend Styles */

/* Store Credit Balance Shortcode */
.nb-store-credit-balance {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.store-credit-summary {
	text-align: center;
	margin-bottom: 30px;
}

.credit-amount {
	font-size: 2em;
	font-weight: bold;
	color: #27ae60;
	margin: 10px 0;
}

.transactions-table {
	width: 100%;
	border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.transactions-table th {
	background: #f8f9fa;
	font-weight: 600;
}

.transaction-type.credit {
	color: #27ae60;
	font-weight: bold;
}

.transaction-type.debit {
	color: #e74c3c;
	font-weight: bold;
}

.transaction-amount.credit {
	color: #27ae60;
}

.transaction-amount.debit {
	color: #e74c3c;
}

/* My Account Store Credit */
.woocommerce-MyAccount-store-credit {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.woocommerce-MyAccount-store-credit h2 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 1.5em;
	color: #333;
}

.store-credit-balance-card {
	background: #fff;
	border-radius: 6px;
	padding: 20px;
}

.balance-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 6px;
	color: white;
	margin-bottom: 20px;
}

.balance-label {
	font-size: 1em;
	font-weight: 500;
}

.balance-amount {
	font-size: 1.8em;
	font-weight: bold;
}

.recent-transactions h4 {
	margin: 0 0 10px 0;
	font-size: 1em;
	color: #666;
}

.transaction-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.transaction-item {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
	border-bottom: none;
}

.transaction-desc {
	color: #666;
	font-size: 0.9em;
}

.transaction-amt {
	font-weight: 600;
}

.transaction-amt.credit {
	color: #27ae60;
}

.transaction-amt.debit {
	color: #e74c3c;
}

/* Voucher Code Checkout */
.voucher-code-checkout {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 20px;
	margin: 0 0 20px 0;
}

.voucher-code-checkout h3 {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 1.2em;
}

.voucher-input-group {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.voucher-input-group input[type="text"] {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	text-transform: uppercase;
}

.voucher-input-group .button {
	padding: 10px 20px;
	white-space: nowrap;
}

.voucher-applied-notice {
	background: #e8f5e8;
	border: 2px solid #46b450;
	border-radius: 4px;
	padding: 15px;
}

.voucher-applied-notice p {
	margin: 0 0 10px 0;
}

.voucher-code-display {
	display: inline-block;
	background: #fff;
	padding: 4px 12px;
	border-radius: 3px;
	font-family: monospace;
	font-weight: bold;
	color: #46b450;
	font-size: 1.1em;
	margin-left: 5px;
}

#remove-voucher-btn {
	background: #dc3545;
	color: white;
	border: none;
}

#remove-voucher-btn:hover {
	background: #c82333;
}

/* Store Credit Checkout */
.store-credit-checkout {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px;
	margin: 0 0 20px 0;
}

.store-credit-checkout h3 {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 1.2em;
}

.store-credit-info p {
	margin: 0 0 15px 0;
	color: #666;
}

.store-credit-actions {
	margin-top: 15px;
}

.store-credit-actions .button {
	margin-right: 10px;
}

.store-credit-full-payment {
	background: #e8f5e9;
	border-radius: 4px;
	padding: 15px;
	margin-top: 15px;
}

.store-credit-partial-payment {
	background: #fff3cd;
	border-radius: 4px;
	padding: 15px;
	margin-top: 15px;
}

.store-credit-partial-payment .store-credit-notice {
	background: #fff;
	padding: 12px;
	border-radius: 4px;
	margin: 0 !important;
}

.store-credit-payment-info {
	margin-top: 15px;
}

.store-credit-option {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 10px;
}

.store-credit-option:last-child {
	margin-bottom: 0;
}

.store-credit-option strong {
	color: #27ae60;
}

.store-credit-notice {
	margin: 0 0 10px 0 !important;
	color: #333;
}

.store-credit-remaining {
	color: #27ae60;
	font-weight: 600;
}

.store-credit-checkout.can-pay-in-full .store-credit-notice {
	color: #333;
}

/* Order Totals */
.order-voucher-discount {
	background-color: #fffbf0;
	border-top: 2px solid #ffc107;
	border-bottom: 2px solid #ffc107;
}

.order-voucher-discount th,
.order-voucher-discount td {
	padding: 12px !important;
}

.order-total-before-discount {
	border-top: 1px solid #e5e5e5;
	font-size: 1.05em;
}

.order-total-before-discount th,
.order-total-before-discount td {
	padding-top: 15px !important;
	padding-bottom: 8px !important;
}

.order-store-credit th,
.order-total-before-discount th {
	padding-left: 0 !important;
}

.order-store-credit {
	background-color: #f0f8f0;
	border-top: 2px solid #46b450;
	border-bottom: 2px solid #46b450;
}

.order-store-credit th,
.order-store-credit td {
	padding: 12px !important;
}

/* Store Credit Checkout Extended Styles */
.store-credit-checkout {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 20px;
	margin: 20px 0;
}

.store-credit-checkout.can-pay-in-full {
	background: #e8f5e8;
	border-color: #27ae60;
}

.store-credit-checkout.partial-payment-applied {
	background: #fff3cd;
	border: 2px solid #ffc107;
}

.store-credit-checkout h3 {
	margin: 0 0 15px 0;
	color: #333;
}

.store-credit-info p {
	margin: 0 0 15px 0;
}

.store-credit-full-payment {
	background: #fff;
	border: 1px solid #27ae60;
	border-radius: 4px;
	padding: 15px;
	margin-top: 15px;
}

.store-credit-partial-payment {
	background: #fff;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 15px;
	margin-top: 15px;
}

.store-credit-partial-payment .store-credit-notice {
	background: #fff;
	padding: 12px;
	border-radius: 4px;
	margin: 0 !important;
}

.store-credit-payment-info {
	margin-top: 15px;
}

.store-credit-option {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 10px;
}

.store-credit-option:last-child {
	margin-bottom: 0;
}

.store-credit-option strong {
	color: #27ae60;
}

.store-credit-notice {
	margin: 0 0 10px 0 !important;
	color: #333;
}

.store-credit-remaining {
	color: #27ae60;
	font-weight: 600;
}

.store-credit-actions .button {
	margin-right: 10px;
}

.store-credit-checkout.can-pay-in-full .store-credit-notice {
	color: #333;
}

