/* ==========================================================================
   AIC – Cart & Checkout (classic WooCommerce shortcodes)
   WooCommerce's own layout stylesheet is dequeued, so the two-column layout
   and all card / form / button styling live here.
   ========================================================================== */

.woocommerce-cart .aic-page,
.woocommerce-checkout .aic-page { max-width: 1180px; }

/* shared card look for the totals / order boxes */
.aic-wc-card,
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review {
	background: #fff;
	border: 1px solid var(--aic-line);
	border-radius: 16px;
	padding: 26px 24px;
	box-shadow: var(--aic-shadow);
}

/* WooCommerce notices – soften to match the theme */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 3px solid var(--aic-green);
	background: #f4f8f4;
	border-radius: 10px;
	color: var(--aic-ink);
}
.woocommerce-error { border-top-color: var(--aic-rose); background: #fbeff0; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--aic-green-d); }

/* --------------------------------------------------------------------------
   BUTTONS (match theme pills)
   -------------------------------------------------------------------------- */
.woocommerce-cart .aic-entry__content a.button,
.woocommerce-cart .aic-entry__content button.button,
.woocommerce-cart .aic-entry__content input.button,
.woocommerce-checkout .aic-entry__content a.button,
.woocommerce-checkout .aic-entry__content button.button,
.woocommerce-checkout .aic-entry__content input.button,
.wc-proceed-to-checkout a.checkout-button,
#place_order {
	background: var(--aic-green);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 28px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.1;
	cursor: pointer;
	transition: background .15s ease, transform .15s ease, opacity .15s ease;
	text-transform: none;
}
.woocommerce-cart .aic-entry__content a.button:hover,
.woocommerce-cart .aic-entry__content button.button:hover,
.woocommerce-cart .aic-entry__content input.button:hover,
.woocommerce-checkout .aic-entry__content a.button:hover,
.woocommerce-checkout .aic-entry__content button.button:hover,
.woocommerce-checkout .aic-entry__content input.button:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
#place_order:hover { background: var(--aic-green-d); color: #fff; transform: translateY(-1px); }

/* primary CTAs full width inside their box */
.wc-proceed-to-checkout a.checkout-button,
#place_order { display: block; width: 100%; text-align: center; padding: 15px 28px; font-size: 15px; }

/* secondary buttons (update cart / apply coupon) – ghost style */
.woocommerce-cart .aic-entry__content button[name="update_cart"],
.woocommerce-cart .aic-entry__content button[name="apply_coupon"] {
	background: transparent;
	color: var(--aic-green-d);
	border: 1.5px solid var(--aic-green);
}
.woocommerce-cart .aic-entry__content button[name="update_cart"]:hover,
.woocommerce-cart .aic-entry__content button[name="apply_coupon"]:hover {
	background: var(--aic-mint);
	color: var(--aic-green-d);
}
.woocommerce-cart .aic-entry__content button[name="update_cart"][disabled] { opacity: .5; }

/* --------------------------------------------------------------------------
   CART PAGE  – products left, totals right
   -------------------------------------------------------------------------- */
.woocommerce-cart .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; margin: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; width: 100%; float: none; }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
.woocommerce-cart .cart-collaterals .cross-sells { grid-column: 1 / -1; }

