/* [wcppc_checkout] page — scoped to .wcppc-x so the theme is not affected. */
.wcppc-x {
	--wcppc-accent: #0f5e63;
	--wcppc-ink: #1c1917;
	--wcppc-muted: #6b645c;
	--wcppc-line: #e6e0d8;
	--wcppc-soft: #f7f4ef;
	--wcppc-card: #ffffff;
	--wcppc-danger: #b42318;
	--wcppc-bg: transparent;
	--wcppc-r: 18px;
	--wcppc-font: inherit;
	--wcppc-max: 1080px;
	--wcppc-radius: calc(var(--wcppc-r) * .78);
	--wcppc-radius-sm: calc(var(--wcppc-r) * .56);
	container: wcppcx / inline-size;
	color: var(--wcppc-ink);
	font-family: var(--wcppc-font);
	max-width: var(--wcppc-max);
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.5;
}
.wcppc-x.wcppc-x--bg { background: var(--wcppc-bg); padding: clamp(14px, 3vw, 32px); border-radius: var(--wcppc-r); }
.wcppc-x button, .wcppc-x input, .wcppc-x select, .wcppc-x textarea { font-family: inherit; }
.wcppc-x__intro { margin: 6px 0 0; color: var(--wcppc-muted); max-width: 60ch; }
.wcppc-x *, .wcppc-x *::before, .wcppc-x *::after { box-sizing: border-box; }
.wcppc-x [hidden] { display: none !important; }
.wcppc-x-note { padding: 14px 16px; border-radius: 12px; background: #f7f4ef; border: 1px solid #e6e0d8; }

/* Logo & footer */
.wcppc-x__brand { display: flex; margin: 0 0 22px; }
.wcppc-x__brand--left { justify-content: flex-start; }
.wcppc-x__brand--center { justify-content: center; }
.wcppc-x__brand--right { justify-content: flex-end; }
.wcppc-x__logo { display: inline-block; line-height: 0; max-width: 100%; }
.wcppc-x .wcppc-x__logo-img { display: block; width: var(--wcppc-logo-w, 160px); max-width: 100%; height: auto; margin: 0; }
.wcppc-x__footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--wcppc-line); text-align: center; color: var(--wcppc-muted); font-size: 13px; }
.wcppc-x__footer p { margin: 0; }

/* Header */
.wcppc-x__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.wcppc-x__title { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em; }
.wcppc-x__login { margin: 0; color: var(--wcppc-muted); font-size: 14px; }
.wcppc-x__login a { color: var(--wcppc-accent); font-weight: 600; }

/* Error / info box */
.wcppc-x__notice { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--wcppc-radius-sm); background: #fef3f2; border: 1px solid #fecdca; color: #7a271a; font-size: 14px; }
.wcppc-x__notice ul, .wcppc-x__notice .woocommerce-error { margin: 0; padding: 0; list-style: none; background: none; border: 0; color: inherit; box-shadow: none; }
.wcppc-x__notice .woocommerce-error::before { display: none; }
.wcppc-x__notice li { margin: 2px 0; padding: 0; }

/* Layout */
.wcppc-x__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.wcppc-x__main { display: grid; gap: 22px; min-width: 0; }
.wcppc-x__step, .wcppc-x__card { background: var(--wcppc-card); border: 1px solid var(--wcppc-line); border-radius: var(--wcppc-r); padding: 22px; }
.wcppc-x__aside { position: sticky; top: 24px; }
.wcppc-x__card { box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 12px 32px -18px rgba(28, 25, 23, .25); }
.wcppc-x__h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.wcppc-x__num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wcppc-accent); color: #fff; font-size: 13px; font-weight: 700; flex: none; }

