/**
 * Advanced WooCommerce Subscriptions - Frontend Styles
 * Theme-compatible, responsive, accessible WooCommerce styling.
 */

.aws-price-meta {
	display: block;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.85;
	margin-top: 4px;
}

.aws-product-subscription-box {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	padding: 16px;
	margin: 16px 0 20px;
	background: rgba(0, 0, 0, 0.015);
}

.aws-purchase-mode-selector {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.aws-mode-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 5px;
	cursor: pointer;
	background: #ffffff;
	transition: border-color 0.15s ease;
}

.aws-mode-option.aws-mode-active {
	border-color: #7f54b3;
	box-shadow: 0 0 0 1px #7f54b3;
}

.aws-plan-heading {
	margin: 0 0 10px;
	font-size: 1em;
	font-weight: 600;
}

.aws-plan-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aws-plan-list li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	font-size: 0.94em;
}

.aws-plan-list li:last-child {
	border-bottom: none;
}

.aws-total-value-line {
	font-size: 1em;
	padding-top: 8px !important;
}

/* Cart & Checkout Recurring Summary */
.aws-recurring-totals-header th {
	background: rgba(127, 84, 179, 0.08);
	font-size: 0.95em;
}

.aws-checkout-disclosure,
.aws-blocks-summary-card {
	border: 1px solid rgba(127, 84, 179, 0.25);
	background: rgba(127, 84, 179, 0.05);
	border-radius: 6px;
	padding: 12px 14px;
	margin: 14px 0;
	font-size: 0.9em;
	line-height: 1.5;
}

.aws-blocks-summary-card h4 {
	margin: 0 0 8px;
	font-size: 1em;
}

.aws-blocks-summary-card ul {
	margin: 0 0 8px;
	padding-left: 18px;
}

/* My Account Subscriptions */
.aws-status-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.78em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.aws-status-active,
.aws-status-completed {
	background: #e6f6ea;
	color: #0f6b2f;
}

.aws-status-scheduled {
	background: #e8f0fe;
	color: #174ea6;
}

.aws-status-pending,
.aws-status-on-hold,
.aws-status-pending-cancel {
	background: #fef3cd;
	color: #8a6100;
}

.aws-status-failed,
.aws-status-refunded {
	background: #fce8e8;
	color: #a81c1e;
}

.aws-status-cancelled,
.aws-status-expired {
	background: #eef0f2;
	color: #50575e;
}

.aws-customer-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0 24px;
}

.aws-update-payment-box {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	padding: 16px;
	margin: 20px 0;
}

.aws-update-payment-box h3 {
	margin-top: 0;
}

.aws-pay-now-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.aws-muted {
	opacity: 0.7;
}