/* cart table */
.woocommerce-cart table.cart {
	border: 1px solid var(--aic-line);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--aic-shadow);
}
.woocommerce-cart table.cart thead th {
	background: #f4f6f4;
	border: 0;
	padding: 16px;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--aic-muted);
	text-align: left;
}
.woocommerce-cart table.cart td {
	border: 0;
	border-top: 1px solid var(--aic-line);
	padding: 18px 16px;
	vertical-align: middle;
}
.woocommerce-cart table.cart .product-thumbnail img { width: 72px; border-radius: 10px; }
.woocommerce-cart table.cart .product-name a { color: var(--aic-ink); text-decoration: none; font-weight: 600; }
.woocommerce-cart table.cart .product-name a:hover { color: var(--aic-rose); }
.woocommerce-cart table.cart td.product-remove { text-align: center; width: 40px; }
.woocommerce-cart table.cart a.remove {
	color: var(--aic-rose) !important;
	border: 1px solid var(--aic-line);
	background: #fff;
	line-height: 22px;
	width: 24px; height: 24px;
	border-radius: 50%;
}
.woocommerce-cart table.cart a.remove:hover { background: var(--aic-rose) !important; color: #fff !important; }
.woocommerce-cart table.cart td.actions { background: #fafbfa; }
.woocommerce-cart table.cart td.actions .coupon { display: inline-flex; gap: 8px; }
.woocommerce-cart .quantity input.qty {
	border: 1px solid var(--aic-line);
	border-radius: 8px;
	padding: 8px;
	width: 62px;
	text-align: center;
	font: inherit;
}

/* cart totals box */
.woocommerce-cart .cart_totals h2 { font-size: 20px; margin: 0 0 16px; }
.woocommerce-cart .cart_totals table { border: 0; margin: 0; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
	border: 0;
	border-top: 1px solid var(--aic-line);
	padding: 12px 0;
	font-size: 14px;
}
.woocommerce-cart .cart_totals table tr:first-child th,
.woocommerce-cart .cart_totals table tr:first-child td { border-top: 0; }
.woocommerce-cart .cart_totals .order-total .amount { color: var(--aic-green-d); font-size: 18px; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 18px 0 0; }

/* --------------------------------------------------------------------------
   CHECKOUT PAGE – customer details left, "Your order" right
   -------------------------------------------------------------------------- */
.woocommerce-checkout form.checkout.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	column-gap: 40px;
	align-items: start;
}
.woocommerce-checkout form.checkout #customer_details { grid-column: 1; width: 100%; float: none; }
.woocommerce-checkout form.checkout .aic-order-col { grid-column: 2; width: 100%; }
.woocommerce-checkout form.checkout #order_review_heading { margin: 0 0 14px; font-size: 20px; }
.woocommerce-checkout form.checkout #order_review { width: 100%; float: none; }

/* the login / coupon toggles sit above the grid, full width */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.login,
.woocommerce-checkout form.checkout_coupon { margin-bottom: 24px; }

/* billing / shipping columns stack in the left column */
.woocommerce-checkout #customer_details .col2-set .col-1,
.woocommerce-checkout #customer_details .col2-set .col-2 { width: 100%; float: none; margin-bottom: 8px; }
.woocommerce-checkout #customer_details h3 { font-size: 18px; margin: 0 0 16px; }

/* form fields */
.woocommerce-checkout .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--aic-ink); margin-bottom: 6px; display: block; }
.woocommerce form .form-row .required { color: var(--aic-rose); border: 0; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout select,
.woocommerce-checkout .select2-container .select2-selection--single {
	width: 100%;
	border: 1px solid var(--aic-line);
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
	color: var(--aic-ink);
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout .select2-container .select2-selection--single {
	height: auto;
	min-height: 46px;
	display: flex;
	align-items: center;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 8px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-checkout select:focus {
	border-color: var(--aic-green);
	outline: none;
	box-shadow: 0 0 0 3px rgba(92, 174, 92, .18);
}
.woocommerce form .form-row input.input-text::placeholder { color: #9aa39c; }

/* order review table */
.woocommerce-checkout #order_review .shop_table {
	border: 0;
	margin: 0 0 6px;
}
.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td {
	border: 0;
	border-top: 1px solid var(--aic-line);
	padding: 12px 0;
	font-size: 14px;
}
.woocommerce-checkout #order_review .shop_table thead th { border-top: 0; color: var(--aic-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-checkout #order_review .order-total .amount { color: var(--aic-green-d); font-size: 18px; }

/* payment box */
.woocommerce-checkout #payment {
	background: #f4f6f4 !important;
	border-radius: 12px;
	margin-top: 18px;
}
.woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 16px; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 10px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-checkout #payment .place-order { padding: 0 16px 16px; border: 0; }

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-cart .cart-collaterals,
	.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; }
	.woocommerce-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout form.checkout #customer_details,
	.woocommerce-checkout form.checkout .aic-order-col { grid-column: 1; }
}
