/* ---------- Checkout: layout ---------- */
.ry-checkout { width: 100%; font-family: "DM Sans", sans-serif; color: #12352b; }
.ry-checkout .woocommerce { width: 100%; }
.ry-checkout form.checkout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; margin: 0 !important; }
.ry-checkout form.checkout > .woocommerce-NoticeGroup,
.ry-checkout form.checkout > .woocommerce-error,
.ry-checkout form.checkout > .woocommerce-message,
.ry-checkout form.checkout > .woocommerce-info { flex: 0 0 100%; }
.ry-checkout #customer_details { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Not sticky: the card is taller than the screen and Place order must stay reachable. */
.ry-checkout .ry-co-side { flex: 0 0 420px; min-width: 0; }
@media (max-width: 1024px) { .ry-checkout .ry-co-side { flex-basis: 360px; } }
@media (max-width: 860px) {
	.ry-checkout form.checkout { flex-direction: column; align-items: stretch; }
	.ry-checkout .ry-co-side { flex-basis: auto; }
}

/* Woo's two-column floats -> stacked cards */
.ry-checkout .col2-set { display: flex; flex-direction: column; gap: 16px; width: 100% !important; }
.ry-checkout .col2-set::before, .ry-checkout .col2-set::after { display: none !important; }
.ry-checkout .col2-set .col-1,
.ry-checkout .col2-set .col-2 { float: none !important; width: 100% !important; max-width: none !important; padding: 0 !important; display: flex; flex-direction: column; gap: 16px; }

.ry-checkout .woocommerce-billing-fields,
.ry-checkout .woocommerce-shipping-fields,
.ry-checkout .woocommerce-additional-fields,
.ry-checkout .woocommerce-account-fields {
	padding: 28px 28px 24px;
	border: 1px solid #ece8df;
	border-radius: 22px;
	background: #ffffff;
}
.ry-checkout .woocommerce-account-fields:empty,
.ry-checkout .woocommerce-shipping-fields:empty { display: none; }
@media (max-width: 640px) {
	.ry-checkout .woocommerce-billing-fields,
	.ry-checkout .woocommerce-shipping-fields,
	.ry-checkout .woocommerce-additional-fields,
	.ry-checkout .woocommerce-account-fields { padding: 22px 16px 18px; border-radius: 18px; }
}

.ry-checkout h3 {
	margin: 0 0 18px !important;
	padding: 0 !important;
	color: #12352b !important;
	font: 500 22px/1.25 "DM Sans", sans-serif !important;
	letter-spacing: -0.01em;
	text-transform: none !important;
}
.ry-checkout #ship-to-different-address { margin: 0 !important; font-size: 16px !important; }
.ry-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ry-checkout .woocommerce-shipping-fields .shipping_address { margin-top: 18px; }

