/**
 * CGT Subscribe & Save - Frontend Styles
 * Bold text, orange accents, theme-resistant
 */

/* ===== Product Page ===== */
#cgtsas-product-options.cgtsas-product-options {
	margin: 1.75em 0 !important;
	padding: 1.5em !important;
	background: #fff7ed !important;
	border-radius: 12px !important;
	border: 2px solid #e7e5e4 !important;
	box-shadow: 0 2px 12px rgba(234, 88, 12, 0.1) !important;
	box-sizing: border-box !important;
}

#cgtsas-product-options .cgtsas-options-title {
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	color: #c2410c !important;
	margin: 0 0 1em 0 !important;
	padding: 0 !important;
	letter-spacing: -0.01em !important;
	line-height: 1.3 !important;
}

#cgtsas-product-options .cgtsas-product-radio-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.75em !important;
}

#cgtsas-product-options .cgtsas-product-radio-card {
	display: flex !important;
	align-items: center !important;
	gap: 0.75em !important;
	padding: 1em 1.25em !important;
	background: #fff !important;
	border: 2px solid #e7e5e4 !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

#cgtsas-product-options .cgtsas-product-radio-card:hover {
	border-color: #ff7b3d !important;
	box-shadow: 0 2px 12px rgba(234, 88, 12, 0.12) !important;
}

#cgtsas-product-options .cgtsas-product-radio-card input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: #ea580c !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	position: relative !important;
	opacity: 1 !important;
}

#cgtsas-product-options .cgtsas-product-radio-text {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 0.4em !important;
}

#cgtsas-product-options .cgtsas-product-radio-text strong {
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #1c1917 !important;
}

#cgtsas-product-options .cgtsas-product-onetime-price {
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	color: #1c1917 !important;
}

#cgtsas-product-options .cgtsas-savings-badge {
	display: inline-block !important;
	padding: 0.2em 0.5em !important;
	background: linear-gradient(135deg, #ea580c, #c2410c) !important;
	color: #fff !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	border-radius: 5px !important;
}

#cgtsas-product-options .cgtsas-product-sub-price {
	font-size: 1.125rem !important;
	font-weight: 800 !important;
	color: #c2410c !important;
}

#cgtsas-product-options .cgtsas-frequency-wrap {
	margin-top: 1em !important;
	padding-top: 1em !important;
	border-top: 2px solid #e7e5e4 !important;
}

#cgtsas-product-options .cgtsas-frequency-label {
	display: block !important;
	font-weight: 700 !important;
	color: #c2410c !important;
	margin-bottom: 0.4em !important;
	font-size: 0.95rem !important;
}

#cgtsas-product-options .cgtsas-frequency-select {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0.6em 0.8em !important;
	border: 2px solid #e7e5e4 !important;
	border-radius: 8px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	background: #fff !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

#cgtsas-product-options .cgtsas-frequency-select:focus {
	outline: none !important;
	border-color: #ea580c !important;
}

