/* SEB AGNEW theme – layout, header, footer, page sections */
:root {
	--sa-ink: #151515;
	--sa-text: #45443f;
	--sa-muted: #6b6a66;
	--sa-line: #e3e1dc;
	--sa-ph: #cbc8c1;
	--sa-soft: #f1f0ec;
	--sa-gutter: clamp(20px, 5vw, 80px);
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 5px; }
.sa-main { display: block; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
:where(.sa-main) h1, :where(.sa-main) h2, :where(.sa-main) h3, :where(.sa-main) p, :where(.sa-main) figure { margin: 0; }
:focus-visible { outline: 2px solid var(--sa-ink); outline-offset: 3px; }

/* ---------- Header ---------- */
.sa-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 16px 40px; padding: 36px var(--sa-gutter);
}
.sa-logo { font-size: 26px; font-weight: 500; letter-spacing: .34em; margin-right: -.34em; text-decoration: none !important; color: var(--sa-ink); }
.sa-nav { display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.sa-nav a[aria-current="page"], .sa-menu a[aria-current="page"] { text-decoration: underline; }
.sa-burger, .sa-spacer { display: none; }
.sa-menu[hidden] { display: none; }
.sa-menu {
	display: flex; flex-direction: column; padding: 8px 24px 40px; font-size: 24px; letter-spacing: .06em;
	border-top: 1px solid var(--sa-line);
}
.sa-menu > a { padding: 14px 0; border-bottom: 1px solid var(--sa-line); text-underline-offset: 6px; }
.sa-menu__social { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 28px; font-size: 14px; letter-spacing: .04em; color: var(--sa-text); }
.sa-burger .sa-i-close { display: none; }
.sa-burger[aria-expanded="true"] .sa-i-open { display: none; }
.sa-burger[aria-expanded="true"] .sa-i-close { display: block; }
@media (min-width: 761px) { .sa-menu { display: none !important; } }
@media (max-width: 760px) {
	.sa-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0; padding: 20px 12px; }
	.sa-logo { justify-self: center; font-size: 22px; }
	.sa-nav { display: none; }
	.sa-burger {
		display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0;
		background: transparent; color: var(--sa-ink); padding: 0; cursor: pointer;
	}
	.sa-spacer { display: block; }
}

