/* =============================================================
   ARTOS Camp&Go — cart, checkout & thank-you pages
   ============================================================= */

/* ================= Cart page ================= */
.a-cart__title { margin: 0 0 22px; font-size: 28px; font-weight: 900; color: var(--t-heading); }
.a-cart__body { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.a-cart__main { flex: 1.6; min-width: min(320px, 100%); }

.a-cart-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--b-row); align-items: center; flex-wrap: wrap; }
.a-cart-item__media { width: 86px; height: 86px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-media); }
.a-cart-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
.a-cart-item__info { flex: 1; min-width: 180px; }
.a-cart-item__model { font-family: var(--f-head); font-weight: 700; font-size: 13px; color: var(--c-brand); text-transform: uppercase; }
.a-cart-item__title { font-size: 14px; color: var(--t-2); font-weight: 600; line-height: 1.45; }
.a-cart-item__title a { color: inherit; }
.a-cart-item__remove { background: none; border: none; color: var(--t-dis); font-size: 12.5px; cursor: pointer; font-family: inherit; padding: 4px 0; text-decoration: underline; display: inline-block; margin-top: 4px; }
.a-cart-item__remove:hover { color: var(--c-danger); }
.a-cart-item__qty { flex: none; }
.a-cart-item__qty .a-qty button { width: 32px; height: 34px; font-size: 16px; }
.a-cart-item__qty .a-qty input { width: 36px; font-size: 14px; }
.a-cart-item__subtotal { font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--c-dark); flex: none; min-width: 78px; text-align: end; }

.a-cart-coupon { display: flex; gap: 10px; margin-top: 20px; max-width: 380px; }
.a-cart-coupon .a-input { flex: 1; }
/* Visible only when JS is unavailable — assets/js/cart.js hides it as soon
   as the AJAX cart takes over, so a no-JS visitor can still update quantities. */
.a-cart-update {
	background: none; border: 1.5px solid var(--b-input); border-radius: var(--r-btn);
	padding: 10px 20px; font-size: 13.5px; font-weight: 700; color: var(--t-mut);
}
.a-cart-update:hover { border-color: var(--c-brand); color: var(--t-heading); }
.a-cart-update[hidden] { display: none; }

.a-cart-summary { flex: 1; min-width: 280px; max-width: 360px; border: 1px solid var(--b-card); border-radius: var(--r-panel); padding: 22px 22px 24px; position: sticky; top: 16px; }
.a-cart-summary h3 { margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--t-heading); }
.a-cart-summary__totals { width: 100%; border-collapse: collapse; }
.a-cart-summary__totals tr { display: flex; justify-content: space-between; align-items: baseline; }
.a-cart-summary__totals th, .a-cart-summary__totals td { display: block; border: none; padding: 0; font-weight: 400; }
.a-cart-summary__totals th { font-size: 14px; color: var(--t-mut); text-align: start; }
.a-cart-summary__totals td { font-size: 14px; color: var(--t-heading); font-weight: 700; text-align: end; }
.a-cart-summary__totals tr:not(.order-total) { padding-bottom: 10px; }
.a-cart-summary__totals .cart-discount td { color: var(--c-success); }
.a-cart-summary__totals .order-total { padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--b-card); }
.a-cart-summary__totals .order-total th { font-weight: 800; font-size: 15px; color: var(--t-heading); }
.a-cart-summary__totals .order-total td { font-family: var(--f-head); font-weight: 900; font-size: 26px; color: var(--c-dark); }
.a-cart-summary__totals .woocommerce-shipping-totals { align-items: flex-start; }
.a-cart-summary__totals .woocommerce-shipping-totals td { flex: 1; text-align: end; }
.a-cart-summary__totals ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.a-cart-summary__totals ul#shipping_method label { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t-2); cursor: pointer; }
.a-cart-summary__totals input[type="radio"] { accent-color: var(--c-brand); }

.a-cart-summary__ship { background: #f6f7f4; border-radius: 10px; padding: 10px 13px; margin: 14px 0; }
.a-cart-summary__ship p { font-size: 12px; color: var(--t-mut); margin: 0 0 7px; }
.a-cart-summary__ship b { color: var(--c-dark); }

.a-cart-summary__cta { display: flex; width: 100%; text-align: center; justify-content: center; padding: 15px; font-size: 15.5px; margin-top: 6px; }
.a-cart-summary__trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--t-meta2); }

.a-cart-crosssell { margin-top: 38px; }

@media (max-width: 560px) {
	.a-cart-item { gap: 12px; }
	.a-cart-item__subtotal { min-width: 0; }
}

