/* New checkout (sk-checkout-looks). Layout and colours are inline in the templates, copied from the approved
   mockups; this file only holds states (selected tile, errors, focus), WooCommerce's own parts, and motion. */

/* ---------- page ---------- */
html, body.skx { background: #ffffff; }
body.skx { margin: 0; -webkit-text-size-adjust: 100%; }
.skx-root { width: 100%; }
.skx-root > .woocommerce { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; }
.skx-root [hidden], #skx-drawer [hidden] { display: none !important; }
.skx-root a, #skx-drawer a { color: var(--skx-a); }
.skx-root a:hover, #skx-drawer a:hover { color: var(--skx-ink); }
.skx-root h1, .skx-root h2, .skx-root p { overflow-wrap: anywhere; }
.skx-bleed { padding-left: max(20px, calc(50% - 284px)) !important; padding-right: max(20px, calc(50% - 284px)) !important; }
.skx-main { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.skx-main > .woocommerce-notices-wrapper:not(:empty), .skx-main > .woocommerce-NoticeGroup { padding: 16px 16px 0; }
/* The theme's own header and footer are printed by its hooks; the new checkout has its own, so hide theirs. */
body.skx > header, body.skx > footer, body.skx > nav, body.skx > .evkp-footer { display: none !important; }
.skx-root .evk-payment-heading, .skx-root .evkp-pay-usps { display: none !important; }
/* The company-details box another plugin adds above every checkout: its details go in the footer instead (core.php). */
.skx-root .skcp-merchant-details { display: none !important; }
.skx-root .skx-biz a { color: inherit !important; text-decoration: none; }
.skx-root .skx-biz strong { font-weight: 600; color: #56607a; }
.skx-hooks:empty { display: none; }
.skx-hooks { display: flex; flex-direction: column; gap: 12px; }

/* ---------- motion (from the mockups) ---------- */
@keyframes tw { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.65); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@keyframes skx-spin { to { transform: rotate(360deg); } }
@keyframes skx-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes skx-fade { from { opacity: 0; } to { opacity: 1; } }
.skx-root .tw, #skx-drawer .tw { animation: tw 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.skx-root .bob, #skx-drawer .bob { animation: bob 2.6s ease-in-out infinite; }
.skx-root .eq, #skx-drawer .eq { animation: eq 1s ease-in-out infinite; transform-origin: bottom; }

/* ---------- fields ---------- */
.skx-form .form-row { margin: 0; padding: 0; }
.skx-form p.form-row:not(.skx-field) { display: flex; flex-direction: column; gap: 6px; }
.skx-form .form-row label { font-size: 13px; font-weight: 600; color: var(--skx-ink); line-height: 1.3; }
.skx-form .form-row abbr.required { color: #c62828; text-decoration: none; border: 0; }
.skx-form .form-row .optional { color: var(--skx-mut); font-weight: 400; }
.skx-form .woocommerce-input-wrapper { display: block; width: 100%; }
.skx-form .form-row input.input-text:not([style]), .skx-form .form-row select, .skx-form .form-row textarea {
	height: 48px; width: 100%; margin: 0; padding: 0 14px; border: 1px solid var(--skx-line); border-radius: var(--skx-r);
	background: #ffffff; color: var(--skx-ink); font: inherit; font-size: 16px; box-sizing: border-box; box-shadow: none;
}
.skx-form .form-row textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.skx-form .form-row input.input-text:focus, .skx-form .form-row select:focus, .skx-form .form-row textarea:focus {
	border-color: var(--skx-a) !important; outline: 0; box-shadow: 0 0 0 3px var(--skx-ring, rgba(11,91,239,.15)) !important;
}
.skx-form .form-row.woocommerce-invalid input.input-text, .skx-form .form-row.woocommerce-invalid select { border-color: #d93025 !important; }
.skx-form .form-row.woocommerce-validated input.input-text { border-color: var(--skx-line); }
.skx-fmsg { display: block; font-size: 12px; font-weight: 600; color: #c62828; line-height: 1.3; }
.skx-form .select2-container { width: 100% !important; }
.skx-form .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--skx-line); border-radius: var(--skx-r); }
.skx-form .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; font-size: 16px; color: var(--skx-ink); }
.skx-form .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.skx-country-pick { display: flex; flex-direction: column; }

/* ---------- payment tiles ---------- */
.skx-sr { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0 !important; }
.skx-pm { position: relative; }
.skx-pm .skx-tile { border: 1px solid var(--skx-line); background: #ffffff; }
.skx-pm .skx-radio { border: 2px solid #8a90a0; }
.skx-pm .skx-radio-dot { background: transparent; }
.skx-pm input:checked + .skx-tile { border: 2px solid var(--skx-a); background: var(--skx-soft); }
.skx-pm input:checked + .skx-tile .skx-radio { border-color: var(--skx-a); }
.skx-pm input:checked + .skx-tile .skx-radio-dot { background: var(--skx-a); }
.skx-pm input:focus-visible + .skx-tile { outline: 2px solid var(--skx-a); outline-offset: 2px; }
.skx-pm .skx-tile img, .skx-chip img { display: block; }
/* A payment box with only a line of text ("Selecteer je bank") is not in the design; boxes with fields stay. */
/* Other plugins reorder the methods with CSS order; the design order is the DOM order. */
.skx-root .wc_payment_methods > li.skx-pm { order: 0 !important; }
.skx-pbox:not(:has(input, select, textarea, iframe, button, [id], [class*="mollie"])) { display: none !important; }
.skx-pbox { margin: 8px 0 0; padding: 4px 2px 0; font-size: 14px; line-height: 1.45; color: var(--skx-mut); }
.skx-pbox p { margin: 0 0 8px; }
.skx-pbox p:last-child { margin-bottom: 0; }
.skx-pbox select, .skx-pbox input[type="text"] { height: 48px; width: 100%; padding: 0 14px; border: 1px solid var(--skx-line); border-radius: var(--skx-r); font: inherit; font-size: 16px; box-sizing: border-box; background: #fff; color: var(--skx-ink); }
.skx-form .woocommerce-notice, .skx-form .woocommerce-info { list-style: none; }
ul.wc_payment_methods.skx-bad-pm .skx-tile { border-color: #d93025; }

/* Indigo: two columns, the card (and a lone last tile) across both; a check circle on the picked tile. */
.skx-root ul.skx-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skx-root ul.skx-grid > li { float: none !important; width: auto !important; min-width: 0; }
.skx-root ul.skx-grid > li.skx-wide { grid-column: span 2; }
.skx-grid input:checked + .skx-tile { padding: 13px !important; }
.skx-grid .skx-tick { display: none; }
.skx-grid input:checked + .skx-tile .skx-tick { display: flex; }

/* card page */
.skx-pay-card .skx-onecard > li > input.input-radio { position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px; height: 1px; }
.skx-pay-card .skx-cardbox { display: block !important; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.skx-pay-card .skx-cardbox::before { display: none !important; }
/* Card gateways that use WooCommerce's own card form (Cardinity): the design's three fields. */
.skx-pay-card .skx-cardbox > p:not(.form-row) { display: none !important; }
.skx-pay-card .skx-cardbox fieldset.wc-credit-card-form { display: flex !important; flex-wrap: wrap; column-gap: 10px; row-gap: 14px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; min-width: 0; }
.skx-pay-card .skx-cardbox .wc-credit-card-form .form-row { float: none !important; width: 100% !important; flex: 0 0 100%; display: flex; flex-direction: column; gap: 6px; margin: 0 !important; padding: 0 !important; }
.skx-pay-card .skx-cardbox .wc-credit-card-form .form-row-first,
.skx-pay-card .skx-cardbox .wc-credit-card-form .form-row-last { flex: 1 1 0; width: auto !important; min-width: 0; }
.skx-pay-card .skx-cardbox .wc-credit-card-form label { margin: 0 !important; padding: 0 !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--skx-ink, #101a32) !important; }
.skx-pay-card .skx-cardbox .wc-credit-card-form label .required { display: none !important; }
.skx-pay-card .skx-cardbox .wc-credit-card-form input.input-text { height: 48px !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--skx-line, #dbe3f2) !important; border-radius: var(--skx-r, 8px) !important; background-color: #ffffff !important; box-shadow: none !important; box-sizing: border-box !important; font: inherit !important; font-size: 16px !important; color: var(--skx-ink, #101a32) !important; }
.skx-pay-card .skx-cardbox .wc-credit-card-form input.input-text:focus { outline: none !important; border-color: var(--skx-a, #0b5bef) !important; box-shadow: 0 0 0 3px rgba(11, 91, 239, 0.15) !important; }
.skx-pay-card .skx-cardbox .wc-credit-card-form .clear { display: none !important; }
.skx-pay-card .skx-field.woocommerce-invalid input.input-text { border-color: #d93025 !important; }
#tpCardsBtnReplace { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; margin: 0; padding: 12px 16px; border: 0; border-radius: var(--skx-r); background: var(--skx-a); color: #ffffff; font: inherit; font-size: 16px; font-weight: 700; opacity: .85; }

/* ---------- terms ---------- */
.skx-form .woocommerce-terms-and-conditions-wrapper { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--skx-mut); }
.skx-form .woocommerce-privacy-policy-text p { margin: 0; }
.skx-form .woocommerce-terms-and-conditions { border: 1px solid var(--skx-line); border-radius: var(--skx-r); padding: 12px 14px; font-size: 13px; }
.skx-form .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; }
.skx-form .woocommerce-form__label-for-checkbox { display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px !important; font-weight: 500 !important; color: var(--skx-ink); cursor: pointer; line-height: 1.4; }
.skx-form .woocommerce-form__label-for-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--skx-a); }
.skx-form .woocommerce-invalid .woocommerce-form__label-for-checkbox { color: #c62828; }

/* ---------- notices ---------- */
.skx-root .woocommerce-error, .skx-root .woocommerce-message, .skx-root .woocommerce-info {
	list-style: none; margin: 0; padding: 12px 14px; border-radius: var(--skx-r); font-size: 14px; line-height: 1.45;
}
.skx-root .woocommerce-error { border: 1px solid #f1b5b0; background: #fdf1f0; color: #8a1c12; }
.skx-root .woocommerce-message { border: 1px solid #b7dfc8; background: #eef8f2; color: #0a5a34; }
.skx-root .woocommerce-info { border: 1px solid var(--skx-line); background: var(--skx-soft); color: var(--skx-ink); }
.skx-root .woocommerce-error li, .skx-root .woocommerce-message li { margin: 0; padding: 0; }
.skx-root .woocommerce-error li + li { margin-top: 6px; }
.skx-root .woocommerce-error::before, .skx-root .woocommerce-message::before, .skx-root .woocommerce-info::before { display: none; }
.skx-root .woocommerce-error a.button, .skx-root .woocommerce-message a.button { display: none; }
.skx-root .woocommerce-NoticeGroup { display: flex; flex-direction: column; gap: 8px; }

/* ---------- busy state ---------- */
.skx-root .blockUI.blockOverlay { position: absolute; }
.skx-root .blockUI.blockOverlay::before { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--skx-line); border-top-color: var(--skx-a); border-radius: 50%; animation: skx-spin .8s linear infinite; box-sizing: border-box; }
.skx-root .skx-summary .blockUI.blockOverlay::before, .skx-root #payment .blockUI.blockOverlay::before { display: none; }
.skx-btn:hover { filter: brightness(.94); }
.skx-btn:focus-visible { outline: 3px solid var(--skx-ink); outline-offset: 2px; }
.skx-btn[disabled], form.processing .skx-btn { opacity: .7; cursor: wait; }

/* ---------- cart drawer ---------- */
#skx-drawer[hidden] { display: none !important; }
#skx-drawer :where(:not(svg):not(svg *)) { all: revert; }
#skx-drawer { animation: skx-fade .18s ease-out; -webkit-font-smoothing: antialiased; }
#skx-drawer aside { animation: skx-in .22s ease-out; }
#skx-drawer button { -webkit-appearance: none; appearance: none; }
#skx-drawer .skx-drawer-in.is-busy { opacity: .6; pointer-events: none; }
html.skx-lock, html.skx-lock body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
	.skx-root .tw, .skx-root .bob, .skx-root .eq, #skx-drawer .tw, #skx-drawer .bob, #skx-drawer .eq, #skx-drawer, #skx-drawer aside { animation: none !important; }
}
