/**
 * WordPress layer: styles for markup the static design didn't have
 * (generic pages, editor content, header links, pagination, forms).
 * Loaded after main.css, which is the original design stylesheet.
 */

.sr-only,
.kh-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Spam-trap inputs: form styles must not give them a real size or they cause sideways scroll on phones. */
input.sr-only {
  left: 0;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* Header icon links (bag, account) behave like the icon buttons. */
.tools .tools-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: inherit;
  text-decoration: none;
}
.tools .tools-link:hover,
.tools .tools-link:focus-visible {
  color: var(--rose);
}

/* Simple page header for pages without a banner section. */
.page-header {
  padding-bottom: 0;
  text-align: center;
}
.page-header .breadcrumb {
  justify-content: center;
  margin-bottom: 18px;
}
.page-header .section-title {
  margin-bottom: 8px;
}
.not-found {
  padding-block: 90px;
}

/* Editor content (policies, blog posts, text blocks). */
.page-content .entry-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
}
.page-content.is-wide .entry-content {
  max-width: 1240px;
}
.entry-content > * + * {
  margin-top: 1em;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  line-height: 1.2;
}
.entry-content a:not(.button) {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content img {
  max-width: 100%;
  height: auto;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.3em;
}

/* Pagination (blog and shop). */
.nav-links,
.woocommerce-pagination ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.nav-links .page-numbers,
.woocommerce-pagination .page-numbers li > * {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: inherit;
  text-decoration: none;
}
.nav-links .page-numbers.current,
.woocommerce-pagination .page-numbers .current,
.nav-links a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:hover {
  border-color: var(--rose);
  background: #fcf0ed;
  color: var(--rose);
}

/* Dialog extras. */
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.dialog-actions .button {
  flex: 1 1 160px;
  justify-content: center;
}
.cart-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
[aria-busy="true"] {
  opacity: .6;
  pointer-events: none;
}

/* Form status messages. */
#form-status:not(:empty),
#newsletter-status:not(:empty) {
  margin-top: 14px;
  color: var(--rose);
}

/* ---------- Form feedback and the maths human check ---------- */
.field-error {
  display: block;
  margin-top: 4px;
  color: #a03030;
  font-size: 14px;
  font-weight: 400;
}
.form-grid [aria-invalid="true"],
.newsletter [aria-invalid="true"] {
  border-color: #a03030 !important;
}
#form-status.is-error,
#newsletter-status.is-error {
  color: #a03030;
}
#form-status.is-success,
#newsletter-status.is-success {
  color: #1a6b3c;
}
.newsletter #newsletter-status.is-success {
  margin-top: 14px;
  font-weight: 500;
}