/* ================= Checkout: header, breadcrumb, steps ================= */
.a-checkout .a-crumbs { justify-content: center; }
.a-checkout__title { margin: 0 0 8px; font-size: 34px; font-weight: 900; color: var(--t-heading); text-align: center; }
.a-checkout__subtitle { margin: 0 0 26px; font-size: 14px; color: var(--t-meta); text-align: center; }

.a-steps { display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; max-width: 520px; }
.a-steps__item { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }
.a-steps__circle {
	width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--t-meta2);
	border: 2px solid var(--b-input); display: flex; align-items: center; justify-content: center;
	font-weight: 900; font-size: 14px;
}
.a-steps__label { font-size: 12px; font-weight: 700; color: var(--t-meta2); white-space: nowrap; }
.a-steps__line { flex: 1; height: 2px; background: var(--b-card); margin: 0 10px 24px; }
.a-steps__line.is-done { background: var(--c-brand); }
.a-steps__item.is-done .a-steps__circle,
.a-steps__item.is-active .a-steps__circle { background: var(--c-brand); color: var(--c-dark); border-color: var(--c-brand); }
.a-steps__item.is-active .a-steps__label { color: var(--t-heading); }

/* ================= Checkout: two-column body ================= */
.a-checkout__body { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.a-checkout__main { flex: 1.7; min-width: min(340px, 100%); display: flex; flex-direction: column; gap: 18px; }

/* ---- Numbered field cards ---- */
.a-cocard { border: 1px solid var(--b-card); border-radius: var(--r-panel); padding: 24px; background: #fff; }
.a-cocard__head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.a-cocard__head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--t-heading); }
.a-cocard .a-num--paper { width: 28px; height: 28px; font-size: 13px; }
.a-cocard__sub { margin: 0 0 16px; margin-inline-start: 39px; font-size: 12.5px; color: var(--t-meta); }

.a-cocard__shiptoggle { background: #f6f8f4; border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: 13.5px; font-weight: 600; }
.shipping_address { display: none; }
.shipping_address.is-open { display: block; }
.a-cocard__shipbox { border: 1.5px solid var(--b-soft); border-radius: 12px; padding: 18px; margin-top: 14px; }
.a-cocard__shipbox .a-cocard__sub { margin-inline-start: 0; }

.a-cocard__info { background: var(--c-paper); border-radius: 12px; padding: 15px 17px; margin-top: 14px; }
.a-cocard__info-head { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 13.5px; color: var(--t-heading); margin-bottom: 6px; }
.a-cocard__info-icon { width: 20px; height: 20px; border-radius: 50%; background: var(--c-brand); color: var(--c-dark); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; flex: none; }
.a-cocard__info-body { font-size: 12.5px; color: var(--t-paper-body); line-height: 1.75; }

/* Country stays in the DOM (Woo needs it for tax/shipping) but IL is the only option shown. */
.a-field--hide { display: none; }

/* ---- Payment box (Woo-native #payment / gateways / place-order) ---- */
#payment { margin-top: 4px; }
.woocommerce-checkout-payment .wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.woocommerce-checkout-payment .wc_payment_method { border: 1.5px solid var(--b-input); border-radius: var(--r-btn); padding: 12px 14px; }
.woocommerce-checkout-payment .wc_payment_method label { font-size: 14px; font-weight: 600; color: var(--t-2); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-checkout-payment .payment_box { font-size: 13px; color: var(--t-mut); padding-top: 10px; }
.woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout-payment .woocommerce-privacy-policy-text { font-size: 13px; color: var(--t-mut); margin-bottom: 9px; }
.woocommerce-checkout-payment .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-checkout-payment input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--c-brand); }

#place_order {
	width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px;
	background: var(--c-brand); color: var(--c-dark); border: none; border-radius: 24px;
	padding: 16px; font-weight: 800; font-size: 15.5px; cursor: pointer; font-family: inherit;
	transition: background .15s ease;
}
#place_order:hover { background: var(--c-brand-hover); }
#place_order::before {
	content: ""; width: 17px; height: 17px; flex: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: contain;
}

/* ================= Checkout: order-review table (#order_review) ================= */
.a-orv-table { width: 100%; border-collapse: collapse; }
.a-orv-table tbody tr { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--b-hair); }
.a-orv-table tbody td { display: block; border: none; padding: 0; }
.a-orv-table td.product-name { flex: 1; min-width: 0; }
.a-orv-table td.product-total { flex: none; font-weight: 700; color: var(--t-heading); font-size: 13px; }
.a-orv__row { display: flex; align-items: center; gap: 11px; }
/* No overflow:hidden here — the qty bubble deliberately sits outside the
   48px box and was being clipped. The image rounds itself instead. */