/* ===== Cart Page ===== */
.cgtsas-cart-options-wrap {
	margin-bottom: 2em !important;
	padding: 1.5em !important;
	background: #fff7ed !important;
	border-radius: 12px !important;
	border: 2px solid #e7e5e4 !important;
	box-shadow: 0 2px 12px rgba(234, 88, 12, 0.1) !important;
	box-sizing: border-box !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-options-intro {
	font-weight: 800 !important;
	font-size: 1.05rem !important;
	color: #c2410c !important;
	margin: 0 0 1em 0 !important;
	padding: 0 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-item-options {
	padding: 1em 0 !important;
	border-bottom: 2px solid #e7e5e4 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-item-options:last-child {
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-item-name {
	font-weight: 800 !important;
	font-size: 1.05rem !important;
	color: #1c1917 !important;
	margin: 0 0 0.5em 0 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-radio-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5em !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-radio-group label {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 0.4em !important;
	cursor: pointer !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #1c1917 !important;
	margin: 0 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-radio-group input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	accent-color: #ea580c !important;
	margin: 0 0.25em 0 0 !important;
}

.cgtsas-cart-options-wrap .cgtsas-was-price {
	text-decoration: line-through !important;
	color: #57534e !important;
	font-weight: 600 !important;
}

.cgtsas-cart-options-wrap .cgtsas-now-price {
	color: #c2410c !important;
	font-weight: 800 !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-frequency {
	margin-top: 0.75em !important;
}

.cgtsas-cart-options-wrap .cgtsas-cart-frequency-select {
	padding: 0.5em 0.8em !important;
	border: 2px solid #e7e5e4 !important;
	border-radius: 8px !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
}

/* ===== Checkout ===== */
.cgtsas-checkout-options {
	margin-bottom: 1.75em !important;
	padding: 1.5em !important;
	background: #fff7ed !important;
	border-radius: 12px !important;
	border: 2px solid #e7e5e4 !important;
	box-shadow: 0 2px 12px rgba(234, 88, 12, 0.1) !important;
	box-sizing: border-box !important;
}

.cgtsas-checkout-options > p {
	font-weight: 800 !important;
	font-size: 1.05rem !important;
	color: #c2410c !important;
	margin: 0 0 1em 0 !important;
}

.cgtsas-checkout-options .cgtsas-checkout-item {
	padding: 0.75em 0 !important;
	border-bottom: 2px solid #e7e5e4 !important;
}

.cgtsas-checkout-options .cgtsas-checkout-item:last-child {
	border-bottom: none !important;
}

.cgtsas-checkout-options .cgtsas-checkout-item-name {
	font-weight: 800 !important;
	font-size: 1rem !important;
	color: #1c1917 !important;
	margin: 0 0 0.4em 0 !important;
}

.cgtsas-checkout-options .cgtsas-cart-radio-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5em !important;
}

.cgtsas-checkout-options .cgtsas-cart-radio-group label {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 0.4em !important;
	cursor: pointer !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #1c1917 !important;
}

.cgtsas-checkout-options .cgtsas-was-price {
	text-decoration: line-through !important;
	color: #57534e !important;
}

.cgtsas-checkout-options .cgtsas-now-price {
	color: #c2410c !important;
	font-weight: 800 !important;
}

/* ===== Checkout Order Review Item Meta ===== */
.cgtsas-checkout-item-meta {
	margin: 0.3em 0 0 0 !important;
	padding: 0 !important;
	font-size: 0.82rem !important;
}

.cgtsas-checkout-item-meta dt {
	display: inline !important;
	font-weight: 700 !important;
	color: #57534e !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

.cgtsas-checkout-item-meta dd {
	display: inline !important;
	margin: 0 0.75em 0 0.25em !important;
	padding: 0 !important;
	color: #ea580c !important;
	font-weight: 600 !important;
}

/* ===== Loading state ===== */
body.cgtsas-loading .cgtsas-cart-options-wrap {
	opacity: 0.6 !important;
	pointer-events: none !important;
}

/* ===== Product page quantity alignment ===== */
#cgtsas-product-options.cgtsas-product-options + .quantity,
#cgtsas-product-options.cgtsas-product-options ~ .quantity,
.cgtsas-product-options + .quantity,
form.cart .quantity {
	display: inline-flex !important;
	align-items: center !important;
	vertical-align: middle !important;
}

form.cart .cgtsas-product-options ~ .quantity,
form.cart .cgtsas-product-options + .quantity {
	margin-top: 0.5em !important;
}

form.cart .cgtsas-product-options ~ .single_add_to_cart_button,
form.cart .cgtsas-product-options + .single_add_to_cart_button {
	vertical-align: middle !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	#cgtsas-product-options.cgtsas-product-options,
	.cgtsas-cart-options-wrap,
	.cgtsas-checkout-options {
		padding: 1em !important;
	}
}