/* ---------- Footer ---------- */
.sa-foot { background: var(--sa-soft); padding: 56px var(--sa-gutter) 36px; display: flex; flex-direction: column; gap: 44px; }
.sa-foot__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 36px 96px; align-items: start; }
.sa-foot__brand { display: flex; flex-direction: column; gap: 18px; }
.sa-foot__logo { align-self: flex-start; font-size: 15px; font-weight: 500; letter-spacing: .34em; }
.sa-foot__social { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.sa-foot .sa-nl { max-width: 560px; justify-self: end; }
.sa-foot__bottom {
	border-top: 1px solid #dcdad4; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between;
	gap: 12px 32px; font-size: 13px; color: #5f5e5a;
}
.sa-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.sa-foot__legal a { color: #5f5e5a; }

/* ---------- Shared typography ---------- */
.sa-pagehead {
	padding: clamp(28px, 3.5vw, 56px) var(--sa-gutter) clamp(56px, 6vw, 96px);
	display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.sa-h1, .sa-pagehead h1 {
	margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 400; letter-spacing: .3em; padding-left: .3em; line-height: 1.2;
}
.sa-years { font-size: 15px; color: var(--sa-muted); }
.sa-lead { margin-top: 22px !important; max-width: 680px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--sa-text); }
.sa-poem { margin-top: 22px !important; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.7; color: var(--sa-text); }
.sa-label {
	margin: 0; font-size: 13px !important; font-weight: 500 !important; letter-spacing: .24em; text-transform: uppercase; color: var(--sa-muted);
}
.sa-statement { font-size: clamp(20px, 2vw, 29px); line-height: 1.45; text-align: center; max-width: 900px; margin: 0 auto; }
.sa-big { font-size: 28px; line-height: 1.3; }
.sa-text p, p.sa-text { font-size: 18px; line-height: 1.7; }
.sa-small { font-size: 14px; color: var(--sa-muted); }
.sa-arrow-links { display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 14px; letter-spacing: .08em; }
.sa-arrow-links p { margin: 0; }

/* ---------- Sections ---------- */
.sa-sec { padding: 0 var(--sa-gutter) clamp(96px, 9vw, 150px); }
.sa-sec--line { border-top: 1px solid var(--sa-line); padding-top: clamp(72px, 7vw, 120px); }
.sa-wrap { width: 100%; max-width: 1280px; margin: 0 auto; }
.sa-wrap--1120 { max-width: 1120px; }
.sa-wrap--980 { max-width: 980px; }
.sa-narrow { width: 100%; max-width: 680px; margin: 0 auto; }
.sa-stack { display: flex; flex-direction: column; gap: 22px; }
.sa-stack--s { gap: 14px; }
.sa-stack--l { gap: 28px; }
.sa-two {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 56px clamp(48px, 7vw, 120px); align-items: start;
}
.sa-two--center { align-items: center; }
.sa-two--end { align-items: end; }

/* Series pages */
.sa-series-text { padding: clamp(112px, 10vw, 176px) var(--sa-gutter) clamp(72px, 7vw, 110px); }
.sa-series-text .sa-narrow { display: flex; flex-direction: column; gap: 22px; }
.sa-series-text p { font-size: 18px; line-height: 1.7; }
.sa-series-text .sa-label { margin-bottom: 6px; }
.sa-series-text .sa-arrow-links { border-top: 1px solid var(--sa-line); margin-top: 26px; padding-top: 26px; }
.sa-pnav {
	border-top: 1px solid var(--sa-line); padding: 40px var(--sa-gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center; gap: 12px 24px; font-size: 14px; letter-spacing: .08em;
}
.sa-pnav p { margin: 0; min-width: 0; }
.sa-pnav .sa-pnav__prev { justify-self: start; }
.sa-pnav .sa-pnav__all { justify-self: center; text-align: center; }
.sa-pnav .sa-pnav__next { justify-self: end; text-align: right; }
@media (max-width: 420px) { .sa-pnav { font-size: 13px; letter-spacing: .05em; gap: 12px 14px; } }

/* CUBES chapter head */
.sa-chapter-head {
	padding: clamp(24px, 3vw, 48px) var(--sa-gutter) clamp(72px, 8vw, 128px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
	gap: 56px clamp(48px, 7vw, 120px); align-items: center; max-width: 1280px; margin: 0 auto; box-sizing: content-box;
}
.sa-chapter-head .sa-h1 { padding-left: 0; }
.sa-chapter-head .sa-matrix { max-width: 520px; justify-self: end; }
.sa-chapter-head .sa-lead, .sa-chapter-head .sa-poem { margin-top: 4px !important; }
.sa-kicker { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--sa-muted); }
.sa-kicker a { color: var(--sa-muted); }
.sa-portraits-sec { padding: clamp(112px, 10vw, 176px) var(--sa-gutter) 0; }
.sa-portraits-sec .sa-wrap { max-width: 1120px; display: flex; flex-direction: column; gap: 26px; }

/* CUBES overview */
.sa-chapters { padding: 0 var(--sa-gutter) clamp(88px, 8vw, 140px); display: flex; flex-direction: column; align-items: center; gap: clamp(72px, 8vw, 128px); }
.sa-chapter { width: 100%; max-width: 1120px; display: flex; flex-direction: column; gap: 22px; }
.sa-chapter__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sa-chapter__meta p { margin: 0; }
.sa-chapter__name { font-size: 15px; font-weight: 500; letter-spacing: .24em; }
.sa-chapter p.sa-chapter__text { font-size: 16px; line-height: 1.6; color: var(--sa-text); }
.sa-chapter .sa-chapter__link { font-size: 14px; letter-spacing: .08em; }

/* Tiles (home + work) */
.sa-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 88px 48px; width: 100%; max-width: 1280px; margin: 0 auto; }
.sa-tile { display: flex; flex-direction: column; gap: 14px; }
.sa-tile .wp-block-image { margin: 0; }
.sa-tile .wp-block-image a { display: block; }
.sa-tile .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sa-ph); transition: opacity .25s ease; }
.sa-tile .wp-block-image a:hover img { opacity: .88; }
.sa-tile__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 4px; }
.sa-tile__meta p { margin: 0; }
.sa-tile__name { font-size: 15px; font-weight: 500; letter-spacing: .24em; }
.sa-tile__name a { text-decoration: none; }
.sa-tile__years { font-size: 14px; color: var(--sa-muted); }
.sa-tile p.sa-tile__text { font-size: 15px; line-height: 1.5; color: var(--sa-text); }