/* ---------- Fields ---------- */
.ry-checkout .woocommerce-billing-fields__field-wrapper,
.ry-checkout .woocommerce-shipping-fields__field-wrapper,
.ry-checkout .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}
.ry-checkout .woocommerce-billing-fields__field-wrapper::before,
.ry-checkout .woocommerce-billing-fields__field-wrapper::after,
.ry-checkout .woocommerce-shipping-fields__field-wrapper::before,
.ry-checkout .woocommerce-shipping-fields__field-wrapper::after { display: none !important; }
.ry-checkout .form-row { grid-column: 1 / -1; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.ry-checkout .form-row-first { grid-column: 1; }
.ry-checkout .form-row-last { grid-column: 2; }
@media (max-width: 640px) {
	.ry-checkout .woocommerce-billing-fields__field-wrapper,
	.ry-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.ry-checkout .form-row-first, .ry-checkout .form-row-last { grid-column: 1; }
}

.ry-checkout .form-row label {
	display: block;
	margin: 0 0 7px !important;
	color: #12352b !important;
	font: 600 13px/1.3 "DM Sans", sans-serif !important;
}
.ry-checkout .form-row .required { color: #b3261e; text-decoration: none; border: 0; }
.ry-checkout .form-row .optional { color: #8a958f; font-weight: 400; }

.ry-checkout .input-text,
.ry-checkout select,
.ry-checkout textarea {
	width: 100% !important;
	min-height: 50px;
	margin: 0 !important;
	padding: 12px 16px !important;
	border: 1px solid #d9d4c7 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	color: #12352b !important;
	font: 400 15px/1.4 "DM Sans", sans-serif !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ry-checkout textarea { min-height: 110px; resize: vertical; }
.ry-checkout .input-text::placeholder, .ry-checkout textarea::placeholder { color: #9aa49f; }
.ry-checkout .input-text:focus,
.ry-checkout select:focus,
.ry-checkout textarea:focus {
	outline: none !important;
	border-color: #12352b !important;
	box-shadow: 0 0 0 3px rgba(197, 238, 58, 0.55) !important;
}
.ry-checkout .woocommerce-invalid .input-text,
.ry-checkout .woocommerce-invalid select { border-color: #b3261e !important; }
.ry-checkout .woocommerce-validated .input-text { border-color: #9cc23a !important; }

/* Country / state dropdowns (selectWoo) */
.ry-checkout .select2-container { width: 100% !important; }
.ry-checkout .select2-container--default .select2-selection--single {
	height: 50px !important;
	border: 1px solid #d9d4c7 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
}
.ry-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 16px !important;
	color: #12352b !important;
	font: 400 15px/48px "DM Sans", sans-serif !important;
}
.ry-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0 !important; right: 10px !important; height: 48px !important; }
.ry-checkout .select2-container--open .select2-selection--single,
.ry-checkout .select2-container--focus .select2-selection--single { border-color: #12352b !important; box-shadow: 0 0 0 3px rgba(197, 238, 58, 0.55); }
.select2-dropdown { border-color: #d9d4c7 !important; border-radius: 12px !important; overflow: hidden; font-family: "DM Sans", sans-serif; }
.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted[data-selected] { background: #1d4a3c !important; color: #ffffff !important; }

.ry-checkout input[type="checkbox"], .ry-checkout input[type="radio"] { accent-color: #12352b; width: 18px; height: 18px; }
.ry-checkout .woocommerce-form__label-for-checkbox { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }

/* ---------- Coupon / login toggles + notices ---------- */
.ry-checkout .woocommerce-form-coupon-toggle,
.ry-checkout .woocommerce-form-login-toggle { margin-bottom: 16px; }
.ry-checkout .woocommerce-info,
.ry-checkout .woocommerce-message,
.ry-checkout .woocommerce-error {
	margin: 0 0 16px !important;
	padding: 16px 20px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #f4f1ea !important;
	color: #12352b !important;
	font: 400 14px/1.5 "DM Sans", sans-serif !important;
	list-style: none !important;
}
.ry-checkout .woocommerce-info::before,
.ry-checkout .woocommerce-message::before,
.ry-checkout .woocommerce-error::before { display: none !important; }
.ry-checkout .woocommerce-error { background: #fff1ef !important; color: #8a2a1a !important; }
.ry-checkout .woocommerce-error li { margin: 0 !important; padding: 2px 0 !important; }
.ry-checkout .woocommerce-message { background: #f3fbd9 !important; }
.ry-checkout .woocommerce-info a,
.ry-checkout .woocommerce-message a { color: #12352b !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

.ry-checkout form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px !important;
	padding: 18px !important;
	border: 1px dashed #d9d4c7 !important;
	border-radius: 16px !important;
}
.ry-checkout form.checkout_coupon p:not(.form-row) { flex: 0 0 100%; margin: 0 !important; color: #5b6b64; font-size: 14px; }
.ry-checkout form.checkout_coupon .form-row { flex: 1 1 200px; }
.ry-checkout form.checkout_coupon .form-row-last { flex: 0 0 auto; }

/* ---------- Order summary (green card) ---------- */
.ry-checkout .ry-co-side {
	padding: 28px 26px 24px;
	border-radius: 24px;
	background: radial-gradient(circle at 100% 0%, rgba(197, 238, 58, 0.14) 0%, rgba(197, 238, 58, 0) 45%), #12352b;
	color: #ffffff;
}
@media (max-width: 640px) { .ry-checkout .ry-co-side { padding: 24px 16px 20px; border-radius: 20px; } }
.ry-checkout #order_review_heading {
	display: inline-block;
	margin: 0 0 18px !important;
	padding: 6px 14px !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff !important;
	font: 600 10px/1.4 "DM Sans", sans-serif !important;
	letter-spacing: 0.12em;
	text-transform: uppercase !important;
}
.ry-checkout #order_review { float: none !important; width: auto !important; margin: 0 !important; }
.ry-checkout .ry-co-side h3:not(#order_review_heading) { margin: 4px 0 14px !important; color: #ffffff !important; font-size: 18px !important; }

.ry-checkout table.shop_table {
	width: 100%;
	margin: 0 0 18px !important;
	border: 0 !important;
	border-collapse: collapse !important;
	background: transparent !important;
	color: #ffffff;
	font-size: 14px;
}
.ry-checkout table.shop_table th,
.ry-checkout table.shop_table td {
	padding: 12px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.8) !important;
	font-weight: 400 !important;
	text-align: left;
	vertical-align: top;
}
.ry-checkout table.shop_table thead th { padding-top: 0 !important; color: rgba(255, 255, 255, 0.55) !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0.1em; text-transform: uppercase; }
.ry-checkout table.shop_table th:last-child,
.ry-checkout table.shop_table td:last-child { text-align: right; }
.ry-checkout table.shop_table td.product-name { color: #ffffff !important; font-weight: 500 !important; padding-right: 12px !important; }
.ry-checkout table.shop_table .product-quantity { color: #c5ee3a; font-weight: 600; }
.ry-checkout table.shop_table td.product-total,
.ry-checkout table.shop_table tfoot td { color: #ffffff !important; }
.ry-checkout table.shop_table tfoot th { color: rgba(255, 255, 255, 0.7) !important; }
.ry-checkout table.shop_table .order-total th,
.ry-checkout table.shop_table .order-total td { padding-top: 16px !important; border-bottom: 0 !important; vertical-align: baseline; }
.ry-checkout table.shop_table .order-total th { color: #ffffff !important; font-size: 18px !important; font-weight: 500 !important; }
.ry-checkout table.shop_table .order-total td strong { color: #ffffff; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.ry-checkout table.shop_table .order-total .includes_tax { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.ry-checkout table.shop_table .woocommerce-Price-currencySymbol { margin-left: 3px; font-size: 0.72em; }
.ry-checkout #shipping_method { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ry-checkout #shipping_method li { margin: 0 0 6px !important; padding: 0 !important; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.ry-checkout #shipping_method li label { color: #ffffff !important; font-weight: 500; }
.ry-checkout .woocommerce-remove-coupon { color: #c5ee3a !important; margin-left: 6px; }

/* ---------- Payment ---------- */
.ry-checkout #payment { margin: 0 !important; padding: 0 !important; border-radius: 0 !important; background: transparent !important; }
.ry-checkout #payment ul.payment_methods {
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}
.ry-checkout #payment ul.payment_methods::before,
.ry-checkout #payment ul.payment_methods::after { display: none !important; }
.ry-checkout #payment ul.payment_methods li {
	margin: 0 0 10px !important;
	padding: 14px 16px !important;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	line-height: 1.4;
}
.ry-checkout #payment ul.payment_methods li > label { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; color: #ffffff !important; font: 600 15px/1.3 "DM Sans", sans-serif !important; cursor: pointer; }
.ry-checkout #payment ul.payment_methods li > label img { max-height: 22px; width: auto; margin: 0 0 0 4px !important; }
.ry-checkout #payment ul.payment_methods li input[type="radio"] { margin: 0 8px 0 0 !important; accent-color: #c5ee3a; vertical-align: middle; }
.ry-checkout #payment div.payment_box {
	margin: 14px 0 2px !important;
	padding: 16px !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	color: #12352b !important;
	font-size: 14px;
}
.ry-checkout #payment div.payment_box::before { display: none !important; }
.ry-checkout #payment div.payment_box p { margin: 0 0 10px !important; color: #5b6b64 !important; }
.ry-checkout #payment div.payment_box fieldset { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ry-checkout #payment .woocommerce-SavedPaymentMethods-saveNew label { color: #12352b !important; }

.ry-checkout #payment .place-order { margin: 0 !important; padding: 0 !important; }
.ry-checkout .woocommerce-terms-and-conditions-wrapper,
.ry-checkout .woocommerce-privacy-policy-text { color: rgba(255, 255, 255, 0.65); font-size: 12px; line-height: 1.55; }
.ry-checkout .woocommerce-privacy-policy-text p { margin: 0 0 14px !important; }
.ry-checkout .woocommerce-terms-and-conditions-wrapper a { color: #c5ee3a !important; text-decoration: underline !important; text-underline-offset: 2px; }
.ry-checkout .woocommerce-terms-and-conditions-wrapper .form-row label { color: #ffffff !important; }

.ry-checkout #place_order {
	float: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	margin: 4px 0 0 !important;
	padding: 18px 24px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #c5ee3a !important;
	color: #12352b !important;
	font: 600 16px/1 "DM Sans", sans-serif !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}
.ry-checkout #place_order:hover { background: #ffffff !important; transform: translateY(-2px); }
.ry-checkout .ry-co-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.ry-checkout .ry-co-secure svg { width: 16px; height: 16px; fill: none; stroke: #c5ee3a; stroke-width: 1.8; }

/* Woo's loading overlay while totals refresh */
.ry-checkout .blockUI.blockOverlay { border-radius: 24px; background: rgba(18, 53, 43, 0.35) !important; }
.ry-checkout .woocommerce-checkout-review-order .blockUI.blockOverlay { background: rgba(18, 53, 43, 0.6) !important; }

/* Empty cart state from the shortcode */
.ry-checkout .cart-empty,
.ry-checkout .return-to-shop { text-align: center; }
.ry-checkout .return-to-shop .button {
	display: inline-flex;
	padding: 15px 28px !important;
	border-radius: 999px !important;
	background: #12352b !important;
	color: #ffffff !important;
	font: 600 14px/1 "DM Sans", sans-serif !important;
}
