/*
 * Lloyds Cardnet Admin Styles
 *
 * Copyright (c) 2020-2025 Autify Digital Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

/* =========================================
   General Admin Styles
   ========================================= */

.hide-row {
	display: none;
}

.dataTables_length {
	margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
	padding: 4px 15px;
}

.toggle-columns {
	cursor: pointer;
	float: left;
	margin-bottom: 10px;
}

.order-view-lloyds {
	float: left;
}

.lloyds-payment-info label {
	font-weight: 700;
}

.lloyds-payment-info .value {
	vertical-align: middle;
}

/* =========================================
   License Manager Styles
   ========================================= */

/* Notice Container */
.autify-lloyds-license-notice {
	border-left-color: #0073aa !important;
}

.autify-lloyds-license-notice.lloyds-notice-padded {
	padding: 20px;
}

.autify-lloyds-license-notice h2 {
	margin-top: 0;
	color: #0073aa;
}

/* License Notice Text */
.lloyds-notice-text {
	font-size: 14px;
}

.lloyds-notice-text-small {
	font-size: 12px;
	color: #666;
	margin-top: 15px;
}

.lloyds-notice-text-small em {
	font-style: italic;
}

/* License Notice Lists */
.lloyds-notice-list {
	list-style: disc;
	margin-left: 30px;
}

.lloyds-notice-list.lloyds-notice-text {
	font-size: 14px;
}

/* License Notice Info Box */
.lloyds-notice-info-box {
	font-size: 13px;
	background: #f0f0f0;
	padding: 10px;
	margin: 15px 0;
	border-left: 4px solid #0073aa;
}

/* License Notice Buttons */
.lloyds-notice-actions {
	margin-top: 20px;
}

.lloyds-notice-actions .button-secondary {
	margin-left: 10px;
}

/* Spinner and Message Inline */
.lloyds-spinner-inline {
	float: none;
	margin-left: 10px;
	visibility: hidden;
}

.lloyds-spinner-inline.is-active {
	visibility: visible;
}

.lloyds-message-inline {
	margin-left: 10px;
	color: #666;
}

/* Status Colors */
.lloyds-status-text-success {
	color: #28a745;
}

.lloyds-status-text-error {
	color: #dc3545;
}

.lloyds-status-text-warning {
	color: #ffc107;
}

.lloyds-status-text-muted {
	color: #6c757d;
}

/* License Page Specific */
.lloyds-license-icon-success {
	color: #28a745;
	margin-left: 10px;
}

.lloyds-license-status-active {
	color: #28a745;
}

.lloyds-license-status-expired {
	color: #ffc107;
}

.lloyds-license-status-invalid {
	color: #dc3545;
}

.lloyds-license-status-inactive {
	color: #6c757d;
}

.lloyds-license-next-step {
	margin-top: 10px;
}

.lloyds-license-form-spinner {
	float: none;
	margin-top: 0;
}

.lloyds-license-form-message {
	margin-left: 10px;
}

.lloyds-redirect-note {
	color: #666;
}

/* Button States */
#agree-and-generate-license:disabled,
#tracking-spinner.is-active + button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#consent-message,
#tracking-message {
	font-weight: 500;
}

#consent-message span,
#tracking-message span {
	font-weight: 600;
}

/* Spinner animation improvements */
.spinner.is-active {
	background: url('../image/what-processing.gif') no-repeat center center;
	background-size: 20px 20px;
}

/* Button hover effects for license actions */
#agree-and-generate-license:hover:not(:disabled) {
	background: #005a87 !important;
	border-color: #005a87 !important;
	box-shadow: 0 1px 0 #005a87;
}

#agree-and-generate-license:focus {
	box-shadow: 0 0 0 2px #005a87;
}

/* Success and error message styling */
.lloyds-status-text-success,
#consent-message .lloyds-status-text-success,
#tracking-message .lloyds-status-text-success {
	font-weight: 600;
	text-shadow: 0 0 1px rgba(0, 128, 0, 0.3);
}

