/* Apeiro Cart, Checkout and Order received pages. Loaded on those pages only (see inc/checkout-pages.php).
   Colours match account.css and info-pages.css. */

body.ap-co {
	--ap-navy: #163f69;
	--ap-blue: #265a88;
	--ap-sky: #3b8fd6;
	--ap-ice: #eef5fc;
	--ap-bg: #f4f7fb;
	--ap-line: #e3eaf3;
	--ap-field: #d6e1ee;
	--ap-text: #334155;
	--ap-head: #0f2a47;
	--ap-muted: #64748b;
	--ap-ok: #15803d;
	--ap-ok-bg: #ecfdf3;
	--ap-radius: 18px;
	--ap-shadow: 0 14px 34px -24px rgba(15,52,89,.5);
}

/* ---------- Page frame ---------- */
body.ap-co .wd-page-title { display: none; }
body.ap-co .wd-page-content { background: var(--ap-bg); }
body.ap-co .wd-content-layout { padding-top: 30px; padding-bottom: 64px; }
body.ap-co .entry-content > p:empty { display: none; }
.ap-co-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.ap-co .woocommerce { color: var(--ap-text); }

/* ---------- Hero + steps ---------- */
.ap-co-hero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
	margin-bottom: 28px; padding: 30px 40px; border-radius: 22px; color: #fff;
	background:
		radial-gradient(circle at 92% 0%, rgba(255,255,255,.18) 0, rgba(255,255,255,0) 40%),
		radial-gradient(circle at 0% 120%, rgba(59,143,214,.6) 0, rgba(59,143,214,0) 50%),
		linear-gradient(125deg, #0f3459 0%, #1f5389 50%, #2f7cc4 100%);
	box-shadow: 0 20px 44px -22px rgba(15,52,89,.7);
}
.ap-co-hero::after {
	content: ""; position: absolute; right: -80px; top: -100px; width: 300px; height: 300px; border-radius: 50%;
	border: 46px solid rgba(255,255,255,.06); pointer-events: none;
}
.ap-co-hero__main { position: relative; z-index: 1; min-width: 0; }
.ap-co-hero__crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 13px; color: rgba(255,255,255,.75); }
.ap-co-hero__crumbs a { color: rgba(255,255,255,.85) !important; text-decoration: none; }
.ap-co-hero__crumbs a:hover { color: #fff !important; text-decoration: underline; }
.ap-co-hero__crumbs b { color: #fff; font-weight: 600; }
.ap-co-hero h1 { margin: 0 0 6px; color: #fff; font-family: var(--wd-title-font, Poppins, sans-serif); font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.ap-co-hero p { margin: 0; max-width: 520px; color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.55; }

.ap-co-steps { position: relative; z-index: 1; display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.ap-co-steps li { position: relative; display: flex; flex-direction: column; align-items: center; width: 118px; margin: 0; }
.ap-co-steps li + li::before {
	content: ""; position: absolute; top: 19px; right: calc(50% + 26px); width: calc(100% - 52px); height: 2px; border-radius: 2px;
	background: rgba(255,255,255,.25);
}
.ap-co-steps li.is-done + li::before,
.ap-co-steps li.is-done + li.is-done::before { background: #7ee2a8; }
.ap-co-steps a, .ap-co-steps li > span { display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.ap-co-steps__dot {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.35);
	color: rgba(255,255,255,.85); font-weight: 700; font-size: 15px;
	transition: transform .15s ease;
}
.ap-co-steps__dot .ap-co-ico { width: 18px; height: 18px; stroke-width: 2.6; }
.ap-co-steps__label { color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-align: center; white-space: nowrap; }
.ap-co-steps li.is-current .ap-co-steps__dot { background: #fff; border-color: #fff; color: var(--ap-navy); box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.ap-co-steps li.is-current .ap-co-steps__label { color: #fff; }
.ap-co-steps li.is-done .ap-co-steps__dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.ap-co-steps li.is-done .ap-co-steps__label { color: #fff; }
.ap-co-steps a:hover .ap-co-steps__dot { transform: scale(1.07); }
body.ap-co--done .ap-co-steps li:last-child.is-current .ap-co-steps__dot { background: #22c55e; border-color: #22c55e; color: #fff; box-shadow: 0 0 0 6px rgba(34,197,94,.25); }

/* ---------- Buttons ---------- */
.ap-co-btn,
body.ap-co .woocommerce .checkout-button,
body.ap-co #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; padding: 11px 22px; border: 0; border-radius: 12px;
	background: linear-gradient(135deg, var(--ap-blue), #1b4a77); color: #fff !important;
	font-size: 14.5px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; text-decoration: none !important;
	box-shadow: 0 12px 22px -12px rgba(22,63,105,.95);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.ap-co-btn:hover,
body.ap-co .woocommerce .checkout-button:hover,
body.ap-co #place_order:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -12px rgba(22,63,105,.95); color: #fff !important; filter: brightness(1.06); }
.ap-co-btn .ap-co-ico { width: 18px; height: 18px; }
.ap-co-btn--wa { background: linear-gradient(135deg, #25d366, #1ea952); box-shadow: 0 12px 22px -12px rgba(30,169,82,.9); }
.ap-co-btn--ghost { background: #fff; color: var(--ap-blue) !important; border: 1px solid #c9dcf0; box-shadow: none; }
.ap-co-btn--ghost:hover { background: var(--ap-ice); color: var(--ap-navy) !important; box-shadow: none; filter: none; }
.ap-co-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ap-blue) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.ap-co-link:hover { color: var(--ap-navy) !important; }
.ap-co-link .ap-co-ico { width: 17px; height: 17px; transition: transform .15s ease; }
.ap-co-link:hover .ap-co-ico { transform: translateX(-3px); }

/* Secondary WooCommerce buttons (Apply coupon, Update cart, Login) */
body.ap-co .woocommerce button.button:not(#place_order):not(.checkout-button),
body.ap-co .woocommerce .woocommerce-form-login .button {
	min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid #c9dcf0;
	background: #fff; color: var(--ap-blue); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; box-shadow: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.ap-co .woocommerce button.button:not(#place_order):not(.checkout-button):hover { background: var(--ap-ice); color: var(--ap-navy); border-color: #a9c6e6; }
body.ap-co .woocommerce button.button:disabled,
body.ap-co .woocommerce button.button[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Notices ---------- */
body.ap-co .woocommerce-notices-wrapper:empty { display: none; }
body.ap-co .woocommerce-message,
body.ap-co .woocommerce-info,
body.ap-co .woocommerce-error {
	display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px;
	margin: 0 0 14px; padding: 14px 18px 14px 50px !important; border-radius: 14px; border: 1px solid;
	font-size: 14px; line-height: 1.5; position: relative; box-shadow: none;
}
body.ap-co .woocommerce-message { background: var(--ap-ok-bg); border-color: #bbf7d0; color: #14532d; }
body.ap-co .woocommerce-info { background: #fff; border-color: var(--ap-line); color: var(--ap-text); }
body.ap-co .woocommerce-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; list-style: none; }
body.ap-co .woocommerce-message::before,
body.ap-co .woocommerce-info::before,
body.ap-co .woocommerce-error::before {
	content: "" !important; position: absolute; left: 16px !important; top: calc(50% - 11px) !important; width: 22px; height: 22px; margin: 0 !important; border-radius: 50%;
	background: currentColor; -webkit-mask: var(--ap-n-ico) center / 22px no-repeat; mask: var(--ap-n-ico) center / 22px no-repeat; font-size: 0;
}
body.ap-co .woocommerce-message { --ap-n-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
body.ap-co .woocommerce-info { --ap-n-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8v.01'/%3E%3C/svg%3E"); }
body.ap-co .woocommerce-error { --ap-n-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
body.ap-co .woocommerce-info::before { color: var(--ap-sky); }
body.ap-co .woocommerce-message .button,
body.ap-co .woocommerce-message a.wc-forward { order: 2; margin-left: auto; padding: 0; min-height: 0; background: none; border: 0; box-shadow: none; color: #166534 !important; font-weight: 700; font-size: 13px; text-decoration: underline !important; text-transform: none; }
body.ap-co .woocommerce-info a,
body.ap-co .woocommerce-info .showlogin,
body.ap-co .woocommerce-info .showcoupon { color: var(--ap-blue); font-weight: 600; }

/* ---------- Shared card ---------- */
body.ap-co .woocommerce-cart-form,
body.ap-co .cart-collaterals .cart_totals,
body.ap-co .woocommerce-billing-fields,
body.ap-co .woocommerce-shipping-fields,
body.ap-co .woocommerce-additional-fields,
body.ap-co .woocommerce-account-fields,
body.ap-co .checkout-order-review,
.ap-ty-card,
.ap-ty-details > section,
.ap-ty-details > .woocommerce-order-details,
.ap-ty-details > .woocommerce-customer-details {
	background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius); box-shadow: var(--ap-shadow);
}

/* =================================================================
   CART
   ================================================================= */
body.ap-co--cart .ap-co-page > .woocommerce,
body.ap-co--cart .entry-content > .woocommerce {
	display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 0 28px; align-items: start;
}
body.ap-co--cart .woocommerce > * { grid-column: 1 / -1; min-width: 0; }
body.ap-co--cart .woocommerce > .woocommerce-cart-form { grid-column: 1; }
body.ap-co--cart .woocommerce > .cart-collaterals { grid-column: 2; position: sticky; top: 100px; width: auto; margin: 0; padding: 0; }
body.ap-co--cart .woocommerce > .woocommerce-notices-wrapper { margin-bottom: 4px; }

body.ap-co .woocommerce-cart-form { padding: 8px 26px 22px; margin: 0; }
.ap-co-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 16px; border-bottom: 1px solid var(--ap-line); }
.ap-co-cardhead h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ap-head); font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ap-co-cardhead h2 .ap-co-ico { width: 24px; height: 24px; color: var(--ap-blue); }
.ap-co-count { padding: 3px 10px; border-radius: 99px; background: var(--ap-ice); color: var(--ap-blue); font-size: 12.5px; font-weight: 700; }

body.ap-co .woocommerce-cart-form table.shop_table { margin: 0; border: 0; border-radius: 0; }
body.ap-co .woocommerce-cart-form table.shop_table thead th {
	padding: 16px 10px 10px; border: 0; border-bottom: 1px solid var(--ap-line);
	color: var(--ap-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
body.ap-co .woocommerce-cart-form table.shop_table td { padding: 20px 10px; border: 0; border-bottom: 1px solid var(--ap-line); vertical-align: middle; }
body.ap-co .woocommerce-cart-form tr.cart_item:hover td { background: #fbfdff; }
body.ap-co .woocommerce-cart-form td.product-thumbnail { width: 104px; }
body.ap-co .woocommerce-cart-form td.product-thumbnail a { display: block; width: 88px; height: 88px; padding: 6px; border-radius: 14px; background: #f6f9fc; border: 1px solid var(--ap-line); overflow: hidden; }
body.ap-co .woocommerce-cart-form td.product-thumbnail img { width: 100%; height: 100%; max-width: none; object-fit: contain; mix-blend-mode: multiply; border-radius: 10px; }
body.ap-co .woocommerce-cart-form td.product-name a { color: var(--ap-head); font-size: 15.5px; font-weight: 600; line-height: 1.4; text-decoration: none; }
body.ap-co .woocommerce-cart-form td.product-name a:hover { color: var(--ap-blue); }
body.ap-co .woocommerce-cart-form td.product-name .variation { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
body.ap-co .woocommerce-cart-form td.product-name .variation li,
body.ap-co .woocommerce-cart-form td.product-name dl.variation { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 3px 9px; border-radius: 8px; background: var(--ap-bg); color: var(--ap-muted); font-size: 12px; }
body.ap-co .woocommerce-cart-form td.product-name .variation p { margin: 0; display: inline; }
body.ap-co .woocommerce-cart-form td.product-name .variation .item-variation-name { font-weight: 700; color: var(--ap-text); }
body.ap-co .woocommerce-cart-form td.product-price { color: var(--ap-muted); font-size: 14.5px; }
body.ap-co .woocommerce-cart-form td.product-subtotal { text-align: right; }
body.ap-co .woocommerce-cart-form td.product-subtotal .amount { color: var(--ap-head); font-size: 16px; font-weight: 700; }
body.ap-co .woocommerce-cart-form th.product-subtotal { text-align: right; }
body.ap-co .woocommerce-cart-form td.product-remove { width: 44px; padding-right: 0; }
body.ap-co .woocommerce-cart-form a.remove {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
	background: #f1f5f9; color: var(--ap-muted) !important; font-size: 20px; font-weight: 400; line-height: 1; text-decoration: none;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
body.ap-co .woocommerce-cart-form a.remove { font-size: 0 !important; }
body.ap-co .woocommerce-cart-form a.remove::before {
	content: "" !important; display: block; width: 15px; height: 15px; background: currentColor; font-size: 0;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.ap-co .woocommerce-cart-form a.remove:hover { background: #fee2e2; color: #dc2626 !important; transform: rotate(90deg); }

/* Quantity stepper */
body.ap-co .quantity { display: inline-flex; align-items: center; height: 42px; padding: 3px; border: 1px solid var(--ap-field); border-radius: 12px; background: #fff; }
body.ap-co .quantity input.qty { width: 40px; height: 34px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ap-head); font-size: 15px; font-weight: 700; text-align: center; }
body.ap-co .quantity .minus,
body.ap-co .quantity .plus {
	width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: 9px; background: var(--ap-bg);
	color: var(--ap-blue); font-size: 17px; font-weight: 600; box-shadow: none; transition: background .15s ease;
}
body.ap-co .quantity .minus:hover,
body.ap-co .quantity .plus:hover { background: var(--ap-ice); color: var(--ap-navy); }

/* Coupon + update row */
body.ap-co .woocommerce-cart-form td.actions { padding: 20px 0 0; border: 0; background: none !important; }
body.ap-co .woocommerce-cart-form td.actions::after { content: ""; display: table; clear: both; }
body.ap-co .woocommerce-cart-form td.actions::before { display: none; }
body.ap-co .woocommerce-cart-form .coupon { float: left; display: flex; width: 100%; max-width: 440px; gap: 8px; margin: 0; padding: 6px; border: 1.5px dashed #c9dcf0; border-radius: 14px; background: #fbfdff; }
body.ap-co .woocommerce-cart-form .coupon label { display: none; }
body.ap-co .woocommerce-cart-form .coupon input.input-text { flex: 1; width: auto; min-width: 0; height: 44px; margin: 0; border: 0; background: none; box-shadow: none; padding: 0 12px; font-size: 14px; }
body.ap-co .woocommerce-cart-form .coupon .button { flex: none; min-height: 44px !important; background: var(--ap-head) !important; color: #fff !important; border: 0 !important; }
body.ap-co .woocommerce-cart-form .coupon .button:hover { background: var(--ap-blue) !important; }
body.ap-co .woocommerce-cart-form td.actions > .button { float: right; margin: 6px 0 0; }

/* Cart totals card */
body.ap-co .cart-collaterals .cart_totals { float: none; width: 100%; margin: 0; padding: 0 !important; overflow: hidden; }
body.ap-co .cart-totals-inner { margin: 0; padding: 24px 24px 22px; border: 0; background: none; }
body.ap-co .cart_totals h2 { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ap-line); color: var(--ap-head); font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
body.ap-co .cart_totals table.shop_table { display: block; margin: 0 0 18px; border: 0; }
body.ap-co .cart_totals table.shop_table tbody { display: block; }
body.ap-co .cart_totals table.shop_table tr { display: flex !important; align-items: baseline; justify-content: space-between; gap: 12px; }
body.ap-co .cart_totals table.shop_table tr > * { width: auto !important; }
body.ap-co .cart_totals table.shop_table td::before { display: none !important; }
body.ap-co .cart_totals table.shop_table th { display: block !important; }
body.ap-co .cart_totals table.shop_table tr.shipping,
body.ap-co .cart_totals table.shop_table tr.woocommerce-shipping-totals { display: block !important; }
body.ap-co .cart_totals table.shop_table tr.shipping > * { width: 100% !important; }
body.ap-co .cart_totals table.shop_table tr.order-total { margin-top: 8px; border-top: 1px dashed var(--ap-field); }
body.ap-co .cart_totals table.shop_table th,
body.ap-co .cart_totals table.shop_table td { padding: 10px 0; border: 0; background: none; font-size: 14.5px; }
body.ap-co .cart_totals table.shop_table th { color: var(--ap-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
body.ap-co .cart_totals table.shop_table td { text-align: right; color: var(--ap-head); font-weight: 600; }
body.ap-co .cart_totals tr.shipping,
body.ap-co .cart_totals tr.woocommerce-shipping-totals { display: block; padding: 4px 0 6px; }
body.ap-co .cart_totals tr.shipping th,
body.ap-co .cart_totals tr.shipping td { display: block; width: 100%; text-align: left; padding: 6px 0; }
body.ap-co .cart_totals tr.shipping td::before { display: none; }
body.ap-co .cart_totals tr.order-total th,
body.ap-co .cart_totals tr.order-total td { padding-top: 16px; border-top: 0; }
body.ap-co .cart_totals tr.order-total th { color: var(--ap-head); font-size: 16px; font-weight: 700; }
body.ap-co .cart_totals tr.order-total .amount { color: var(--ap-head); font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
body.ap-co .cart_totals .woocommerce-shipping-destination { margin: 8px 0 2px; color: var(--ap-muted); font-size: 13px; font-weight: 400; }
body.ap-co .cart_totals .shipping-calculator-button { color: var(--ap-blue); font-size: 13px; font-weight: 600; }
body.ap-co .wc-proceed-to-checkout { margin: 0; padding: 0; }
body.ap-co .woocommerce .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; margin: 0; font-size: 16px; border-radius: 14px; }
body.ap-co .woocommerce .wc-proceed-to-checkout .checkout-button::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Shipping method choices (cart + checkout) */
body.ap-co ul#shipping_method { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.ap-co ul#shipping_method li { position: relative; margin: 0; padding: 0; border: 0; background: none; text-align: left; }
body.ap-co ul#shipping_method li input[type="radio"] { position: absolute; left: 14px; top: 50%; margin: -9px 0 0; width: 18px; height: 18px; accent-color: var(--ap-blue); }
body.ap-co ul#shipping_method li label {
	display: block; margin: 0; padding: 12px 14px 12px 42px; border: 1.5px solid var(--ap-line); border-radius: 12px; background: #fff;
	color: var(--ap-text); font-size: 13px; font-weight: 500; line-height: 1.45; cursor: pointer;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body.ap-co ul#shipping_method li label:hover { border-color: #a9c6e6; }
body.ap-co ul#shipping_method li:has(input:checked) label { border-color: var(--ap-blue); background: var(--ap-ice); box-shadow: 0 0 0 3px rgba(38,90,136,.12); color: var(--ap-head); }
body.ap-co ul#shipping_method li label .amount { display: inline-block; color: var(--ap-blue); font-weight: 700; white-space: nowrap; }
body.ap-co ul#shipping_method li:only-child input[type="radio"],
body.ap-co ul#shipping_method li input[type="hidden"] + label { padding-left: 14px; }

/* Trust list */
.ap-co-trust { display: grid; gap: 2px; margin: 0; padding: 14px 24px 18px; list-style: none; background: linear-gradient(180deg, #f8fbfe, #f1f6fc); border-top: 1px solid var(--ap-line); }
.ap-co-trust li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0; }
.ap-co-trust .ap-co-ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--ap-line); color: var(--ap-blue); stroke-width: 1.7; }
.ap-co-trust b { display: block; color: var(--ap-head); font-size: 13.5px; line-height: 1.3; }
.ap-co-trust small { display: block; color: var(--ap-muted); font-size: 12.5px; line-height: 1.4; }
.ap-co-trust small a { color: var(--ap-blue); font-weight: 600; text-decoration: none; }
.ap-co-trust small a:hover { text-decoration: underline; }

/* Cross-sells / empty cart */
body.ap-co--cart .cart-collaterals .cross-sells { display: none; }
body.ap-co--cart .wc-empty-cart-message,
body.ap-co--cart .cart-empty { text-align: center; }
body.ap-co--cart .woocommerce > .cart-empty,
body.ap-co--cart .woocommerce > .wc-empty-cart-message { padding: 46px 24px 8px; margin: 0; background: #fff; border: 1px solid var(--ap-line); border-bottom: 0; border-radius: var(--ap-radius) var(--ap-radius) 0 0; }
body.ap-co--cart .woocommerce > .return-to-shop { padding: 12px 24px 46px; margin: 0; text-align: center; background: #fff; border: 1px solid var(--ap-line); border-top: 0; border-radius: 0 0 var(--ap-radius) var(--ap-radius); box-shadow: var(--ap-shadow); }
body.ap-co--cart .return-to-shop .button { display: inline-flex; min-height: 48px; padding: 12px 26px; border-radius: 12px; background: linear-gradient(135deg, var(--ap-blue), #1b4a77); color: #fff !important; font-weight: 600; text-transform: none; }

/* =================================================================
   CHECKOUT
   ================================================================= */
body.ap-co--checkout .woocommerce-form-login-toggle,
body.ap-co--checkout .woocommerce-form-coupon-toggle { margin: 0; }
body.ap-co--checkout .woocommerce > .woocommerce-form-login-toggle,
body.ap-co--checkout .woocommerce > .woocommerce-form-coupon-toggle { display: inline-block; vertical-align: top; width: calc(50% - 7px); }
body.ap-co--checkout .woocommerce > .woocommerce-form-login-toggle { margin-right: 10px; }
body.ap-co--checkout .woocommerce-form-login-toggle .woocommerce-info,
body.ap-co--checkout .woocommerce-form-coupon-toggle .woocommerce-info { min-height: 54px; }
body.ap-co--checkout form.woocommerce-form-login,
body.ap-co--checkout form.checkout_coupon {
	margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; box-shadow: var(--ap-shadow);
}

body.ap-co--checkout form.woocommerce-checkout {
	display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 0 28px; align-items: start; margin-top: 4px;
}
body.ap-co--checkout form.woocommerce-checkout > * { grid-column: 1; min-width: 0; order: 0; width: auto; max-width: none; flex: none; }
body.ap-co--checkout form.woocommerce-checkout > .checkout-order-review { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 100px; }
body.ap-co--checkout form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1; margin-bottom: 16px; }
body.ap-co--checkout form.woocommerce-checkout > .woocommerce-NoticeGroup ul.woocommerce-error { display: block; margin: 0; }
body.ap-co--checkout form.woocommerce-checkout > .woocommerce-NoticeGroup ul.woocommerce-error li { margin: 2px 0; }
body.ap-co--checkout #wc-stripe-express-checkout-element { margin: 0 0 4px !important; }
body.ap-co--checkout #wc-stripe-express-checkout-button-separator { display: flex !important; align-items: center; gap: 14px; margin: 14px 0 18px !important; color: var(--ap-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
body.ap-co--checkout #wc-stripe-express-checkout-button-separator::before,
body.ap-co--checkout #wc-stripe-express-checkout-button-separator::after { content: ""; flex: 1; height: 1px; background: var(--ap-field); }

/* Sections as numbered cards */
body.ap-co--checkout .customer-details,
body.ap-co--checkout #customer_details { counter-reset: apstep; display: grid; gap: 20px; width: auto; margin: 0; float: none; }
body.ap-co--checkout #customer_details::before,
body.ap-co--checkout #customer_details::after { display: none; }
body.ap-co--checkout #customer_details > div { width: auto; float: none; margin: 0; }
body.ap-co--checkout .woocommerce-billing-fields,
body.ap-co--checkout .woocommerce-shipping-fields,
body.ap-co--checkout .woocommerce-additional-fields { padding: 24px 28px 10px; }
body.ap-co--checkout .woocommerce-account-fields { padding: 4px 28px 8px; margin-top: -8px; }
body.ap-co--checkout .woocommerce-account-fields:not(:has(input)) { display: none; }
body.ap-co--checkout .woocommerce-shipping-fields { padding-bottom: 18px; }
body.ap-co--checkout .woocommerce-shipping-fields:has(.shipping_address[style*="display: block"]),
body.ap-co--checkout .woocommerce-shipping-fields:has(.shipping_address:not([style*="none"])) { padding-bottom: 10px; }
body.ap-co--checkout .woocommerce-billing-fields > h3,
body.ap-co--checkout .woocommerce-additional-fields > h3,
body.ap-co--checkout #ship-to-different-address {
	counter-increment: apstep;
	display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0;
	color: var(--ap-head); font-size: 19px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
body.ap-co--checkout .woocommerce-billing-fields > h3::before,
body.ap-co--checkout .woocommerce-additional-fields > h3::before,
body.ap-co--checkout #ship-to-different-address::before {
	content: counter(apstep); display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--ap-blue), #1b4a77); color: #fff;
	font-size: 15px; font-weight: 700; box-shadow: 0 8px 16px -10px rgba(22,63,105,.95);
}
body.ap-co--checkout #ship-to-different-address { margin-bottom: 0; }
body.ap-co--checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; cursor: pointer; }
body.ap-co--checkout .shipping_address { padding-top: 20px; }

/* Fields */
body.ap-co .woocommerce form .form-row { margin-bottom: 16px; }
body.ap-co .woocommerce form .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) { margin-bottom: 7px; color: var(--ap-head); font-size: 13.5px; font-weight: 600; }
body.ap-co .woocommerce form .form-row .required { color: #dc2626; text-decoration: none; }
body.ap-co .woocommerce form .form-row .optional { color: var(--ap-muted); font-size: 12px; font-weight: 400; }
body.ap-co .woocommerce form .form-row input.input-text,
body.ap-co .woocommerce form .form-row textarea,
body.ap-co .woocommerce form .form-row select,
body.ap-co .woocommerce-checkout .select2-container .select2-selection--single,
body.ap-co .woocommerce form.checkout_coupon input.input-text,
body.ap-co .woocommerce form .form-row input[type="tel"],
body.ap-co .woocommerce form .form-row input[type="email"] {
	min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ap-field); border-radius: 12px; background: #fff;
	color: var(--ap-head); font-size: 14.5px; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
body.ap-co .woocommerce form .form-row textarea { min-height: 110px; padding-top: 12px; }
body.ap-co .woocommerce-checkout .select2-container .select2-selection--single { display: flex; align-items: center; height: 48px; padding: 0 14px; }
body.ap-co .woocommerce-checkout .select2-container .select2-selection__rendered { padding: 0; color: var(--ap-head); line-height: 1.3; }
body.ap-co .woocommerce-checkout .select2-container .select2-selection__arrow { top: 50%; right: 12px; transform: translateY(-50%); height: 24px; }
body.ap-co .woocommerce form .form-row input.input-text:hover,
body.ap-co .woocommerce form .form-row textarea:hover,
body.ap-co .woocommerce-checkout .select2-container .select2-selection--single:hover { border-color: #b4c9e2; }
body.ap-co .woocommerce form .form-row input.input-text:focus,
body.ap-co .woocommerce form .form-row textarea:focus,
body.ap-co .woocommerce form .form-row select:focus,
body.ap-co .woocommerce-checkout .select2-container--open .select2-selection--single,
body.ap-co .woocommerce-checkout .select2-container--focus .select2-selection--single {
	border-color: var(--ap-sky); box-shadow: 0 0 0 4px rgba(59,143,214,.16); outline: none;
}
body.ap-co .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.ap-co .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #f87171; }
body.ap-co .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #86d4a4; }
body.ap-co .woocommerce form .form-row input.input-text::placeholder,
body.ap-co .woocommerce form .form-row textarea::placeholder { color: #94a3b8; }
body.ap-co .woocommerce form .form-row input[type="checkbox"],
body.ap-co .woocommerce form .form-row input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ap-blue); vertical-align: -3px; }
body.ap-co .woocommerce form .form-row label.checkbox,
body.ap-co .woocommerce form .form-row .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--ap-text); font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
body.ap-co .woocommerce form .form-row label.checkbox input,
body.ap-co .woocommerce form .form-row .woocommerce-form__label-for-checkbox input { margin: 1px 0 0; flex: none; }

/* Order review card */
body.ap-co--checkout .checkout-order-review { padding: 24px 26px 0; margin: 0; overflow: hidden; background: #fff !important; }
body.ap-co--checkout .checkout-order-review::before,
body.ap-co--checkout .checkout-order-review::after { display: none !important; }
body.ap-co--checkout #order_review_heading { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding: 0 0 14px; border-bottom: 1px solid var(--ap-line); color: var(--ap-head); font-size: 20px; font-weight: 700; text-align: left; text-transform: none; letter-spacing: 0; }
body.ap-co--checkout #order_review { padding: 0; background: none; }
body.ap-co--checkout #order_review .wd-table-wrapper { margin: 0; padding: 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table { display: block; margin: 0 0 6px; border: 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tbody,
body.ap-co--checkout .woocommerce-checkout-review-order-table tfoot { display: block; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td { flex: 1; }
body.ap-co--checkout .woocommerce-checkout-review-order-table thead { display: none; }
body.ap-co--checkout .woocommerce-checkout-review-order-table th,
body.ap-co--checkout .woocommerce-checkout-review-order-table td { padding: 10px 0; border: 0; background: none; font-size: 14.5px; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tbody tr.cart_item td { padding: 14px 0; border-bottom: 1px solid var(--ap-line); }
body.ap-co--checkout .woocommerce-checkout-review-order-table .wd-checkout-prod-cont { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
body.ap-co--checkout .woocommerce-checkout-review-order-table .wd-checkout-prod-title { display: block; position: relative; min-height: 58px; padding-left: 72px; color: var(--ap-head); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
body.ap-co--checkout .ap-co-thumb { position: absolute; left: 0; top: 0; display: block; width: 58px; height: 58px; padding: 4px; border: 1px solid var(--ap-line); border-radius: 12px; background: #f6f9fc; }
body.ap-co--checkout .ap-co-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; }
body.ap-co--checkout .woocommerce-checkout-review-order-table .product-quantity { color: var(--ap-blue); font-weight: 700; }
body.ap-co--checkout .woocommerce-checkout-review-order-table .variation { display: block; margin: 4px 0 0; padding: 0; list-style: none; color: var(--ap-muted); font-size: 12px; font-weight: 500; }
body.ap-co--checkout .woocommerce-checkout-review-order-table .variation li,
body.ap-co--checkout .woocommerce-checkout-review-order-table .variation p { display: inline; margin: 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table .product-total { flex: none; color: var(--ap-head); font-weight: 700; white-space: nowrap; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tfoot th { color: var(--ap-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; color: var(--ap-head); font-weight: 600; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal > * { padding-top: 16px; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > * { display: block; width: 100%; text-align: left; padding: 6px 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.order-total { margin-top: 8px; border-top: 1px dashed var(--ap-field); }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.order-total > * { padding-top: 16px; border-top: 0; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.order-total th { color: var(--ap-head); font-size: 16px; font-weight: 700; }
body.ap-co--checkout .woocommerce-checkout-review-order-table tr.order-total .amount { color: var(--ap-head); font-size: 26px; font-weight: 800; letter-spacing: -.01em; }

/* Payment methods (overrides the "modern payment" snippet) */
body.ap-co--checkout #payment { margin: 6px -26px 0; padding: 22px 26px 22px; border-top: 1px solid var(--ap-line); border-radius: 0; background: #f8fbfe; }
body.ap-co--checkout #payment::before { content: "Payment method"; display: block; margin: 0 0 12px; color: var(--ap-head); font-size: 15px; font-weight: 700; }
body.ap-co--checkout #payment ul.wc_payment_methods { margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; background: none; }
body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method {
	margin: 0 0 10px !important; padding: 15px 18px !important; border: 1.5px solid var(--ap-line) !important; border-radius: 14px !important;
	background: #fff !important; box-shadow: none !important; transform: none !important;
}
body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method:not(:has(input:checked)):hover { border-color: #a9c6e6 !important; box-shadow: none !important; transform: none !important; }
html body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method:has(> input[type="radio"]:checked),
html body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method:has(> label input[type="radio"]:checked) {
	border-color: var(--ap-blue) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(38,90,136,.12) !important;
}
body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method > input[type="radio"] { width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -3px; accent-color: var(--ap-blue); }
html body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method > label { display: inline !important; width: auto !important; color: var(--ap-head) !important; font-size: 15px !important; font-weight: 700 !important; }
body.ap-co--checkout #payment ul.wc_payment_methods li.wc_payment_method > label img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
body.ap-co--checkout #payment div.payment_box { margin: 14px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px solid var(--ap-line) !important; background: none !important; color: var(--ap-text) !important; font-size: 13.5px !important; }
body.ap-co--checkout #payment div.payment_box table { margin: 10px 0 0; border: 1px solid var(--ap-line); border-radius: 10px; overflow: hidden; border-collapse: separate !important; }
body.ap-co--checkout #payment div.payment_box table tr { border: 0 !important; }
body.ap-co--checkout #payment div.payment_box table td { padding: 8px 12px !important; border-bottom: 1px solid var(--ap-line); font-size: 13px; }
body.ap-co--checkout #payment div.payment_box table tr:last-child td { border-bottom: 0; }
body.ap-co--checkout #payment div.payment_box table td:first-child { color: var(--ap-muted); font-weight: 600 !important; background: #f8fbfe; }
body.ap-co--checkout #payment div.payment_box + br,
body.ap-co--checkout #payment div.payment_box br:last-child { display: none; }
body.ap-co--checkout #payment .form-row.place-order { margin: 0; padding: 0; }
body.ap-co--checkout .woocommerce-privacy-policy-text p { margin: 0 0 12px; color: var(--ap-muted); font-size: 12.5px; line-height: 1.55; }
body.ap-co--checkout .woocommerce-privacy-policy-text a,
body.ap-co--checkout .woocommerce-terms-and-conditions-link { color: var(--ap-blue); font-weight: 600; }
body.ap-co--checkout .woocommerce-terms-and-conditions { max-height: 320px; margin: 0 0 12px; padding: 0; border: 1px solid var(--ap-line); border-radius: 12px; background: #fff; }
body.ap-co--checkout .woocommerce-terms-and-conditions-wrapper .form-row,
body.ap-co--checkout .scatter-wa-optin { margin: 0 0 10px !important; padding: 0; }
body.ap-co--checkout .scatter-wa-optin label { padding: 10px 12px; border-radius: 10px; background: #ecfdf3; border: 1px solid #bbf7d0; width: 100%; }
body.ap-co--checkout .apeiro-checkout-notice { margin: 4px 0 16px !important; padding: 14px 16px !important; border-radius: 12px !important; font-size: 12.5px !important; line-height: 1.55 !important; }
body.ap-co--checkout .apeiro-checkout-notice p { margin: 0; }
body.ap-co .woocommerce #place_order { width: 100%; min-height: 58px; margin: 4px 0 0; float: none; font-size: 16.5px; border-radius: 14px; }
body.ap-co .woocommerce #place_order::before {
	content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ap-co-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--ap-muted); font-size: 12.5px; }
.ap-co-secure .ap-co-ico { width: 15px; height: 15px; color: var(--ap-ok); stroke-width: 2.2; }
body.ap-co--checkout .checkout-order-review > .ap-co-trust { margin: 0 -26px; padding-left: 26px; padding-right: 26px; }

/* Captcha box from Saqi Math Captcha */
body.ap-co--checkout .smc-captcha-wrap { border-radius: 14px !important; border-color: var(--ap-line) !important; box-shadow: none !important; background: #f8fbfe !important; }

/* =================================================================
   ORDER RECEIVED (thank-you)
   ================================================================= */
.ap-ty { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.ap-ty > *, .ap-ty .ap-ty-details > * { margin: 0 !important; }
.ap-ty-card { padding: 28px 32px; }
.ap-ty h2, .ap-ty h3 { color: var(--ap-head); text-transform: none; letter-spacing: 0; }

.ap-ty-hello { position: relative; overflow: hidden; padding-top: 38px; text-align: center; }
.ap-ty-hello::before {
	content: ""; position: absolute; inset: 0 0 auto; height: 6px;
	background: linear-gradient(90deg, #22c55e, #3b8fd6, #265a88);
}
.ap-ty-badge {
	display: flex; margin-left: auto !important; margin-right: auto !important; align-items: center; justify-content: center; width: 78px; height: 78px; margin-bottom: 14px; border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #4ade80, #16a34a); color: #fff;
	box-shadow: 0 0 0 10px rgba(34,197,94,.12), 0 18px 32px -14px rgba(22,163,74,.9);
	animation: ap-ty-pop .6s cubic-bezier(.2,1.4,.4,1) both;
}
.ap-ty-badge .ap-co-ico { width: 38px; height: 38px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: ap-ty-draw .5s .35s ease forwards; }
.ap-ty-hello--failed::before { background: #ef4444 !important; }
.ap-ty-hello--failed .ap-ty-badge { background: radial-gradient(circle at 30% 30%, #f87171, #dc2626); box-shadow: 0 0 0 10px rgba(239,68,68,.12), 0 18px 32px -14px rgba(220,38,38,.9); }
.ap-ty-hello--failed .ap-ty-badge .ap-co-ico { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
@keyframes ap-ty-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ap-ty-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ap-ty-badge, .ap-ty-badge .ap-co-ico { animation: none; stroke-dashoffset: 0; } }

.ap-ty-eyebrow { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 99px; background: var(--ap-ice); color: var(--ap-blue); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.ap-ty-hello h2 { margin: 0 0 8px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.ap-ty-hello > p { max-width: 560px; margin: 0 auto; color: var(--ap-muted); font-size: 15.5px; line-height: 1.6; }
.ap-ty-hello > p.woocommerce-thankyou-order-received,
.ap-ty-hello > p.woocommerce-thankyou-order-failed { padding: 0; border: 0; background: none; color: var(--ap-muted); font-size: 15.5px; font-weight: 400; line-height: 1.6; text-align: center; }
.ap-ty-hello > p.woocommerce-thankyou-order-received::before,
.ap-ty-hello > p.woocommerce-thankyou-order-failed::before { display: none; }

.ap-ty-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 26px 0 0 !important; padding: 0 !important; list-style: none; border: 1px solid var(--ap-line); border-radius: 14px; overflow: hidden; background: #f8fbfe; text-align: left; }
.ap-ty-meta li { margin: 0 !important; padding: 14px 18px !important; border: 0 !important; border-right: 1px solid var(--ap-line) !important; float: none !important; }
.ap-ty-meta li:last-child { border-right: 0 !important; }
.ap-ty-meta li > span { display: block; margin-bottom: 4px; color: var(--ap-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ap-ty-meta li strong { display: block; color: var(--ap-head); font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-transform: none; }

.ap-ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* Bank transfer */
.ap-ty-pay { border-color: #c9dcf0; background: linear-gradient(180deg, #fff, #f8fbfe); }
.ap-ty-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ap-ty-head__ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, var(--ap-blue), #1b4a77); color: #fff; box-shadow: 0 12px 22px -12px rgba(22,63,105,.95); }
.ap-ty-head__ico .ap-co-ico { width: 24px; height: 24px; }
.ap-ty-head h3 { margin: 0 0 4px; font-size: 21px; font-weight: 700; }
.ap-ty-head p { margin: 0; color: var(--ap-muted); font-size: 14px; }
.ap-ty-paychips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.ap-ty-paychips div { padding: 16px 18px; border-radius: 14px; background: var(--ap-ice); border: 1px solid #d4e5f6; }
.ap-ty-paychips div > span { display: block; margin-bottom: 4px; color: var(--ap-blue); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ap-ty-paychips strong { color: var(--ap-head); font-size: 24px; font-weight: 800; }
.ap-ty-bank > h2 { display: none; }
.ap-ty-bank table { width: 100%; margin: 0 !important; border: 1px solid var(--ap-line) !important; border-radius: 14px; overflow: hidden; border-collapse: separate !important; border-spacing: 0; background: #fff; }
.ap-ty-bank table tr { border: 0 !important; }
.ap-ty-bank table td { padding: 13px 18px !important; border: 0 !important; border-bottom: 1px solid var(--ap-line) !important; color: var(--ap-head); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ap-ty-bank table tr:last-child td { border-bottom: 0 !important; }
.ap-ty-bank table td:first-child { width: 34% !important; background: #f8fbfe; color: var(--ap-muted); font-size: 13px; font-weight: 600 !important; }
.ap-ty-bank > br { display: none; }
.ap-ty-bank > p { margin: 14px 0 0; color: var(--ap-text); font-size: 14px; }
.ap-ty-receipt { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #ecfdf3; border: 1px solid #bbf7d0; }
.ap-ty-receipt p { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; margin: 0; color: #14532d; font-size: 14px; font-weight: 600; }
.ap-ty-receipt p .ap-co-ico { color: #16a34a; }

/* Timeline */
.ap-ty-next h3 { margin: 0 0 22px; font-size: 20px; font-weight: 700; }
.ap-ty-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ap-ty-timeline li { position: relative; margin: 0; padding: 0 8px 0 0; }
.ap-ty-timeline li::after { content: ""; position: absolute; top: 22px; left: 54px; right: -6px; height: 2px; background: var(--ap-line); border-radius: 2px; }
.ap-ty-timeline li:last-child::after { display: none; }
.ap-ty-timeline li.is-done::after { background: #86efac; }
.ap-ty-timeline__dot { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: var(--ap-bg); border: 1px solid var(--ap-line); color: var(--ap-muted); }
.ap-ty-timeline__dot .ap-co-ico { width: 21px; height: 21px; }
.ap-ty-timeline li.is-done .ap-ty-timeline__dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.ap-ty-timeline li.is-done .ap-ty-timeline__dot .ap-co-ico { stroke-width: 2.6; }
.ap-ty-timeline li.is-current .ap-ty-timeline__dot { background: linear-gradient(135deg, var(--ap-blue), #1b4a77); border-color: transparent; color: #fff; box-shadow: 0 0 0 5px rgba(38,90,136,.14); }
.ap-ty-timeline b { display: block; margin-bottom: 4px; color: var(--ap-head); font-size: 14.5px; }
.ap-ty-timeline li:not(.is-done):not(.is-current) b { color: var(--ap-muted); }
.ap-ty-timeline small { display: block; color: var(--ap-muted); font-size: 13px; line-height: 1.5; }
.ap-ty-timeline li.is-current b::after { content: "In progress"; display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--ap-ice); color: var(--ap-blue); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }

/* Order details + addresses printed by WooCommerce on woocommerce_thankyou */
.ap-ty-details { display: grid; gap: 22px; }
.ap-ty-details:empty { display: none; }
.ap-ty-details > section,
.ap-ty-details > .woocommerce-order-details,
.ap-ty-details > .woocommerce-customer-details { margin: 0; padding: 26px 32px; }
.ap-ty-details h2 { margin: 0 0 16px; color: var(--ap-head); font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.ap-ty-details table.shop_table { margin: 0; border: 0; }
.ap-ty-details table.shop_table th,
.ap-ty-details table.shop_table td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--ap-line); background: none; font-size: 14.5px; }
.ap-ty-details table.shop_table thead th { padding-top: 0; color: var(--ap-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ap-ty-details table.shop_table th:last-child,
.ap-ty-details table.shop_table td:last-child { text-align: right; }
.ap-ty-details table.shop_table td.product-name a { color: var(--ap-head); font-weight: 600; text-decoration: none; }
.ap-ty-details table.shop_table td.product-name a:hover { color: var(--ap-blue); }
.ap-ty-details table.shop_table .product-quantity { color: var(--ap-blue); font-weight: 700; }
.ap-ty-details table.shop_table .wc-item-meta { margin: 4px 0 0; padding: 0; list-style: none; color: var(--ap-muted); font-size: 12.5px; }
.ap-ty-details table.shop_table .wc-item-meta li,
.ap-ty-details table.shop_table .wc-item-meta p { display: inline; margin: 0; }
.ap-ty-details table.shop_table tfoot th { color: var(--ap-muted); font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left; }
.ap-ty-details table.shop_table tfoot td { color: var(--ap-head); font-weight: 600; }
.ap-ty-details table.shop_table tfoot tr:last-child th,
.ap-ty-details table.shop_table tfoot tr:last-child td { border-bottom: 0; }
.ap-ty-details table.shop_table tfoot tr:nth-last-child(2) th,
.ap-ty-details table.shop_table tfoot tr:nth-last-child(2) td { color: var(--ap-head); }
.ap-ty-details .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0; }
.ap-ty-details .woocommerce-customer-details .woocommerce-columns::before,
.ap-ty-details .woocommerce-customer-details .woocommerce-columns::after { display: none; }
.ap-ty-details .woocommerce-customer-details .woocommerce-column { width: auto; float: none; margin: 0; padding: 18px 20px; border-radius: 14px; background: #f8fbfe; border: 1px solid var(--ap-line); }
.ap-ty-details .woocommerce-customer-details .woocommerce-column h2 { margin-bottom: 10px; font-size: 15px; }
.ap-ty-details .woocommerce-customer-details address { margin: 0; padding: 0; border: 0; color: var(--ap-text); font-size: 14px; font-style: normal; line-height: 1.7; }
.ap-ty-details .woocommerce-customer-details address p { margin: 6px 0 0; }
.ap-ty-details .order-again { margin: 18px 0 0; }

.ap-ty-help { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; background: linear-gradient(125deg, #0f3459 0%, #1f5389 55%, #2f7cc4 100%); border: 0; color: #fff; }
.ap-ty-help h3 { margin: 0 0 4px; color: #fff; font-size: 20px; font-weight: 700; }
.ap-ty-help p { margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; }
.ap-ty-help .ap-ty-actions { margin: 0; justify-content: flex-end; }
.ap-ty-help .ap-co-btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff !important; }
.ap-ty-help .ap-co-btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff !important; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
	body.ap-co--cart .ap-co-page > .woocommerce,
	body.ap-co--cart .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr) 360px; gap: 0 20px; }
	body.ap-co--checkout form.woocommerce-checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 0 20px; }
	.ap-co-steps li { width: 96px; }
}

@media (max-width: 900px) {
	body.ap-co--cart .ap-co-page > .woocommerce,
	body.ap-co--cart .entry-content > .woocommerce,
	body.ap-co--checkout form.woocommerce-checkout { display: block; }
	body.ap-co--cart .woocommerce > .cart-collaterals { position: static; margin-top: 20px; }
	body.ap-co--checkout form.woocommerce-checkout > .checkout-order-review { position: static; margin-top: 20px; }
	.ap-co-hero { padding: 26px 26px; }
	.ap-co-steps { width: 100%; justify-content: space-between; }
	.ap-co-steps li { flex: 1; width: auto; }
	.ap-ty-timeline { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.ap-ty-timeline li:nth-child(2)::after { display: none; }
}

@media (max-width: 767px) {
	body.ap-co .wd-content-layout { padding-top: 16px; }
	.ap-co-hero { margin-bottom: 18px; padding: 22px 20px 20px; border-radius: 18px; }
	.ap-co-hero h1 { font-size: 25px; }
	.ap-co-hero p { font-size: 14px; }
	.ap-co-steps__dot { width: 34px; height: 34px; font-size: 13px; }
	.ap-co-steps li + li::before { top: 16px; right: calc(50% + 23px); width: calc(100% - 46px); }
	.ap-co-steps__label { font-size: 11.5px; }

	/* Cart rows become compact cards */
	body.ap-co .woocommerce-cart-form { padding: 4px 16px 18px; }
	body.ap-co .woocommerce-cart-form table.shop_table thead { display: none; }
	body.ap-co .woocommerce-cart-form table.shop_table,
	body.ap-co .woocommerce-cart-form table.shop_table tbody { display: block; }
	body.ap-co .woocommerce-cart-form tr.cart_item {
		display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; grid-template-areas: "thumb name remove" "thumb price price" "qty qty subtotal";
		column-gap: 12px; row-gap: 6px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ap-line);
	}
	body.ap-co .woocommerce-cart-form tr.cart_item td { display: block; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
	body.ap-co .woocommerce-cart-form tr.cart_item td::before { display: none !important; }
	body.ap-co .woocommerce-cart-form td.product-thumbnail { grid-area: thumb; display: block !important; align-self: start; }
	body.ap-co .woocommerce-cart-form td.product-thumbnail a { width: 78px; height: 78px; }
	body.ap-co .woocommerce-cart-form td.product-name { grid-area: name; }
	body.ap-co .woocommerce-cart-form td.product-name a { font-size: 14.5px; }
	body.ap-co .woocommerce-cart-form td.product-price { grid-area: price; font-size: 13.5px; }
	body.ap-co .woocommerce-cart-form td.product-remove { grid-area: remove; align-self: start; }
	body.ap-co .woocommerce-cart-form td.product-quantity { grid-area: qty; margin-top: 6px !important; }
	body.ap-co .woocommerce-cart-form td.product-subtotal { grid-area: subtotal; margin-top: 6px !important; text-align: right !important; }
	body.ap-co .woocommerce-cart-form tr:not(.cart_item) { display: block; }
	body.ap-co .woocommerce-cart-form td.actions { padding-top: 16px !important; }
	body.ap-co .woocommerce-cart-form .coupon { float: none; max-width: none; }
	body.ap-co .woocommerce-cart-form td.actions > .button { float: none; width: 100%; margin: 12px 0 0; }
	.ap-co-cardhead h2 { font-size: 18px; }
	body.ap-co .cart-totals-inner { padding: 20px 18px 18px; }
	.ap-co-trust { padding: 12px 18px 16px; }

	body.ap-co--checkout .woocommerce > .woocommerce-form-login-toggle,
	body.ap-co--checkout .woocommerce > .woocommerce-form-coupon-toggle { display: block; width: auto; margin-right: 0; }
	body.ap-co--checkout .woocommerce-billing-fields,
	body.ap-co--checkout .woocommerce-shipping-fields,
	body.ap-co--checkout .woocommerce-additional-fields { padding: 20px 18px 6px; }
	body.ap-co--checkout .woocommerce-account-fields { padding: 4px 18px 8px; }
	body.ap-co--checkout .woocommerce-shipping-fields { padding-bottom: 14px; }
	body.ap-co--checkout .checkout-order-review { padding: 20px 18px 0; }
	body.ap-co--checkout #payment { margin: 6px -18px 0; padding: 18px; }
	body.ap-co--checkout .checkout-order-review > .ap-co-trust { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
	body.ap-co .woocommerce form .form-row-first,
	body.ap-co .woocommerce form .form-row-last { width: 100%; float: none; }

	.ap-ty { gap: 16px; }
	.ap-ty-card,
	.ap-ty-details > section,
	.ap-ty-details > .woocommerce-order-details,
	.ap-ty-details > .woocommerce-customer-details { padding: 22px 18px; }
	.ap-ty-hello h2 { font-size: 24px; }
	.ap-ty-hello > p { font-size: 14.5px; }
	.ap-ty-badge { width: 66px; height: 66px; }
	.ap-ty-meta { grid-template-columns: 1fr 1fr; }
	.ap-ty-meta li { border-right: 0 !important; border-bottom: 1px solid var(--ap-line) !important; }
	.ap-ty-meta li:nth-child(odd) { border-right: 1px solid var(--ap-line) !important; }
	.ap-ty-paychips { grid-template-columns: 1fr; }
	.ap-ty-paychips strong { font-size: 21px; }
	.ap-ty-bank table td { display: block; width: auto !important; padding: 10px 14px !important; }
	.ap-ty-bank table td:first-child { border-bottom: 0 !important; padding-bottom: 2px !important; background: none; font-size: 12px; }
	.ap-ty-timeline { grid-template-columns: 1fr; row-gap: 0; }
	.ap-ty-timeline li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 0 0 18px; }
	.ap-ty-timeline__dot { grid-row: 1 / span 2; margin: 0; }
	.ap-ty-timeline li::after { display: block !important; top: 50px; bottom: 2px; left: 22px; right: auto; width: 2px; height: auto; }
	.ap-ty-timeline li:last-child::after { display: none !important; }
	.ap-ty-details .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
	.ap-ty-help .ap-ty-actions { justify-content: stretch; }
	.ap-ty-help .ap-co-btn { flex: 1 1 100%; }
	.ap-ty-actions .ap-co-btn { flex: 1 1 100%; }
}