/* Products */
.wcppc-x__products { display: grid; gap: 10px; }
.wcppc-x__product { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 0; padding: 12px 46px 12px 12px; border: 1.5px solid var(--wcppc-line); border-radius: var(--wcppc-radius); background: var(--wcppc-card); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.wcppc-x__product:hover { border-color: #cfc6ba; }
.wcppc-x__product input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wcppc-x__product.is-selected { border-color: var(--wcppc-accent); background: color-mix(in srgb, var(--wcppc-accent) 5%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcppc-accent) 14%, transparent); }
.wcppc-x__product:focus-within { outline: 2px solid var(--wcppc-accent); outline-offset: 2px; }
.wcppc-x__media { width: 60px; height: 60px; border-radius: var(--wcppc-radius-sm); overflow: hidden; background: var(--wcppc-soft); }
.wcppc-x__media img, .wcppc-x .wcppc-x__img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.wcppc-x__info { display: grid; gap: 2px; min-width: 0; }
.wcppc-x__name { font-weight: 650; line-height: 1.3; }
.wcppc-x__desc { color: var(--wcppc-muted); font-size: 13px; line-height: 1.4; }
.wcppc-x__price { font-weight: 700; text-align: right; white-space: nowrap; }
.wcppc-x__price del { color: var(--wcppc-muted); font-weight: 400; font-size: .9em; margin-right: 4px; }
.wcppc-x__price ins { text-decoration: none; }
.wcppc-x__price .subscription-details { display: block; font-weight: 500; font-size: 12px; color: var(--wcppc-muted); white-space: normal; }
.wcppc-x__tick { position: absolute; top: 50%; right: 14px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid #cfc6ba; background: #fff; }
.wcppc-x__product.is-selected .wcppc-x__tick { border-color: var(--wcppc-accent); background: var(--wcppc-accent); }
.wcppc-x__product.is-selected .wcppc-x__tick::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Fields (WooCommerce markup) */
.wcppc-x__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.wcppc-x .wcppc-x__fields .form-row { grid-column: 1 / -1; float: none; width: auto; margin: 0; padding: 0; }
.wcppc-x .wcppc-x__fields .form-row-first { grid-column: 1; }
.wcppc-x .wcppc-x__fields .form-row-last { grid-column: 2; }
.wcppc-x .form-row label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--wcppc-ink); line-height: 1.3; }
.wcppc-x .form-row .required { color: var(--wcppc-danger); text-decoration: none; border: 0; }
.wcppc-x .form-row .optional { color: var(--wcppc-muted); font-weight: 400; }
.wcppc-x .form-row .woocommerce-input-wrapper { display: block; }
.wcppc-x input[type="text"], .wcppc-x input[type="email"], .wcppc-x input[type="tel"], .wcppc-x input[type="password"], .wcppc-x input[type="number"], .wcppc-x select, .wcppc-x textarea {
	width: 100%; min-height: 46px; margin: 0; padding: 10px 14px; border: 1px solid var(--wcppc-line); border-radius: var(--wcppc-radius-sm); background: #fff; color: var(--wcppc-ink); font: inherit; font-size: 15px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.wcppc-x input:focus, .wcppc-x select:focus, .wcppc-x textarea:focus { outline: none; border-color: var(--wcppc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcppc-accent) 18%, transparent); }
.wcppc-x .woocommerce-invalid input, .wcppc-x .woocommerce-invalid select, .wcppc-x .woocommerce-invalid .select2-selection { border-color: var(--wcppc-danger) !important; }
.wcppc-x .select2-container { width: 100% !important; }
.wcppc-x .select2-container .select2-selection--single { height: 46px; border: 1px solid var(--wcppc-line); border-radius: var(--wcppc-radius-sm); }
.wcppc-x .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; color: var(--wcppc-ink); }
.wcppc-x .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.wcppc-x__account { margin-top: 16px; display: grid; gap: 12px; }
.wcppc-x__check, .wcppc-x__terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.wcppc-x__check input, .wcppc-x__terms input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wcppc-accent); flex: none; }
.wcppc-x__muted { margin: 0; color: var(--wcppc-muted); font-size: 13px; }