.lloyds-status-text-error,
#consent-message .lloyds-status-text-error,
#tracking-message .lloyds-status-text-error {
	font-weight: 600;
	text-shadow: 0 0 1px rgba(255, 0, 0, 0.3);
}

/* Loading state styling */
.autify-lloyds-license-notice.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Responsive improvements */
@media (max-width: 768px) {
	#agree-and-generate-license,
	.autify-lloyds-license-notice .button {
		display: block;
		width: 100%;
		margin: 5px 0;
		text-align: center;
	}

	#consent-spinner,
	#tracking-spinner {
		display: block;
		margin: 10px auto 0 auto;
		float: none;
	}

	#consent-message,
	#tracking-message {
		display: block;
		text-align: center;
		margin-top: 10px;
	}
}

/* =========================================
   Transaction Report Styles (Order View)
   ========================================= */

/* Container */
.lloyd-cardnet-payment-container {
	padding: 0;
}

/* Section blocks */
.lloyd-cardnet-section {
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.lloyd-cardnet-section:last-child {
	margin-bottom: 0;
}

.lloyd-cardnet-section-title {
	margin: 0;
	padding: 12px 15px;
	font-size: 14px;
	font-weight: 600;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
	color: #1d2327;
}

/* Info table */
.lloyd-cardnet-info-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	box-shadow: none;
}

.lloyd-cardnet-info-table tbody tr {
	border-bottom: 1px solid #f0f0f1;
}

.lloyd-cardnet-info-table tbody tr:last-child {
	border-bottom: none;
}

.lloyd-cardnet-info-table th {
	width: 40%;
	padding: 10px 15px;
	text-align: left;
	font-weight: 600;
	color: #50575e;
	background: transparent;
	vertical-align: top;
	border: none;
}

.lloyd-cardnet-info-table td {
	padding: 10px 15px;
	color: #1d2327;
	background: transparent;
	vertical-align: top;
	border: none;
}

/* Status Badges */
.lloyds-status-success {
	display: inline-block;
	padding: 3px 10px;
	background: #d4edda;
	color: #155724;
	border-radius: 3px;
	font-weight: 500;
	font-size: 12px;
}

.lloyds-status-failed {
	display: inline-block;
	padding: 3px 10px;
	background: #f8d7da;
	color: #721c24;
	border-radius: 3px;
	font-weight: 500;
	font-size: 12px;
}

.lloyds-status-pending {
	display: inline-block;
	padding: 3px 10px;
	background: #fff3cd;
	color: #856404;
	border-radius: 3px;
	font-weight: 500;
	font-size: 12px;
}

.lloyds-status-refunded {
	display: inline-block;
	padding: 3px 10px;
	background: #cce5ff;
	color: #004085;
	border-radius: 3px;
	font-weight: 500;
	font-size: 12px;
}

.lloyds-status-default {
	display: inline-block;
	padding: 3px 10px;
	background: #e2e3e5;
	color: #383d41;
	border-radius: 3px;
	font-weight: 500;
	font-size: 12px;
}

/* Verification Status Indicators (Traffic Lights) */
.lloyds-verification-status {
	font-size: 18px;
	font-weight: bold;
	display: inline-block;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	margin: 0 2px;
	cursor: help;
	transition: all 0.2s ease;
}