.a-orv__thumb { position: relative; width: 48px; height: 48px; border-radius: 9px; flex: none; background: var(--surface-media); }
.a-orv__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; border-radius: 9px; }
.a-orv__qty {
	position: absolute; top: -7px; inset-inline-start: -7px;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--c-dark); color: #fff; display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff;
}
.a-orv__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.a-orv__model { font-family: var(--f-head); font-weight: 700; color: var(--t-heading); text-transform: uppercase; font-size: 12.5px; }
.a-orv__title { color: var(--t-meta); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.a-orv-table tfoot { display: block; border-top: 1px solid var(--b-row); margin-top: 4px; padding-top: 5px; }
.a-orv-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border: none; }
.a-orv-table tfoot th { font-weight: 400; font-size: 13.5px; color: var(--t-mut); border: none; padding: 0; }
.a-orv-table tfoot td { font-weight: 700; color: var(--t-heading); border: none; padding: 0; font-size: 13.5px; }
.a-orv-table tfoot tr.cart-discount td { color: var(--c-success); }
.a-orv-table tfoot tr.order-total { padding-top: 14px; border-top: 1px solid var(--b-card); margin-top: 5px; }
.a-orv-table tfoot tr.order-total th { font-weight: 800; font-size: 15px; color: var(--t-heading); }
.a-orv-table tfoot tr.order-total td { font-family: var(--f-head); font-weight: 900; font-size: 26px; color: var(--c-dark); }
.a-orv-table .woocommerce-shipping-totals { align-items: flex-start; }
.a-orv-table .woocommerce-shipping-totals td { flex: 1; text-align: end; }
.a-orv-table ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.a-orv-table ul#shipping_method label { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t-2); cursor: pointer; }
.a-orv-table input[type="radio"] { accent-color: var(--c-brand); }

/* ================= Checkout: sticky order aside ================= */
.a-coaside { flex: 1; min-width: 290px; max-width: 380px; border: 1px solid var(--b-card); border-radius: var(--r-panel); padding: 22px; position: sticky; top: 16px; }
.a-coaside__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a-coaside__head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--t-heading); }
.a-coaside__edit { font-size: 13px; color: var(--c-brand); font-weight: 700; text-decoration: underline; }

.a-upsell { background: #f6f8f4; border-radius: 12px; padding: 14px; margin: 14px 0; }
.a-upsell__head { text-align: center; font-size: 12.5px; font-weight: 800; color: var(--t-mut); margin-bottom: 10px; }
.a-upsell__list { display: flex; flex-direction: column; gap: 8px; }
.a-upsell__row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #eceeea; border-radius: 10px; padding: 8px 10px; }
.a-upsell__thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; background: var(--c-paper); }
.a-upsell__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-upsell__info { flex: 1; min-width: 0; }
.a-upsell__model { font-family: var(--f-head); font-weight: 700; font-size: 11.5px; color: var(--t-heading); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-upsell__price { font-size: 12px; color: var(--t-meta); }
.a-upsell__add {
	width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--c-brand); background: #fff; color: var(--c-brand);
	font-size: 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center;
	flex: none; text-decoration: none; line-height: 1;
}
.a-upsell__add:hover { background: var(--c-brand); color: var(--c-dark); }
.a-upsell__add.loading { opacity: .6; pointer-events: none; }

.a-coaside__coupon { margin-top: 4px; }
.a-coaside__coupon-form label { display: block; font-size: 13px; font-weight: 700; color: var(--t-2); margin-bottom: 8px; }
.a-coaside__coupon-row { display: flex; gap: 8px; }
.a-coaside__coupon-row .a-input { flex: 1; min-width: 0; }

@media (max-width: 900px) {
	.a-coaside, .a-cart-summary { position: static; max-width: none; }
}

/* ================= Thank-you page ================= */
.a-thanks { padding-top: 44px; padding-bottom: 60px; }
.a-thanks__hero { text-align: center; margin-bottom: 30px; }
.a-thanks__icon {
	width: 82px; height: 82px; border-radius: 50%; background: var(--c-brand); color: var(--c-dark);
	display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
	box-shadow: 0 10px 30px rgba(82, 184, 73, .28);
}
.a-thanks__hero h1 { margin: 0 0 14px; font-size: 44px; font-weight: 900; color: var(--c-dark); letter-spacing: -.02em; }
.a-thanks__hero p { margin: 0 auto; font-size: 15.5px; color: var(--t-mut); line-height: 1.85; max-width: 400px; }
.a-thanks__pill { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--b-soft); border-radius: 26px; padding: 9px 22px; margin-top: 20px; font-size: 13.5px; color: var(--t-mut); }
.a-thanks__pill b { font-family: var(--f-head); color: var(--c-brand); font-weight: 800; }