/* Summary */
.wcppc-x__lines { list-style: none; margin: 0 0 12px; padding: 0; }
.wcppc-x__line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-weight: 600; }
.wcppc-x__line-name small { display: block; font-weight: 400; color: var(--wcppc-muted); font-size: 12px; }
.wcppc-x__line-total { white-space: nowrap; }
.wcppc-x__line.is-skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #efebe5, #f7f4ef, #efebe5); background-size: 200% 100%; animation: wcppc-shimmer 1.2s infinite linear; }
.wcppc-x__line.is-skeleton span:first-child { width: 55%; }
.wcppc-x__line.is-skeleton span:last-child { width: 22%; }
.wcppc-x__qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--wcppc-line); }
.wcppc-x__qty-label { font-size: 14px; color: var(--wcppc-muted); }
.wcppc-x__stepper { display: inline-flex; align-items: center; border: 1px solid var(--wcppc-line); border-radius: var(--wcppc-radius-sm); overflow: hidden; }
.wcppc-x__stepper button { width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--wcppc-soft); color: var(--wcppc-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.wcppc-x__stepper button:hover { background: #efe9e1; }
.wcppc-x .wcppc-x__stepper input { width: 52px; min-height: 38px; padding: 0 4px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.wcppc-x__stepper input::-webkit-inner-spin-button, .wcppc-x__stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wcppc-x__totals { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--wcppc-line); transition: opacity .15s; }
.wcppc-x__totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.wcppc-x__totals dt { margin: 0; color: var(--wcppc-muted); font-weight: 400; }
.wcppc-x__totals dd { margin: 0; text-align: right; }
.wcppc-x__totals .wcppc-x__total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--wcppc-line); font-size: 1.2rem; font-weight: 750; }
.wcppc-x__totals .wcppc-x__total dt { color: var(--wcppc-ink); font-weight: 700; }
.wcppc-x.is-quoting .wcppc-x__totals, .wcppc-x.is-quoting .wcppc-x__lines { opacity: .5; }
.wcppc-x__ship-error { margin: 10px 0 0; color: var(--wcppc-danger); font-size: 13px; }
.wcppc-x__consent { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--wcppc-line) 35%, var(--wcppc-card)); color: var(--wcppc-muted); font-size: 13px; line-height: 1.45; }
.wcppc-x__terms { margin-top: 14px; }

/* Payment buttons */
.wcppc-x__pay { position: relative; margin-top: 18px; }
.wcppc-x__buttons { min-height: 48px; }
.wcppc-x__button + .wcppc-x__button { margin-top: 10px; }
.wcppc-x__btn-skeleton { height: 48px; border-radius: 8px; background: linear-gradient(90deg, #efebe5, #f7f4ef, #efebe5); background-size: 200% 100%; animation: wcppc-shimmer 1.2s infinite linear; }
.wcppc-x__overlay { position: absolute; inset: -8px; z-index: 5; display: none; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; background: rgba(255, 255, 255, .88); font-weight: 600; font-size: 14px; }
.wcppc-x.is-busy .wcppc-x__overlay { display: flex; }
.wcppc-x__spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--wcppc-accent) 25%, transparent); border-top-color: var(--wcppc-accent); animation: wcppc-spin .8s linear infinite; }
.wcppc-x__secure { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--wcppc-muted); font-size: 12px; line-height: 1.4; }
.wcppc-x__secure svg { flex: none; margin-top: 1px; }

@keyframes wcppc-shimmer { to { background-position: -200% 0; } }
@keyframes wcppc-spin { to { transform: rotate(360deg); } }

/* Layout options */
.wcppc-x--left .wcppc-x__grid { grid-template-columns: minmax(300px, 1fr) minmax(0, 1.4fr); }
.wcppc-x--left .wcppc-x__aside { order: -1; }
.wcppc-x--single .wcppc-x__grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.wcppc-x--single .wcppc-x__aside { position: static; }
.wcppc-x--no-num .wcppc-x__num { display: none; }
.wcppc-x--flat .wcppc-x__card { box-shadow: none; }
.wcppc-x__product.no-media { grid-template-columns: minmax(0, 1fr) auto; }