.lloyds-verification-status:hover {
	transform: scale(1.2);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Traffic Light Colors */
.lloyds-verification-status.success {
	color: #28a745;
	text-shadow: 0 0 3px rgba(40, 167, 69, 0.5);
}

.lloyds-verification-status.failed {
	color: #dc3545;
	text-shadow: 0 0 3px rgba(220, 53, 69, 0.5);
}

.lloyds-verification-status.warning {
	color: #ffc107;
	text-shadow: 0 0 3px rgba(255, 193, 7, 0.5);
}

.lloyds-verification-status.error {
	color: #e74c3c;
	text-shadow: 0 0 3px rgba(231, 76, 60, 0.5);
}

.lloyds-verification-status.unknown {
	color: #6c757d;
	text-shadow: 0 0 3px rgba(108, 117, 125, 0.5);
}

.lloyds-check-text {
	vertical-align: middle;
	font-size: 13px;
}

.lloyds-check-passed {
	color: #28a745;
}

.lloyds-check-failed {
	color: #dc3545;
}

.lloyds-check-warning {
	color: #856404;
}

.lloyds-check-error {
	color: #dc3545;
}

/* Card Details */
.lloyd-cardnet-payment-container .card-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lloyd-cardnet-payment-container .card-brand img {
	height: 20px;
	width: auto;
}

.lloyd-cardnet-payment-container .masked-value {
	font-family: monospace;
	font-size: 13px;
	letter-spacing: 1px;
}

/* Amount styling */
.lloyd-cardnet-payment-container .amount {
	font-weight: 600;
}

.lloyd-cardnet-payment-container .refund-amount {
	color: #dc3545;
}

/* Gateway message */
.lloyd-cardnet-payment-container .gateway-message {
	font-size: 12px;
	color: #666;
	background: #f9f9f9;
	padding: 8px 10px;
	border-radius: 3px;
	word-break: break-word;
}

/* Payment method badge */
.lloyd-cardnet-payment-container .payment-method-badge {
	display: inline-block;
	padding: 3px 10px;
	background: #e9ecef;
	color: #495057;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
}

/* Responsive for Transaction Report */
@media screen and (max-width: 782px) {
	.lloyd-cardnet-info-table th,
	.lloyd-cardnet-info-table td {
		display: block;
		width: 100%;
		padding: 8px 15px;
	}

	.lloyd-cardnet-info-table th {
		padding-bottom: 0;
		font-size: 12px;
		color: #646970;
	}

	.lloyd-cardnet-info-table td {
		padding-top: 4px;
	}

	.lloyd-cardnet-payment-container .card-brand {
		flex-wrap: wrap;
	}
}

/* =========================================
   Transaction Reports Table Styles
   ========================================= */

/* Legend styling */
.lloyds-verification-legend .lloyds-verification-status {
	margin: 0 8px 0 15px;
	vertical-align: middle;
}

.lloyds-verification-legend {
	font-size: 14px;
	line-height: 1.5;
}

/* Better column alignment for verification status */
.wp-list-table .column-cvv_check,
.wp-list-table .column-street_check,
.wp-list-table .column-postcode_check {
	text-align: center;
	width: 70px;
}

.wp-list-table .column-payment_method {
	width: 200px;
}

/* Payment Method Cell - Combined layout */
.lloyds-payment-method-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lloyds-payment-method-cell strong {
	font-size: 13px;
	color: #1d2327;
}

.lloyds-card-details {
	font-size: 12px;
	color: #50575e;
}

.lloyds-card-details .card-brand {
	font-weight: 600;
	background: #f0f0f1;
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 11px;
}

.lloyds-card-details .card-last4 {
	font-family: monospace;
	letter-spacing: 0.5px;
}

.lloyds-verification-indicators {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
}

.lloyds-verification-indicators .verification-item {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
}

.lloyds-verification-indicators .verification-label {
	font-size: 11px;
	color: #50575e;
	font-weight: 500;
}

/* Filter controls styling */
.tablenav .actions select,
.tablenav .actions input[type="date"] {
	margin-right: 6px;
	vertical-align: middle;
}

.tablenav .actions input[type="date"] {
	padding: 4px 8px;
	min-width: 140px;
}

.tablenav .actions .button {
	margin-right: 6px;
	vertical-align: middle;
}

/* Summary box styling */
.lloyds-transaction-summary .summary-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.lloyds-transaction-summary .summary-item strong {
	font-size: 12px;
	color: #50575e;
	text-transform: uppercase;
}

/* Active filter indicator */
.tablenav .actions select:not([value=""]),
.tablenav .actions input[type="date"]:not([value=""]) {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

/* Export CSV button styling */
.lloyds-export-csv-btn {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px !important;
	height: auto !important;
	line-height: 1.4 !important;
}

.lloyds-export-csv-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.tablenav .alignright.actions {
	margin-left: auto;
}

/* Search box placeholder text */
.search-box input[type="search"]::placeholder {
	color: #999;
	font-style: italic;
}

/* Highlight search results info */
.lloyds-search-info {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	padding: 8px 12px;
	margin: 10px 0;
	font-size: 13px;
}

.lloyds-search-info strong {
	color: #856404;
}

/* Responsive table improvements */
@media (max-width: 768px) {
	.lloyds-verification-status {
		font-size: 16px;
		width: 18px;
		height: 18px;
		line-height: 18px;
	}

	.lloyds-verification-legend {
		font-size: 12px;
	}

	.lloyds-verification-legend .lloyds-verification-status {
		margin: 0 5px 0 10px;
	}
}

/* Responsive adjustments for filters */
@media (max-width: 1200px) {
	.tablenav .actions {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.tablenav .actions select,
	.tablenav .actions input[type="date"] {
		margin-right: 0;
	}
}

@media (max-width: 768px) {
	.lloyds-transaction-summary {
		flex-direction: column;
		gap: 15px !important;
	}

	.tablenav .actions select,
	.tablenav .actions input[type="date"] {
		width: 100%;
		max-width: 200px;
	}
}

/* =========================================
   Order Grid Column Styles
   ========================================= */

/* Column width */
.wp-list-table .column-lloyds_cardnet_verification {
	width: 180px;
}

/* Grid cell container */
.lloyds-grid-cell {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Status badges for order grid */
.lloyds-grid-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.4;
}

.lloyds-grid-status-success {
	background: #d4edda;
	color: #155724;
}

.lloyds-grid-status-failed {
	background: #f8d7da;
	color: #721c24;
}

.lloyds-grid-status-pending {
	background: #fff3cd;
	color: #856404;
}

.lloyds-grid-status-refunded {
	background: #cce5ff;
	color: #004085;
}

.lloyds-grid-status-default {
	background: #e2e3e5;
	color: #383d41;
}

/* Verification indicators row */
.lloyds-grid-verification {
	display: flex;
	gap: 4px;
	margin-top: 2px;
}

.lloyds-grid-check {
	cursor: help;
}

/* Verification indicator icons */
.lloyds-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	font-size: 10px;
	font-weight: bold;
	line-height: 1;
}

.lloyds-indicator-success {
	background: #28a745;
	color: #fff;
}

.lloyds-indicator-failed {
	background: #dc3545;
	color: #fff;
}

.lloyds-indicator-warning {
	background: #ffc107;
	color: #212529;
}

.lloyds-indicator-unknown {
	background: #6c757d;
	color: #fff;
}

/* Traffic Light System for Order Grid */
.lloyds-traffic-lights {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #f0f0f1;
	padding: 3px 6px;
	border-radius: 10px;
}

.lloyds-traffic-light {
	font-size: 16px;
	line-height: 1;
	cursor: help;
	transition: transform 0.15s ease, text-shadow 0.15s ease;
}

.lloyds-traffic-light:hover {
	transform: scale(1.2);
}

.lloyds-traffic-light-success {
	color: #28a745;
	text-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.lloyds-traffic-light-failed {
	color: #dc3545;
	text-shadow: 0 0 4px rgba(220, 53, 69, 0.5);
}

.lloyds-traffic-light-warning {
	color: #ffc107;
	text-shadow: 0 0 4px rgba(255, 193, 7, 0.5);
}

.lloyds-traffic-light-unknown {
	color: #6c757d;
	text-shadow: none;
}

/* Verification Wrapper for Order List */
.lloyds-verification-wrapper {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Card Info Display */
.lloyds-card-info {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1.3;
}

.lloyds-card-brand {
	font-weight: 600;
	color: #1e1e1e;
	background: #f0f0f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	letter-spacing: 0.3px;
}

.lloyds-card-last4 {
	color: #50575e;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 12px;
	letter-spacing: 0.5px;
}

/* Verification Grid Layout for Order List */
.lloyds-verification-grid {
	display: flex;
	gap: 8px;
}

.lloyds-verification-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.lloyds-verification-label {
	font-size: 9px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

/* Card info row (legacy) */
.lloyds-grid-card {
	margin-top: 2px;
}

.lloyds-grid-card small {
	color: #666;
	font-size: 11px;
}

/* Responsive adjustments for order grid column */
@media (max-width: 1200px) {
	.wp-list-table .column-lloyds_cardnet_verification {
		width: 150px;
	}

	.lloyds-verification-wrapper {
		gap: 4px;
	}

	.lloyds-card-info {
		gap: 4px;
	}

	.lloyds-card-brand {
		font-size: 9px;
		padding: 1px 4px;
	}

	.lloyds-card-last4 {
		font-size: 11px;
	}

	.lloyds-verification-grid {
		gap: 6px;
	}

	.lloyds-verification-label {
		font-size: 8px;
	}

	.lloyds-traffic-light {
		font-size: 14px;
	}
}

@media (max-width: 782px) {
	.wp-list-table .column-lloyds_cardnet_verification {
		display: none;
	}
}

/* =========================================
   Reports Stats Card Styles
   ========================================= */

.stats-wrapper {
	display: inline-flex;
	align-items: center;
	margin-bottom: 5px;
	vertical-align: middle;
}

.stats-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left-width: 4px;
	border-left-style: solid;
	/* Color is set inline via PHP */
	border-radius: 4px;
	padding: 4px 12px;
	display: flex;
	align-items: center;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.stats-content {
	margin-right: 12px;
}

.stats-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #646970;
	line-height: 1.2;
}

.stats-numbers {
	display: flex;
	align-items: baseline;
}

.stats-percent {
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.2;
}

.stats-count {
	font-size: 11px;
	color: #646970;
	margin-left: 6px;
}

.progress-bg {
	width: 80px;
	height: 6px;
	background: #f0f0f1;
	border-radius: 10px;
	overflow: hidden;
	display: block;
}

.progress-fill {
	height: 100%;
	border-radius: 10px;
	/* Width and Background Color are set inline via PHP */
}

.warning-box {
	margin-left: 10px;
	background: #fcf0f1;
	color: #d63638;
	border: 1px solid #d63638;
	border-radius: 4px;
	padding: 4px 12px;
	display: flex;
	align-items: center;
	height: 38px;
	font-size: 12px;
	font-weight: 600;
}

.warning-icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	margin-right: 6px;
}

/* =========================================
   Wallet Shipping Settings Styles
   ========================================= */

/* Main Container */
.lloyds-shipping-settings-container {
	max-width: 100%;
	margin-top: 20px;
}

.lloyds-shipping-settings-container .postbox {
	border: 1px solid #c3c4c7;
	background: #fff;
}

.lloyds-shipping-settings-container .postbox-header h2 {
	margin: 0;
	padding: 8px 12px;
	font-size: 14px;
	line-height: 1.4;
}

/* Tab Navigation */
.lloyds-shipping-tabs {
	margin-top: 20px;
}

.nav-tab-wrapper {
	border-bottom: 1px solid #ccd0d4;
	margin: 0 0 20px;
	padding: 0;
}

.nav-tab {
	background: #f1f1f1;
	border: 1px solid #ccd0d4;
	color: #72777c;
	text-decoration: none;
	padding: 10px 15px;
	margin: 0 5px 0 0;
	display: inline-block;
	border-bottom: none;
}

.nav-tab:hover {
	background: #fff;
	color: #464646;
}

.nav-tab-active {
	background: #fff !important;
	border-bottom: 1px solid #fff !important;
	color: #000 !important;
	margin-bottom: -1px;
}

/* Tab Content */
.tab-content {
	display: none;
	padding: 20px 0;
}

.tab-content.active {
	display: block;
}

/* Tables for Shipping Settings */
.lloyds-shipping-settings-container .wp-list-table th,
.lloyds-shipping-settings-container .wp-list-table td {
	padding: 12px;
	vertical-align: middle;
}

.lloyds-shipping-settings-container .wp-list-table code {
	background: #f1f1f1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 12px;
}

.wp-list-table .description-preview {
	max-width: 200px;
	word-wrap: break-word;
}

.lloyds-shipping-settings-container .wp-list-table .dashicons {
	margin-right: 5px;
	color: #72777c;
}

/* Buttons */
.edit-description-btn {
	margin-right: 8px;
}

.delete-description-btn {
	color: #d63384;
}

.delete-description-btn:hover {
	color: #b02a5b;
}

/* Modal */
.lloyds-modal {
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.lloyds-modal-content {
	background-color: #fff;
	margin: 5% auto;
	padding: 0;
	border: 1px solid #888;
	width: 80%;
	max-width: 600px;
	border-radius: 4px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lloyds-modal-header {
	padding: 20px 20px 10px;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.lloyds-modal-header h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
}

.lloyds-modal-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: absolute;
	right: 15px;
	top: 15px;
	cursor: pointer;
}

.lloyds-modal-close:hover,
.lloyds-modal-close:focus {
	color: #000;
	text-decoration: none;
}

.lloyds-modal-body {
	padding: 20px;
}

.lloyds-modal-body p {
	margin: 0 0 15px;
}

.lloyds-modal-body label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.lloyds-modal-body textarea {
	width: 100%;
	resize: vertical;
	min-height: 80px;
}

.character-count {
	margin-top: 10px;
	font-size: 12px;
	color: #72777c;
}

.lloyds-modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #ddd;
	text-align: right;
	background: #f9f9f9;
}

.lloyds-modal-footer .button {
	margin-left: 10px;
}

/* Preview Section */
.wallet-preview-container {
	display: flex;
	gap: 30px;
	margin-top: 20px;
}

.wallet-preview {
	flex: 1;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
}

.wallet-preview h4 {
	margin: 0 0 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
	font-size: 16px;
}

.wallet-preview h4 .dashicons {
	margin-right: 8px;
	vertical-align: text-top;
}

.wallet-options {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
}

.shipping-option {
	padding: 12px 15px;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.shipping-option:last-child {
	border-bottom: none;
}

.shipping-option:hover {
	background-color: #f8f9fa;
}

.shipping-option .option-label {
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.shipping-option .option-detail,
.shipping-option .option-description {
	font-size: 13px;
	color: #666;
	line-height: 1.4;
}

/* Apple Pay Preview Styling */
.applepay-preview {
	border-left: 4px solid #007cba;
}

.applepay-preview h4 {
	color: #007cba;
}

/* Google Pay Preview Styling */
.googlepay-preview {
	border-left: 4px solid #34a853;
}

.googlepay-preview h4 {
	color: #34a853;
}

/* Responsive Design for Shipping Settings */
@media (max-width: 768px) {
	.wallet-preview-container {
		flex-direction: column;
		gap: 20px;
	}

	.lloyds-modal-content {
		width: 95%;
		margin: 2% auto;
	}

	.lloyds-shipping-settings-container .wp-list-table th,
	.lloyds-shipping-settings-container .wp-list-table td {
		padding: 8px;
	}
}

/* Notices */
#lloyds-wallet-shipping-notices {
	margin-bottom: 20px;
}

#lloyds-wallet-shipping-notices .notice {
	margin: 5px 0 15px;
}

/* Loading States */
.button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Success/Error States */
.notice-success {
	border-left-color: #00a32a;
}

.notice-error {
	border-left-color: #d63384;
}

/* Utility Classes */
.text-center {
	text-align: center;
}

.text-muted {
	color: #72777c;
}