/* Home */
.sa-home-statement { padding: clamp(72px, 9vw, 150px) var(--sa-gutter); }
.sa-home-work { padding: 0 var(--sa-gutter) clamp(96px, 9vw, 150px); display: flex; flex-direction: column; gap: 88px; }
.sa-home-latest { border-top: 1px solid var(--sa-line); padding: clamp(72px, 7vw, 120px) var(--sa-gutter); }
.sa-home-latest .sa-two { gap: 40px 96px; align-items: end; max-width: 1280px; margin: 0 auto; }
.sa-home-latest .sa-nl { max-width: 580px; justify-self: end; }

/* Images */
.sa-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sa-hero-img { margin: 0; }
.sa-hero-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }

.sa-portrait-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sa-ratio-1 img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.sa-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.sa-rooms .wp-block-image { margin: 0; }
.sa-rooms img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #e7e5e0; }
.sa-prints-hero { margin: 0; width: 100%; aspect-ratio: 2400 / 1602; max-height: 760px; overflow: hidden; background: #e7e5e0; }
.sa-prints-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
/* All page heroes (start video, PROCESS, PRINTS) share one size: 2:1, never taller than the window on desktop, 16:9 on phones. */
@media (min-width: 761px) {
	.sa-hero-img img, .sa-prints-hero { aspect-ratio: auto; height: min(50vw, max(420px, calc(100svh - 138px))); max-height: none; }
}
@media (max-width: 760px) {
	.sa-hero-img img, .sa-prints-hero { aspect-ratio: 16 / 9; height: auto; max-height: none; }
}

/* Films grid (process) */
.sa-films { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; }
.sa-films--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px 40px; }
.sa-films .wp-block-shortcode, .sa-films > p { margin: 0; }
.sa-center-link { border-top: 1px solid var(--sa-line); margin-top: 24px; padding-top: 26px; text-align: center; font-size: 14px; letter-spacing: .08em; }

/* Lists and tables (about, prints, books) */
.sa-cv h2 { margin-bottom: 4px !important; }
.sa-cv ul { list-style: none; margin: 0; padding: 0; }
.sa-cv li { padding: 12px 0; border-top: 1px solid var(--sa-line); font-size: 15px; line-height: 1.5; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
.sa-cv li .sa-y { color: var(--sa-muted); }
.sa-cv li a { text-decoration: underline; text-decoration-color: var(--sa-line); }
.sa-cv li a:hover { text-decoration-color: var(--sa-ink); }
.sa-dl table, .sa-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sa-dl td, .sa-table td, .sa-table th { padding: 10px 0; border-top: 1px solid var(--sa-line); text-align: left; vertical-align: top; }
.sa-dl td:first-child { color: var(--sa-muted); width: 34%; padding-right: 24px; }
.sa-table th { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--sa-muted); border-top: 0; padding-bottom: 10px; }
.wp-block-table { margin: 0; }
.wp-block-table td, .wp-block-table th { border: 0; }
.wp-block-table thead { border-bottom: 0; }

