/*
Theme Name: R. Scott Horner
Theme URI: https://rscotthorner.com
Author: R. Scott Horner
Description: A quiet gallery-white theme for the R. Scott Horner studio and WooCommerce artwork store.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rsh
WC requires at least: 8.0
*/

:root {
  --ink: #161616;
  --muted: #5E5E5A;
  --ground: #FAFAF7;
  --panel: #F1F0EB;
  --line: #E4E3DE;
  --line-2: #D5D2C8;
  --sold: #B42318;
  --max: 1280px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--ink); color: var(--ground); padding: 10px 16px; width: auto; height: auto; clip: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.btn, .button, button.button, input[type=submit], .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--ground) !important; font: 500 15px/1 Inter, system-ui, sans-serif;
  cursor: pointer; text-decoration: none;
}
.btn:hover, .button:hover, input[type=submit]:hover, .wpcf7-submit:hover { background: #333; border-color: #333; color: var(--ground); }
.btn--ghost { background: transparent; color: var(--ink) !important; }
.btn--ghost:hover { background: var(--ink); color: var(--ground) !important; }
.link-arrow { font-size: 15px; font-weight: 500; }
.link-line { border-bottom: 1px solid var(--line-2); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; font-size: 15px; }
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.cart-link { display: flex; align-items: center; gap: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 28px; }

/* Artwork card */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 56px 36px; }
.art-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; }
.art-card { display: flex; flex-direction: column; gap: 16px; }
.art-card__frame { aspect-ratio: 1 / 1; display: flex; align-items: flex-end; justify-content: center; }
.art-card__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.art-card__meta { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.art-card__title { font-size: 16px; font-weight: 500; }
.art-card__line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; font-size: 15px; color: var(--muted); }
.art-card__series { font-size: 15px; color: var(--muted); }
.art-card__series strong { font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.status--sold { color: var(--sold); }
.status--sold::before { background: var(--sold); }

/* Home */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 48px; padding-bottom: 96px; }
.hero__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.hero__text h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.hero__text .lede { font-size: 18px; color: var(--muted); max-width: 440px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__figure { flex: 1.3 1 480px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__figure img { width: 100%; max-height: 640px; object-fit: contain; object-position: left bottom; }
.hero__figure figcaption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.hero__figure figcaption strong { color: var(--ink); font-weight: 500; }
.section { border-top: 1px solid var(--line); }
.section .wrap { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.section__head h2 { font-size: 32px; font-weight: 400; }
.band { background: var(--panel); }
.band .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: center; }
.band p { flex: 1 1 480px; max-width: 720px; font-size: 28px; line-height: 1.35; font-weight: 300; }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.cta p { font-size: 28px; font-weight: 300; }

/* Works */
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 32px; }
.works-head h1 { font-size: 56px; }
.works-head p { color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; padding: 20px 0; margin: 36px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); }
.pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.filters__selects { display: flex; flex-wrap: wrap; gap: 16px; margin-left: auto; }
.filters label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.filters select, .woocommerce-ordering select {
  min-height: 44px; padding: 0 12px; font: 14px Inter, system-ui, sans-serif; color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-2); border-radius: 0;
}
.empty { padding: 80px 0; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 56px 0 0; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); font-size: 14px; }
.pagination .current { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.works-main { padding-bottom: 96px; }

/* Single artwork */
.artwork { display: flex; flex-direction: column; gap: 96px; padding-top: 16px; padding-bottom: 96px; }
.artwork__top { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.artwork__media { flex: 1.4 1 520px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.artwork__main { background: transparent; display: flex; align-items: center; justify-content: center; }
.artwork__main img { max-height: 78vh; width: auto; object-fit: contain; }
.artwork__zoom { display: block; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(18, 18, 17, .97); display: none; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox.is-open { display: flex; }
.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox__figure { margin: 0; height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100% - 32px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox__count { color: #BDBBB4; font-size: 13px; letter-spacing: .1em; min-height: 18px; }
.lightbox button { position: absolute; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #F1F0EB; cursor: pointer; border-radius: 50%; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 8px 24px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }
.artwork__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.artwork__thumbs button { aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.artwork__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.artwork__thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.artwork__info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.artwork__info h1 { font-size: 48px; }
.artwork__heading { display: flex; flex-direction: column; gap: 16px; }
.artwork__intro { font-size: 20px; line-height: 1.5; font-weight: 300; color: #3A3A37; max-width: 30em; }
.artwork__intro p + p { margin-top: .75em; }
.artwork__details { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 14px 16px; font-size: 15px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.artwork__details dt { color: var(--muted); }
.artwork__details dd { margin: 0; }
.artwork__desc ul { margin: 0; padding-left: 18px; }
.artwork__desc a { border-bottom: 1px solid var(--line-2); }
.artwork__buy { display: flex; flex-direction: column; gap: 16px; }
.artwork__price { font-size: 28px; }
.artwork__buy form.cart { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.artwork__buy form.cart .quantity { display: none; }
.artwork__buy form.cart .single_add_to_cart_button { width: 100%; min-height: 56px; font-size: 16px; }
/* Square express pay (Apple Pay / Google Pay) under the main button */
#wc-square-digital-wallet { display: flex !important; flex-direction: column; gap: 10px; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; align-self: stretch; }
#wc-square-digital-wallet::before { content: "or pay with"; display: block; text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
#wc-square-digital-wallet > div { width: 100% !important; max-width: none !important; margin: 0 !important; }
#wc-square-digital-wallet .apple-pay-button, #wc-square-digital-wallet .gpay-card-info-container { width: 100% !important; min-width: 0 !important; height: 48px !important; min-height: 48px !important; }
.artwork__note { font-size: 14px; color: var(--muted); }
.sold-label { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--sold); }
.sold-label::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sold); }
.artwork__buy .btn { min-height: 56px; font-size: 16px; }
.artwork__more { border-top: 1px solid var(--line); padding-top: 64px; display: flex; flex-direction: column; gap: 32px; }
.artwork__more h2 { font-size: 28px; font-weight: 400; }

/* About */
.about { display: flex; flex-direction: column; gap: 96px; padding-top: 32px; padding-bottom: 96px; }
.about__top { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.about__photo { flex: 1 1 340px; max-width: 480px; }
.about__photo img { width: 100%; }
.about__text { flex: 1 1 460px; max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
.about__text h1 { font-size: 56px; line-height: 1.05; }
.about__body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: #3A3A37; }
.about__signature { width: 200px; }
.affiliations { border-top: 1px solid var(--line); padding-top: 64px; display: flex; flex-direction: column; gap: 36px; }
.affiliations ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.affiliations li { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.affiliations li a { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; }
.affiliations li img { max-width: 220px; width: auto; filter: brightness(0); opacity: .6; transition: filter .25s, opacity .25s; }
.affiliations li a:hover img, .affiliations li a:focus-visible img { filter: none; opacity: 1; }
.affiliations li span { font-size: 14px; color: var(--muted); }
.about__links { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; padding-top: 16px; }
.about__cta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; background: var(--panel); padding: 48px; }
.about__cta p { font-size: 24px; font-weight: 300; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 80px; align-items: flex-start; padding-top: 32px; padding-bottom: 120px; }
.contact__intro { flex: 1 1 340px; max-width: 440px; display: flex; flex-direction: column; gap: 24px; }
.contact__intro h1 { font-size: 48px; line-height: 1.08; }
.contact__intro p { font-size: 17px; color: var(--muted); }
.contact__side { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.contact__form { flex: 1.3 1 480px; background: #fff; border: 1px solid var(--line); padding: 40px; }
.wpcf7 form p { margin: 0 0 20px; }
.wpcf7 .wpcf7-inline-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 16px/1.5 Inter, system-ui, sans-serif; color: var(--ink);
  background: var(--ground); border: 1px solid var(--line-2); border-radius: 0;
}
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.wpcf7-not-valid-tip { color: var(--sold); font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); font-size: 14px; }

/* Generic pages, cart, checkout */
.page-main { padding-top: 32px; padding-bottom: 96px; }
.page-main > h1 { font-size: 48px; margin-bottom: 32px; }
.entry-content { max-width: 760px; font-size: 17px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content--wide { max-width: none; }

/* Page content made with the WordPress editor */
.entry-content:has(.wp-block-gallery, .wp-block-columns) { max-width: 1080px; }
.entry-content h2 { font-size: 28px; font-weight: 400; margin-top: 1.8em; }
.entry-content h3 { font-size: 19px; font-weight: 500; letter-spacing: 0; margin-top: 1.6em; }
.entry-content h2 + p, .entry-content h3 + p { margin-top: .4em; }
.entry-content .lead { font-size: 20px; line-height: 1.6; font-weight: 300; color: #3A3A37; }
.entry-content a { border-bottom: 1px solid var(--line-2); }
.entry-content figure { margin: 0; }
.entry-content .wp-block-columns { gap: 64px; margin-bottom: 0; }
.entry-content .wp-block-column > :first-child { margin-top: 0; }
.entry-content .wp-block-gallery { margin-top: 24px; gap: 16px; }
.entry-content .wp-block-image img { height: auto; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; }
.woocommerce-error { border-color: var(--sold); }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); background: #fff; font: 15px Inter, system-ui, sans-serif; }
/* One-of-a-kind items: quantity is always 1, so the cart's Update button does nothing */
.woocommerce-cart-form button[name="update_cart"] { display: none !important; }
.woocommerce-cart-form .product-quantity { display: none; }
.woocommerce-cart-form .product-thumbnail img { width: 120px; height: auto; }
.woocommerce-cart-form .product-remove a { font-size: 22px; line-height: 1; color: var(--muted); }
.woocommerce-cart-form .product-remove a:hover { color: var(--sold); }
.cart-collaterals .cart_totals { max-width: 520px; margin-left: auto; }
.woocommerce ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.woocommerce ul#shipping_method li { margin: 0 0 6px; }
.woocommerce ul#shipping_method input { margin-right: 8px; accent-color: var(--ink); }
.wc-proceed-to-checkout { display: flex; flex-direction: column; gap: 14px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 16px; }

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .site-nav { gap: 20px; }
  .works-head h1, .about__text h1 { font-size: 40px; }
  .artwork__info h1, .contact__intro h1 { font-size: 36px; }
  .band p, .cta p { font-size: 22px; }
  .filters__selects { margin-left: 0; }
  .contact__form { padding: 24px; }
  .about__cta { padding: 28px; }
}

/* ---------- Checkout ---------- */
.woocommerce-checkout .entry-content--wide { max-width: none; }
.woocommerce-checkout #wc-square-digital-wallet { max-width: 520px !important; margin: 0 0 8px !important; }
.woocommerce-checkout #wc-square-digital-wallet::before { content: none; display: none; }
.woocommerce-checkout #wc-square-wallet-divider { display: flex; justify-content: center; margin: 12px 0 0; font-size: 0; background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.woocommerce-checkout #wc-square-wallet-divider::before { content: "or fill in your details"; font-size: 13px; letter-spacing: .04em; color: var(--muted); background: var(--ground); padding: 0 14px; }

form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; }
form.woocommerce-checkout #customer_details, form.woocommerce-checkout .col2-set .col-1, form.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
form.woocommerce-checkout h3 { font-size: 20px; font-weight: 500; letter-spacing: 0; margin: 0 0 20px; }
form.woocommerce-checkout .col-2 { margin-top: 32px; }
form.woocommerce-checkout .form-row { margin: 0; padding: 0; }
form.woocommerce-checkout label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
form.woocommerce-checkout .required { color: var(--muted); text-decoration: none; border: 0; }
form.woocommerce-checkout .optional { font-size: 13px; }
form.woocommerce-checkout input.input-text, form.woocommerce-checkout textarea, form.woocommerce-checkout select {
  width: 100%; min-height: 48px; padding: 10px 14px; font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 0; box-sizing: border-box;
}
form.woocommerce-checkout textarea { min-height: 96px; }
form.woocommerce-checkout input.input-text:focus, form.woocommerce-checkout textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
form.woocommerce-checkout .woocommerce-invalid input.input-text { border-color: var(--sold); }
form.woocommerce-checkout .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; }
form.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 14px; color: var(--ink); }
form.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }

.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.woocommerce-billing-fields__field-wrapper > *, .woocommerce-shipping-fields__field-wrapper > * { grid-column: span 6; }
#billing_first_name_field, #billing_last_name_field, #shipping_first_name_field, #shipping_last_name_field, #billing_phone_field, #billing_email_field { grid-column: span 3; }
#billing_city_field, #billing_state_field, #billing_postcode_field, #shipping_city_field, #shipping_state_field, #shipping_postcode_field { grid-column: span 2; }
#billing_address_2_field label, #shipping_address_2_field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
#ship-to-different-address { font-size: 16px; font-weight: 400; }
#ship-to-different-address label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; cursor: pointer; }
#ship-to-different-address input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.woocommerce-shipping-fields .shipping_address { margin-top: 20px; }

#order_review_heading { margin: 0 0 20px; }
#order_review { background: #fff; border: 1px solid var(--line); padding: 28px; }
#order_review table.shop_table { border: 0; margin: 0 0 24px; font-size: 15px; }
#order_review table.shop_table th, #order_review table.shop_table td { padding: 12px 0; border-bottom: 1px solid var(--line); background: transparent; vertical-align: top; }
#order_review table.shop_table thead { display: none; }
#order_review table.shop_table td.product-total, #order_review table.shop_table tfoot td { text-align: right; }
#order_review .order-total th, #order_review .order-total td { font-size: 18px; font-weight: 600; border-bottom: 0; }
#order_review ul#shipping_method { text-align: left; }
#order_review ul#shipping_method li { display: flex; align-items: baseline; gap: 8px; }
#order_review ul#shipping_method li input { margin: 0; flex: none; }
#order_review ul#shipping_method li label { display: inline; margin: 0; color: var(--ink); font-size: 15px; }
#payment { background: transparent; border-radius: 0; }
#payment ul.payment_methods { list-style: none; margin: 0 0 20px; padding: 0; border: 0; }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods li > input { margin-right: 8px; accent-color: var(--ink); }
#payment ul.payment_methods li > label { display: inline; color: var(--ink); font-size: 16px; }
#payment ul.payment_methods li img { display: inline-block; max-height: 22px; width: auto; vertical-align: middle; margin-left: 4px; }
#payment .payment_box { margin: 14px 0 0; padding: 18px; background: var(--panel); border-radius: 0; font-size: 14px; }
#payment .payment_box::before { display: none; }
#payment .place-order { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); line-height: 1.5; }
#place_order { width: 100%; min-height: 56px; font-size: 16px; }

@media (min-width: 960px) {
  form.woocommerce-checkout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
  form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
  form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
  form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
}
@media (max-width: 560px) {
  #billing_first_name_field, #billing_last_name_field, #shipping_first_name_field, #shipping_last_name_field, #billing_phone_field, #billing_email_field { grid-column: span 6; }
  #billing_city_field, #shipping_city_field { grid-column: span 6; }
  #billing_state_field, #billing_postcode_field, #shipping_state_field, #shipping_postcode_field { grid-column: span 3; }
  #order_review { padding: 20px; }
}

/* ---------- Order received ---------- */
.woocommerce-order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.woocommerce-order > * { margin: 0 !important; }
.woocommerce-order .woocommerce-thankyou-order-received { font-size: 22px; line-height: 1.5; font-weight: 300; color: #3A3A37; max-width: 36em; }
.woocommerce-order-overview { list-style: none; padding: 24px 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.woocommerce-order-overview li { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 0 !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.woocommerce-order-details table.shop_table tfoot tr:last-child th, .woocommerce-order-details table.shop_table tfoot tr:last-child td { font-size: 18px; font-weight: 600; }
.woocommerce-order > p:not(.woocommerce-thankyou-order-received):not(.rsh-thanks-next), .woocommerce-order .woocommerce-bacs-bank-details { background: var(--panel); padding: 18px 20px; font-size: 15px; }
.woocommerce-order-details, .woocommerce-customer-details { background: #fff; border: 1px solid var(--line); padding: 28px; }
.woocommerce-order h2 { font-size: 20px; font-weight: 500; letter-spacing: 0; margin: 0 0 16px; }
.woocommerce-order-details table.shop_table { border: 0; font-size: 15px; margin: 0; }
.woocommerce-order-details table.shop_table thead { display: none; }
.woocommerce-order-details table.shop_table th, .woocommerce-order-details table.shop_table td { padding: 12px 0; border-bottom: 1px solid var(--line); background: transparent; }
.woocommerce-order-details table.shop_table td:last-child, .woocommerce-order-details table.shop_table tfoot td { text-align: right; }
.woocommerce-order-details table.shop_table tfoot tr:last-child th, .woocommerce-order-details table.shop_table tfoot tr:last-child td { border-bottom: 0; }
.woocommerce-order-details .product-name a { border-bottom: 1px solid var(--line-2); }
.woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.woocommerce-customer-details .woocommerce-column { width: auto !important; float: none !important; }
.woocommerce-customer-details .woocommerce-column__title { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; border: 0; padding: 0; }
.woocommerce-customer-details address p { margin: 0; }
.rsh-thanks-next { margin-top: 8px !important; }
@media (min-width: 960px) {
  .woocommerce-order { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
  .woocommerce-order > .woocommerce-thankyou-order-received, .woocommerce-order > .woocommerce-order-overview, .woocommerce-order > p, .woocommerce-order > .rsh-thanks-next { grid-column: 1 / -1; }
  .woocommerce-order-details { grid-column: 1; }
  .woocommerce-customer-details { grid-column: 2; }
}
