/* Cart, checkout, account and plain content pages. */

/* Same width as the header and footer, instead of Blocksy's full-bleed container */
body.ath.woocommerce-cart main > .ct-container-full,
body.ath.woocommerce-checkout main > .ct-container-full,
body.ath.woocommerce-account main > .ct-container-full {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
body.ath.woocommerce-cart .entry-content > .alignwide,
body.ath.woocommerce-checkout .entry-content > .alignwide {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

/* Compact page title instead of a tall hero */
body.ath .hero-section[data-type="type-1"] {
  padding: clamp(18px, 3vw, 30px) 0 clamp(6px, 1.5vw, 14px);
  min-height: 0;
}
body.ath .hero-section[data-type="type-1"] .entry-header {
  min-height: 0;
  padding: 0;
}
body.ath .hero-section[data-type="type-1"] .page-title {
  margin: 0;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.1;
}

/* Plain content pages (about, policies): comfortable reading width */
body.ath.page:not(.woocommerce-page) .entry-content {
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.7;
}
body.ath.page:not(.woocommerce-page) .entry-content h2 {
  margin-top: 1.8em;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}
body.ath.page:not(.woocommerce-page) .hero-section[data-type="type-1"] {
  text-align: center;
}

/* Cart and checkout blocks */
body.ath .wc-block-cart-items .wc-block-components-product-name,
body.ath .wc-block-components-order-summary .wc-block-components-product-name,
body.ath .wc-block-components-product-name {
  color: var(--ath-ink);
  font-family: var(--ath-font-display);
  font-size: 1.2rem !important;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
body.ath .wc-block-components-product-name:hover {
  color: var(--ath-olive-dark);
}
body.ath .wc-block-components-product-metadata,
body.ath .wc-block-components-product-details {
  color: var(--ath-muted);
  font-size: var(--ath-text-sm);
}
body.ath .wc-block-components-button:not(.is-link) {
  min-height: 52px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body.ath .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.ath .wc-block-checkout__sidebar {
  background: transparent;
}
body.ath .wc-block-components-order-summary,
body.ath .wp-block-woocommerce-checkout-order-summary-block {
  border-radius: 4px;
}

/* Checkout: the trust lines sit next to the button, so the footer band is redundant here */
body.ath.woocommerce-checkout .ath-promises {
  display: none;
}
.ath-checkout-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: var(--ath-text-xs);
  line-height: 1.5;
  color: var(--ath-muted);
}
.ath-checkout-note .ath-icon {
  flex: none;
  margin-top: 1px;
  color: var(--ath-olive-dark);
}
.ath-checkout-note a {
  color: var(--ath-ink);
}

/* Empty cart: calm message and a clear way back, no sad-face icon */
body.ath .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  display: none;
}
body.ath .wp-block-woocommerce-empty-cart-block {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
body.ath .wc-block-cart__empty-cart__title {
  margin: clamp(24px, 5vw, 56px) 0 8px;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
}
body.ath .wp-block-woocommerce-empty-cart-block .wp-block-button__link,
body.ath .wp-block-woocommerce-empty-cart-block a.wp-element-button {
  border-radius: 4px;
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link {
  text-decoration: none;
  color: var(--ath-ink);
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  margin-top: 10px;
  font: 500 1.05rem/1.25 var(--ath-font-display);
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
  margin-top: 6px;
  color: var(--ath-muted);
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price .ath-price-included {
  display: none;
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 800px) {
  body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  font-family: var(--ath-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ath-ink);
  text-decoration: none;
}
body.ath .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
  display: none;
}

/* 404 */
.ath-notfound {
  width: min(100% - 32px, 640px);
  margin: clamp(40px, 8vw, 96px) auto;
  text-align: center;
}
.ath-notfound h1 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  line-height: 1.1;
}
.ath-notfound p {
  color: var(--ath-muted);
}
.ath-notfound-search {
  margin: 26px 0 22px;
}

/* Checkout: our Visa and Mastercard marks replace the plugin's four-brand picture */
.ath-pay-marks--checkout {
  margin: 0 0 0 8px;
}

/* Contact form (shortcode [ath_contact_form] from arttohang-core) */
.ath-contact {
  margin: 2.2em 0 0;
  padding: clamp(18px, 3vw, 28px);
  background: var(--ath-paper);
  border: 1px solid var(--ath-line);
  border-radius: 4px;
}
body.ath .ath-contact h2,
body.ath.page:not(.woocommerce-page) .entry-content .ath-contact h2 {
  margin: 0 0 14px;
}
.ath-contact__form {
  display: grid;
  gap: 16px;
}
.ath-contact__field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--ath-text-sm);
  font-weight: 600;
  color: var(--ath-ink);
}
.ath-contact__hint {
  font-weight: 400;
  color: var(--ath-muted);
}
.ath-contact__field input,
.ath-contact__field select,
.ath-contact__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: 400 1rem/1.4 var(--ath-font-ui);
  color: var(--ath-ink);
  background: var(--ath-white);
  border: 1px solid #b9b2a7;
  border-radius: 4px;
}
.ath-contact__field textarea {
  min-height: 150px;
  resize: vertical;
}
.ath-contact__field input:focus-visible,
.ath-contact__field select:focus-visible,
.ath-contact__field textarea:focus-visible {
  outline: 2px solid var(--ath-olive-dark);
  outline-offset: 1px;
  border-color: var(--ath-olive-dark);
}
.ath-contact__field.has-error input,
.ath-contact__field.has-error textarea {
  border-color: var(--ath-danger);
}
.ath-contact__error {
  margin: 6px 0 0;
  font-size: var(--ath-text-sm);
  color: var(--ath-danger);
}
.ath-contact__notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  font-size: var(--ath-text-sm);
  line-height: 1.5;
  border-radius: 4px;
}
.ath-contact__notice--ok {
  background: #eef3e8;
  border: 1px solid var(--ath-olive);
}
.ath-contact__notice--error {
  background: #fbeeee;
  border: 1px solid var(--ath-danger);
  color: var(--ath-danger);
}
.ath-contact__submit {
  justify-self: start;
  min-height: 52px;
  padding: 0 28px;
  font: 600 1rem/1 var(--ath-font-ui);
  color: var(--ath-white);
  background: var(--ath-olive-dark);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.ath-contact__submit:hover {
  background: var(--ath-olive);
}
.ath-contact__submit:focus-visible {
  outline: 2px solid var(--ath-ink);
  outline-offset: 2px;
}
.ath-contact__privacy {
  margin: 0;
  font-size: var(--ath-text-xs);
  line-height: 1.5;
  color: var(--ath-muted);
}
.ath-contact__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