/* Sizes bar (prints) */
.sa-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2px; border-top: 1px solid var(--sa-line); padding-top: 14px; }
.sa-sizes > .wp-block-group { display: flex; flex-direction: column; gap: 10px; }
.sa-sizes p { margin: 0; }
.sa-sizes .sa-size-name { font-size: 15px; }
.sa-sizes .sa-size-w { font-size: 13px; color: var(--sa-muted); margin-top: -8px; }
.sa-sizes .sa-size-ed { background: #efede8; padding: 14px 0; text-align: center; font-size: 15px; }

/* Placeholder */
.sa-placeholder {
	aspect-ratio: 16 / 9; background: #1d1d1c; color: #bdbbb5; display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; box-sizing: border-box;
}
.sa-placeholder p { margin: 0; font-size: 13px; }
.sa-placeholder p:first-child { letter-spacing: .24em; text-transform: uppercase; }

/* Prose pages (legal, text) */
.sa-textpage .sa-pagehead { padding-bottom: clamp(40px, 4vw, 64px); }
.sa-prose { width: 100%; max-width: calc(760px + 2 * var(--sa-gutter)); margin: 0 auto; padding: 0 var(--sa-gutter) clamp(96px, 9vw, 150px); box-sizing: border-box; overflow-wrap: break-word; }
.sa-prose .wp-block-post-content > * + * { margin-top: 1em; }
.sa-prose h2 { font-size: 20px; font-weight: 500; margin-top: 2em !important; }
.sa-prose h3 { font-size: 17px; font-weight: 500; margin-top: 1.6em !important; }
.sa-prose p, .sa-prose li { font-size: 16px; line-height: 1.7; color: var(--sa-text); }
.sa-prose a { text-decoration: underline; text-decoration-color: var(--sa-line); }

/* Books */
.sa-book .sa-dl td:first-child { width: 30%; }
.sa-book-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.sa-book-buy .price { font-size: 22px; }
.sa-book-buy .button, .sa-book-buy button[type="submit"] {
	height: 50px; padding: 0 30px !important; border: 0; border-radius: 0; background: var(--sa-ink) !important; color: #fff !important;
	font-family: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; line-height: 50px;
	display: inline-flex; align-items: center;
}
.sa-book-buy .button:hover { background: #fff !important; color: var(--sa-ink) !important; box-shadow: inset 0 0 0 1px var(--sa-ink); }
.sa-tax-note { font-size: 13px; color: var(--sa-muted); }

/* Contact */
.sa-contact-meta { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.sa-contact-meta .sa-mail a { font-size: clamp(20px, 2vw, 26px); }
.sa-contact-social { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }

/* ---------- Text helpers used in page content ---------- */
.sa-text-s { font-size: 16px; line-height: 1.6; color: var(--sa-text); max-width: 520px; }
.sa-text-m { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }
.sa-big-s { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; }
.sa-small-link { font-size: 14px; letter-spacing: .08em; margin-top: 8px !important; }
.sa-latest { max-width: 520px; }
.sa-book-title { font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; letter-spacing: .04em; }
.sa-book-text { font-size: 17px; line-height: 1.7; }
.sa-book .sa-stack { gap: 22px; }
.sa-cart-link { font-size: 14px; letter-spacing: .08em; }
.sa-mail { font-size: clamp(20px, 2vw, 26px); }
.sa-cv-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sa-cv-table td { padding: 12px 0; border-top: 1px solid var(--sa-line); vertical-align: top; text-align: left; }
.sa-cv-table td:first-child { width: 64px; color: var(--sa-muted); padding-right: 16px; }
.sa-cv-table a { text-decoration: underline; text-decoration-color: var(--sa-line); }
.sa-cv-table a:hover { text-decoration-color: var(--sa-ink); }
.sa-cv { margin-bottom: 40px; }
.sa-chapter-head .sa-stack { gap: 14px; }
.sa-sec .sa-two > .wp-block-image { margin: 0; }
.sa-btn--link { display: inline-flex; align-items: center; text-decoration: none !important; }
.sa-textpage .sa-h1 { text-transform: uppercase; }
.sa-book-buy .added_to_cart { font-size: 14px; letter-spacing: .08em; text-decoration: none; }
.sa-book-buy .added_to_cart::after { content: " →"; }
.sa-book-buy .button.loading { opacity: .6; }
.sa-book-buy .button.added { display: none !important; }

/* 1.0.1 – home tiles use the full width (3 columns on large screens), tile hover */
.sa-home-work .sa-tiles { max-width: none; }
.sa-tile:hover .sa-tile__name a, .sa-tile:focus-within .sa-tile__name a { text-decoration: underline; text-underline-offset: 5px; }
.sa-tile:hover .wp-block-image img { opacity: .88; }
.sa-home-latest .sa-two { max-width: none; }

/* EU legal guarantee notice: text link in the legal row, opens the full notice */
.sa-foot__guarantee, .sa-foot__guarantee .wc-gzd-legal-guarantee, .sa-foot__guarantee .wc-gzd-legal-guarantee-label { display: inline; margin: 0 !important; text-align: left; }
.sa-foot__guarantee a, .sa-foot__guarantee .wc-gzd-popover-trigger { color: #5f5e5a; font-size: 13px; text-decoration: none; cursor: pointer; }
.sa-foot__guarantee a:hover { text-decoration: underline; }
.wc-gzd-popover-caption { font-size: 13px; }

/* EU withdrawal link in the footer: same look as the other legal links */
.sa-foot__legal a.sa-foot__withdraw { color: #5f5e5a; }

/* Withdrawal form (Germanized) */
.sa-prose form .input-text, .sa-prose form input[type="text"], .sa-prose form input[type="email"], .sa-prose form textarea, .sa-prose form select {
	border: 1px solid var(--sa-field, #c9c6bf); border-radius: 0; padding: 12px 14px; font: inherit; font-size: 15px; background: #fff; color: var(--sa-ink); width: 100%; box-sizing: border-box;
}
.sa-prose form button.button, .sa-prose form button[type="submit"] {
	background: var(--sa-ink); color: #fff; border: 0; border-radius: 0; padding: 15px 22px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; width: 100%;
}


/* ---------- Shop: Books buy form, cart, checkout, order confirmation ---------- */
.sa-book-buy .sa-qty select {
	height: 50px; min-width: 64px; padding: 0 34px 0 16px; border: 1px solid #c9c6bf; border-radius: 0; background: #fff; font: inherit; font-size: 15px; color: var(--sa-ink);
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23151515' stroke-width='1.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.sa-book-buy .sa-buy-btn {
	height: 50px; padding: 0 34px; border: 0; border-radius: 0; background: var(--sa-ink); color: #fff;
	font-family: inherit; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.sa-book-buy .sa-buy-btn:hover, .sa-book-buy .sa-buy-btn:focus-visible { background: #fff !important; color: var(--sa-ink) !important; box-shadow: inset 0 0 0 1px var(--sa-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Wider column for cart and checkout (two-column layout on desktop) */
body.woocommerce-cart .sa-prose, body.woocommerce-checkout .sa-prose { max-width: calc(1120px + 2 * var(--sa-gutter)); }
.wc-block-cart, .wc-block-checkout { font-size: 15px; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--sa-ink) !important; color: #fff !important; border-radius: 0 !important; text-decoration: none !important;
	font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; min-height: 54px;
}

.wc-block-components-button__text { text-decoration: none !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select, .wc-block-components-textarea {
	border-radius: 0 !important; border-color: #c9c6bf !important; background: #fff !important;
}
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option, .wc-block-checkout__shipping-option .wc-block-components-radio-control__option { border-radius: 0 !important; }
.wc-block-components-radio-control--highlight-checked::after, .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked::after { border-radius: 0 !important; }
.wc-block-components-title.wc-block-components-title, .wc-block-components-checkout-step__title { font-size: 13px !important; font-weight: 500 !important; letter-spacing: .2em; text-transform: uppercase; }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper { border-color: var(--sa-line) !important; }
.wc-block-components-sidebar .wc-block-components-panel, .wp-block-woocommerce-checkout-order-summary-block { border-radius: 0 !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: 0; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 0; }
.wc-gzd-checkbox-placeholder, .wc-gzd-legal-checkbox-text, .wc-block-checkout__terms { font-size: 13px; color: var(--sa-muted); }
.wc-block-components-product-name { text-decoration: none !important; }
.woocommerce-order-received .sa-prose h2, .wc-block-order-confirmation-status h1 { font-weight: 400; }
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata { display: none; }
.wc-block-components-order-summary, .wc-block-components-order-summary .wc-block-components-order-summary__content, .wc-block-components-order-summary-item { background: transparent !important; }
.wp-block-woocommerce-checkout-order-summary-block { background: #fff; }
.wc-block-checkout .wc-gzd-legal-guarantee, .wc-block-checkout [class*="legal-guarantee"] { font-size: 13px; color: var(--sa-muted); }

/* Order confirmation */
.sa-prose--wide, body.woocommerce-order-received .sa-prose { max-width: calc(1120px + 2 * var(--sa-gutter)); }
.sa-order-confirmation .sa-pagehead h1, .sa-order-confirmation .wc-block-order-confirmation-status h1 { text-transform: uppercase; font-size: inherit; }
.sa-order-confirmation .wc-block-order-confirmation-status { text-align: center; }
.sa-order-confirmation .wc-block-order-confirmation-status p { font-size: 17px; color: var(--sa-text); margin-top: 18px; }
.sa-order-confirmation .wc-block-order-confirmation-summary { margin-bottom: 3em; }
.sa-order-confirmation .wc-block-order-confirmation-summary-list { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 32px; padding: 24px 0; border-top: 1px solid var(--sa-line); border-bottom: 1px solid var(--sa-line); margin: 0; }
.sa-order-confirmation .wc-block-order-confirmation-summary-list-item__key { font-size: 12px; font-weight: 400 !important; letter-spacing: .16em; text-transform: uppercase; color: var(--sa-muted); }
.sa-order-confirmation h2 { font-size: 13px !important; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin: 2.6em 0 1em !important; }
.sa-order-confirmation table, .sa-order-confirmation address, .sa-order-confirmation .wc-block-order-confirmation-address-wrapper address { border-radius: 0 !important; border-color: var(--sa-line) !important; background: #fff; }
.sa-order-confirmation .wc-block-order-confirmation-address-wrapper { gap: 32px; }
.sa-order-confirmation .wc-block-order-confirmation-totals table th, .sa-order-confirmation .wc-block-order-confirmation-totals table td { border-color: var(--sa-line) !important; font-weight: 400; }
.sa-order-confirmation .wc-block-order-confirmation-totals tfoot tr:last-child th, .sa-order-confirmation .wc-block-order-confirmation-totals tfoot tr:last-child td { font-weight: 500; }
.sa-order-note { margin-top: 3em !important; font-size: 15px; color: var(--sa-muted); }
.sa-order-confirmation .wc-block-order-confirmation-status h1 { font-size: clamp(32px, 3.4vw, 48px) !important; font-weight: 400; letter-spacing: .3em; padding-left: .3em; line-height: 1.2; margin: 0; }
.sa-order-confirmation .wc-block-order-confirmation-address-wrapper address { background: transparent; }
.sa-order-confirmation .wc-block-order-confirmation-shipping-address, .sa-order-confirmation .wc-block-order-confirmation-billing-address { background: #fff; border-radius: 0 !important; border-color: var(--sa-line) !important; }
/* Shipping rates table */
.sa-prose .sa-ship-table td:first-child { width: auto; color: var(--sa-ink); }
.sa-prose .sa-ship-table td:last-child { white-space: nowrap; text-align: right; vertical-align: top; padding-left: 16px; }
.sa-prose .sa-ship-table small { display: block; font-size: 13px; line-height: 1.5; color: var(--sa-muted); margin-top: 4px; }

/* Cart link in the header (only when the cart has items) */
.sa-carticon { display: none; }
.sa-nav .sa-cartlink { padding-left: 34px; border-left: 1px solid var(--sa-line); }
@media (max-width: 760px) {
	.sa-carticon { display: flex; align-items: center; justify-content: center; position: relative; width: 44px; height: 44px; color: var(--sa-ink); text-decoration: none !important; }
	.sa-carticon span { position: absolute; top: 5px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--sa-ink); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
}

/* Checkout: no express buttons, no PayPal "Pay later" banner, tidy summary */
.wc-block-components-express-payment, .wc-block-components-express-payment-continue-rule,
.wp-block-woocommerce-checkout-express-payment-block, .wp-block-woocommerce-cart-express-payment-block { display: none !important; }
.wc-block-checkout [data-pp-message], .wc-block-checkout .ppcp-messages, .wc-block-cart [data-pp-message], .wc-block-cart .ppcp-messages { display: none !important; }
.sa-prose .wc-block-components-product-name { margin: 0 !important; font-size: 15px; font-weight: 500; line-height: 1.4; }
.wc-block-components-order-summary-item__image { margin-top: 4px !important; }
.wc-gzd-small-business-info { font-size: 13px !important; line-height: 1.5 !important; color: var(--sa-muted); margin: 0 !important; padding: 0 16px 16px !important; }
.wc-gzd-small-business-info p, .wc-gzd-small-business-info .wc-gzd-additional-wrapper { margin: 0 !important; padding: 0 !important; font-size: inherit !important; }
/* reCAPTCHA badge hidden – the required notice is shown in the checkout text instead (Google allows this) */
.grecaptcha-badge { visibility: hidden !important; }
/* Order summary on phones: framed box with inner spacing like on desktop */
@media (max-width: 760px) {
	.wp-block-woocommerce-checkout-order-summary-block { border: 1px solid var(--sa-line); background: #fff; padding: 12px 16px 4px; margin-top: 8px; }
	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-order-summary { padding-left: 0 !important; padding-right: 0 !important; }
	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
	.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title { padding-left: 0 !important; padding-right: 0 !important; }
	.wp-block-woocommerce-checkout-order-summary-block .wc-gzd-small-business-info { padding: 0 0 14px !important; }
	.wc-block-components-order-summary-item__description { padding-left: 16px !important; }
}
/* Checkout: change quantity / empty cart */
.sa-cart-actions { margin: 0; display: flex; gap: 12px; justify-content: center; font-size: 13px; letter-spacing: .04em; color: var(--sa-muted); }
.sa-cart-actions a { color: var(--sa-muted); text-decoration: underline; text-decoration-color: var(--sa-line); text-underline-offset: 4px; }
.sa-cart-actions a:hover { color: var(--sa-ink); }

/* One hover for all black buttons: invert to white with a black outline */
.wp-element-button:hover, .wp-element-button:focus-visible,
.wc-block-components-button:not(.is-link):hover, .wc-block-components-button:not(.is-link):focus-visible,
.sa-prose form button.button:hover, .sa-prose form button[type="submit"]:hover {
	background: #fff !important; color: var(--sa-ink) !important; box-shadow: inset 0 0 0 1px var(--sa-ink);
}
.wp-element-button, .wc-block-components-button:not(.is-link), .sa-buy-btn, .sa-btn, .sa-prose form button[type="submit"] { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }

/* CUBES overview: closing statement centred under the matrices */
.sa-two.sa-two--end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; max-width: 900px; margin-left: auto; margin-right: auto; }
.sa-two--end .sa-big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; margin: 0; text-wrap: balance; }
.sa-two--end .sa-arrow-links { justify-content: center; }