/* Narrow containers (phones, tablets, narrow theme content areas) */
@container wcppcx (max-width: 820px) {
	.wcppc-x__grid { grid-template-columns: 1fr; gap: 18px; }
	.wcppc-x__aside { position: static; }
	.wcppc-x--left .wcppc-x__grid { grid-template-columns: 1fr; }
	.wcppc-x--left .wcppc-x__aside { order: 0; }
}
@container wcppcx (max-width: 540px) {
	.wcppc-x .wcppc-x__logo-img { width: min(var(--wcppc-logo-w, 160px), 70cqi); }
	.wcppc-x__step, .wcppc-x__card { padding: 16px; }
	.wcppc-x__fields { grid-template-columns: 1fr; }
	.wcppc-x .wcppc-x__fields .form-row-first, .wcppc-x .wcppc-x__fields .form-row-last { grid-column: 1 / -1; }
	.wcppc-x__product { grid-template-columns: 52px minmax(0, 1fr); padding-right: 42px; }
	.wcppc-x__media { width: 52px; height: 52px; }
	.wcppc-x__price { grid-column: 2; text-align: left; }
	.wcppc-x__product.no-media { grid-template-columns: minmax(0, 1fr); }
	.wcppc-x__product.no-media .wcppc-x__price { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.wcppc-x *, .wcppc-x *::before, .wcppc-x *::after { animation: none !important; transition: none !important; }
}

/* Full-page checkout (no theme header / footer / page title) */
body.wcppc-standalone { margin: 0; min-height: 100vh; }
.wcppc-standalone__main { box-sizing: border-box; width: 100%; max-width: none; margin: 0 auto; padding: clamp(20px, 4vw, 56px) clamp(14px, 3vw, 32px) 32px; }
.wcppc-standalone__main > * { margin-left: auto; margin-right: auto; }
.wcppc-standalone .wcppc-x.wcppc-x--bg { background: transparent; padding: 0; }

/* Thank-you view (after payment, on the same checkout page) */
.wcppc-x--thanks { max-width: min(var(--wcppc-max), 640px); }
.wcppc-x__thanks { padding: clamp(20px, 4cqi, 36px); }
.wcppc-x__thanks-head { text-align: center; margin-bottom: 22px; }
.wcppc-x__thanks-head .wcppc-x__intro { margin: 8px auto 0; }
.wcppc-x__thanks-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: color-mix(in srgb, var(--wcppc-accent) 14%, var(--wcppc-card)); color: var(--wcppc-accent); }
.wcppc-x__thanks.is-pending .wcppc-x__thanks-icon { background: #fef6e7; color: #9a6700; }
.wcppc-x__thanks.is-failed .wcppc-x__thanks-icon { background: #fef3f2; color: var(--wcppc-danger); }
.wcppc-x__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 22px; border: 1px solid var(--wcppc-line); border-radius: var(--wcppc-radius-sm); overflow: hidden; background: var(--wcppc-line); }
.wcppc-x__facts > div { padding: 10px 14px; background: var(--wcppc-card); min-width: 0; }
.wcppc-x__facts dt { margin: 0; color: var(--wcppc-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.wcppc-x__facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.wcppc-x__qty-x { color: var(--wcppc-muted); font-weight: 500; }
.wcppc-x__address { margin-top: 22px; }
.wcppc-x__address address { font-style: normal; color: var(--wcppc-muted); line-height: 1.6; }
.wcppc-x__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.wcppc-x .wcppc-x__home { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: var(--wcppc-radius-sm); background: var(--wcppc-accent); color: #fff; font-weight: 650; text-decoration: none; border: 1px solid var(--wcppc-accent); transition: filter .15s; }
.wcppc-x .wcppc-x__home:hover, .wcppc-x .wcppc-x__home:focus-visible { filter: brightness(1.08); color: #fff; }
.wcppc-x .wcppc-x__home.is-secondary { background: transparent; color: var(--wcppc-accent); }
@container wcppcx (max-width: 480px) {
	.wcppc-x__facts { grid-template-columns: 1fr; }
	.wcppc-x__actions .wcppc-x__home { width: 100%; }
}