.a-thanks__card { border: 1px solid var(--b-card); border-radius: var(--r-panel); padding: 24px 26px; margin-bottom: 16px; }
.a-thanks__cardhead { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--b-row); margin-bottom: 6px; }
.a-thanks__diamond { color: var(--c-brand); font-size: 11px; }
.a-thanks__cardhead h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--t-heading); }

.a-thanks__item { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--b-hair); }
.a-thanks__thumb { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: var(--c-paper); }
.a-thanks__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-thanks__iteminfo { flex: 1; min-width: 0; }
.a-thanks__itemmodel { font-family: var(--f-head); font-weight: 700; font-size: 13.5px; color: var(--c-dark); text-transform: uppercase; }
.a-thanks__itemmeta { font-size: 12.5px; color: var(--t-meta); }
.a-thanks__itemtotal { font-family: var(--f-head); font-size: 15.5px; color: var(--c-dark); flex: none; }

.a-thanks__totals { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--t-mut); padding: 14px 0 12px; border-bottom: 1px solid var(--b-row); }
.a-thanks__totalrow { display: flex; justify-content: space-between; }
.a-thanks__totalrow b { color: var(--c-dark); }

.a-thanks__grandtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.a-thanks__grandtotal span:first-child { font-weight: 800; font-size: 15.5px; color: var(--t-heading); }
.a-thanks__grandtotal-amount { font-family: var(--f-head); font-weight: 900; font-size: 27px; color: var(--c-dark); }

.a-thanks__panel { background: var(--c-paper); border-radius: var(--r-panel); padding: 24px 26px; margin-bottom: 16px; }
.a-thanks__panelhead { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--t-green-dark); }
.a-thanks__panelhead h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--c-dark); }
.a-thanks__panel p { margin: 0 0 12px; font-size: 14px; color: var(--t-paper-body); line-height: 1.9; }
.a-thanks__panel p:last-child { margin-bottom: 0; }

.a-thanks__steps { display: flex; flex-direction: column; gap: 14px; }
.a-thanks__step { display: flex; align-items: flex-start; gap: 13px; font-size: 14px; color: var(--t-2); line-height: 1.6; }
.a-thanks__step .a-num { margin-top: 2px; }

.a-thanks__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }
.a-thanks__tile { border: 1px solid var(--b-card); border-radius: 14px; padding: 20px; text-align: center; text-decoration: none; display: block; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.a-thanks__tile:hover { border-color: var(--c-brand); box-shadow: 0 8px 22px rgba(82, 184, 73, .1); color: inherit; }
.a-thanks__tile svg { margin-bottom: 8px; }
.a-thanks__tile div { font-size: 13.5px; font-weight: 700; color: var(--t-heading); }

.a-thanks__missing { margin-top: 20px; }

/* === live-site fixes (v1.1) === */
/* WooCommerce form-row normalization inside the numbered cards */
.a-cocard .form-row {
  margin: 0; padding: 0; display: block; float: none; width: auto;
}
.a-cocard .form-row label {
  display: block; font-size: 13px; font-weight: 700; color: var(--t-2); margin-bottom: 6px;
}
.a-cocard .form-row label .required { color: var(--c-danger); text-decoration: none; }
.a-cocard .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.a-cocard .form-row input.input-text,
.a-cocard .form-row select,
.a-cocard .form-row textarea {
  width: 100%; border: 1.5px solid var(--b-input); border-radius: var(--r-btn);
  padding: 12px 14px; font-size: 14px; background: #fff; color: var(--t-2);
}
.a-cocard .form-row input.input-text:focus,
.a-cocard .form-row select:focus,
.a-cocard .form-row textarea:focus { border-color: var(--c-brand); outline: none; }
.a-cocard .form-row textarea { min-height: 96px; resize: vertical; }
#billing_phone, #billing_email, #shipping_phone { direction: ltr; text-align: right; }
/* Wide rows span the whole grid */
#billing_address_2_field, #billing_company_field,
#shipping_address_2_field, #shipping_company_field,
#order_comments_field { grid-column: 1 / -1; }
/* Country is IL-only — keep it in the DOM for Woo, out of sight */
#billing_country_field, #shipping_country_field,
.a-field--hide { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: -1px; }
/* Validation states */
.a-cocard .form-row.woocommerce-invalid input.input-text,
.a-cocard .form-row.woocommerce-invalid select { border-color: var(--c-danger); }
.a-cocard .form-row.woocommerce-validated input.input-text { border-color: var(--c-brand); }

/* === cart AJAX (v2.1) === */
.a-cart__body { transition: opacity .15s ease; }
.a-cart-item__remove { cursor: pointer; }
