/* Extend the existing Wormatia palette/Archivo type, not a second design system. */
.wormatia-swatch-source { display: none !important; }
.wormatia-swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin: .125rem 0 .25rem; }
.wormatia-swatches .wormatia-swatch {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; min-height: 48px; margin: 0; padding: .65rem .85rem;
  /* The existing theme's global button colours/borders use !important. */
  border: 1px solid var(--w-line-strong, #777) !important; border-radius: var(--wormatia-radius-sm, 4px) !important;
  background-color: var(--w-surface, #fff) !important; color: var(--w-text, #1d1b19) !important;
  font: inherit; font-size: .9rem; font-stretch: 100%; font-weight: 700; letter-spacing: normal; line-height: 1.2; text-transform: none;
  box-shadow: none; transition: border-color .15s ease, background-color .15s ease;
}
.wormatia-swatches .wormatia-swatch:hover:not(:disabled) {
  background-color: var(--w-surface-2, #f1ede6) !important;
  border-color: var(--w-heading, #111) !important; transform: none; box-shadow: none;
}
.wormatia-swatches .wormatia-swatch[aria-pressed="true"],
.wormatia-swatches .wormatia-swatch[aria-pressed="true"]:hover:not(:disabled) {
  background-color: var(--wormatia-red, #e2001a) !important; border-color: var(--wormatia-red, #e2001a) !important; color: #fff !important;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
}
.wormatia-swatches .wormatia-swatch:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; transform: none; box-shadow: none; }
.wormatia-swatch:focus-visible, .wormatia-size-guide-open:focus-visible, .wormatia-size-guide-close:focus-visible {
  outline: 3px solid var(--w-text, #1d1b19); outline-offset: 3px;
}
.wormatia-size-guide-open { display: inline-block; margin: .25rem 0 .75rem; text-decoration: underline; }
.wormatia-size-guide-dialog {
  width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 1.5rem; border: 1px solid var(--w-line-strong, #777);
  border-radius: var(--wormatia-radius, 6px); background: var(--w-surface, #fff); color: var(--w-text, #1d1b19);
  font-family: var(--wormatia-font, sans-serif); overflow: auto;
}
.wormatia-size-guide-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.wormatia-size-guide-dialog h2 { margin: 0 0 1rem; color: var(--w-heading, #111); }
.wormatia-size-guide-close { margin-bottom: 1rem; }
.wormatia-size-guide-content { overflow-x: auto; }
.wormatia-size-guide-content table { width: 100%; border-collapse: collapse; }
.wormatia-size-guide-content th, .wormatia-size-guide-content td { border: 1px solid var(--w-line, #ccc); padding: .6rem; text-align: left; }
.wormatia-size-guide-content caption { text-align: left; margin-bottom: .75rem; }
.wormatia-shipping-progress { margin: 1rem 0; padding: 1rem; background: var(--w-surface-2, #f4f1ec); border-left: 3px solid var(--wormatia-red, #e2001a); }
.wormatia-shipping-progress[hidden] { display: none; }
.wormatia-shipping-progress p { margin: 0 0 .5rem; font-weight: 700; }
.wormatia-shipping-progress progress { display: block; width: 100%; height: .5rem; margin: .75rem 0; accent-color: var(--wormatia-red, #e2001a); }
.wormatia-shipping-progress small { display: block; color: var(--w-muted, #5c5750); font-size: .8rem; }
.wormatia-checkout-focus .site-header .main-navigation,
.wormatia-checkout-focus .site-header .site-header-cart,
.wormatia-checkout-focus .site-header .wormatia-search,
.wormatia-checkout-focus .site-header .wormatia-header-account,
.wormatia-checkout-focus .site-header .wormatia-theme-toggle,
.wormatia-checkout-focus .site-header .secondary-navigation,
.wormatia-checkout-focus .storefront-handheld-footer-bar,
.wormatia-checkout-focus .site-footer .footer-widgets { display: none !important; }
.wormatia-checkout-focus .storefront-breadcrumb { display: none; }
.wormatia-checkout-focus .site-content { padding-top: 2rem; }
.wormatia-checkout-focus .storefront-primary-navigation .col-full { justify-content: center; }
.wormatia-checkout-focus .storefront-primary-navigation .site-branding { margin-right: 0 !important; padding: .5rem 0; align-self: center; }
.wormatia-checkout-focus .site-header .custom-logo-link img,
.wormatia-checkout-focus .site-header .site-logo-link img,
.wormatia-checkout-focus .site-header .site-logo-anchor img { height: 60px; margin-bottom: 0; }
.wormatia-checkout-focus .site-footer { padding-top: 1.5rem; }
.wormatia-checkout-focus .site-footer .secondary-navigation { display: block; float: none; width: auto; margin-top: 1rem; }
.wormatia-checkout-focus .site-footer .secondary-navigation .menu { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; }
.wormatia-checkout-focus .site-footer .secondary-navigation .menu a { display: inline-block; padding: .5rem 0; }
.wormatia-checkout-return { margin: 0 0 1.5rem; }
.wormatia-checkout-return a { text-decoration: underline; }
.wormatia-checkout-focus form.checkout { display: grid; gap: 2rem; align-items: start; }
.wormatia-checkout-focus form.checkout > * { grid-column: 1 / -1; }
.wormatia-checkout-focus form.checkout > wc-order-attribution-inputs { display: none; }
.wormatia-checkout-focus form.checkout #customer_details,
.wormatia-checkout-focus form.checkout #order_review { width: auto; float: none; margin: 0; min-width: 0; }
.wormatia-checkout-focus #customer_details .col-1,
.wormatia-checkout-focus #customer_details .col-2 { float: none; width: 100%; margin: 0 0 1.5rem; }
.wormatia-checkout-focus #order_review .product-name { overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .wormatia-checkout-focus form.checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .wormatia-checkout-focus form.checkout > #customer_details { grid-column: 1; }
  .wormatia-checkout-focus form.checkout > #order_review { grid-column: 2; }
}
@media (max-width: 600px) {
  .wormatia-checkout-focus #content .entry-content { padding: 1rem; }
  .wormatia-checkout-focus form.checkout #order_review { padding: 1rem; }
  .wormatia-checkout-focus #order_review table.shop_table { table-layout: fixed; width: 100%; }
  .wormatia-checkout-focus #order_review table.shop_table th.product-name { width: 60%; }
  .wormatia-checkout-focus #order_review table.shop_table th.product-total { width: 40%; }
  .wormatia-checkout-focus #order_review table.shop_table th { overflow-wrap: anywhere; letter-spacing: normal; font-size: .7rem; }
  .wormatia-checkout-focus #order_review table.shop_table td { padding: .65rem .5rem; }
  .wormatia-checkout-focus #order_review .product-total,
  .wormatia-checkout-focus #order_review table.shop_table tfoot td { text-align: right; }
  .wormatia-checkout-focus #order_review .amount { white-space: nowrap; }
}
