/* ==========================================================================
   Pryme Research — WooCommerce screens
   Checkout, order received, and the account endpoints (orders, addresses,
   account details, lost password). Everything else on the storefront is the
   theme's own markup; these screens are WooCommerce's, rendered through the
   main-page section, so they are styled here in the design system instead of
   with WooCommerce's stylesheets (which are switched off in inc/setup.php).

   Scoped to .woocommerce, the wrapper every WooCommerce shortcode prints.
   ========================================================================== */

.woocommerce {
  --wc-gap: var(--space-md);
  font-size: var(--size-sm);
  line-height: var(--leading-normal);
}

.woocommerce :where(h2, h3) {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

.woocommerce h2 { font-size: var(--size-lg); }
.woocommerce h3 { font-size: var(--size-md); margin-bottom: var(--space-sm); }

.woocommerce a:not(.btn, .button) {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.2em;
}

.woocommerce a:not(.btn, .button):hover {
  text-decoration-color: var(--ink);
}

/* --- Buttons ------------------------------------------------------------ */

.woocommerce :is(.button, button[type='submit'], input[type='submit']) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0 var(--space-lg);
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: var(--font-text);
  font-size: var(--size-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.woocommerce :is(.button, button[type='submit'], input[type='submit']):hover {
  background: #000;
}

.woocommerce :is(.button, button)[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The one button that matters on the page takes the full width. */
.woocommerce #place_order {
  width: 100%;
  min-height: 3.5rem;
  font-size: var(--size-base);
  font-weight: 600;
}

/* --- Fields --------------------------------------------------------------- */

.woocommerce form .form-row {
  display: grid;
  gap: var(--space-3xs);
  margin: 0 0 var(--space-sm);
}

.woocommerce form .form-row label {
  font-size: var(--size-sm);
  color: var(--ink-soft);
}

.woocommerce form .form-row .required {
  color: var(--signal-stop);
  text-decoration: none;
}

.woocommerce :is(input.input-text, textarea, select),
.woocommerce .select2-container .select2-selection--single {
  width: 100%;
  min-height: 3.125rem;
  padding: var(--space-2xs) var(--space-md);
  background: var(--paper-sunk);
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font: inherit;
  color: var(--ink);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.woocommerce textarea {
  min-height: 6rem;
  padding-block: var(--space-xs);
  resize: vertical;
}

.woocommerce :is(input.input-text, textarea, select):hover {
  border-color: var(--rule-strong);
}

.woocommerce :is(input.input-text, textarea, select):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0;
  background: #fff;
  border-color: var(--peptide-deep);
}

.woocommerce .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  height: auto;
}

.woocommerce .select2-container .select2-selection__rendered {
  padding: 0 !important;
  color: var(--ink) !important;
  line-height: inherit !important;
}

.woocommerce .select2-container .select2-selection__arrow {
  top: 50% !important;
  right: var(--space-sm) !important;
  transform: translateY(-50%);
}

.woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) {
  border-color: var(--signal-stop);
}

.woocommerce input[type='checkbox'],
.woocommerce input[type='radio'] {
  accent-color: var(--ink);
  width: 1.1rem;
  height: 1.1rem;
}

/* Name pairs sit side by side from tablet up, as on every other form. */
@media (min-width: 40rem) {
  .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-sm);
  }

  .woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) .form-row-wide {
    grid-column: 1 / -1;
  }
}

/* --- Notices -------------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
  display: none;
}

:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: var(--radius-small);
  background: var(--paper-sunk);
  font-size: var(--size-sm);
}

.woocommerce-error { border-left-color: var(--signal-stop); }
.woocommerce-message { border-left-color: var(--signal-ok); }
.woocommerce-info { border-left-color: var(--ink-faint); }

:is(.woocommerce-error, .woocommerce-message, .woocommerce-info) li + li {
  margin-top: var(--space-3xs);
}

:is(.woocommerce-message, .woocommerce-info) .button {
  float: right;
  min-height: 2.25rem;
  margin-left: var(--space-sm);
  padding-inline: var(--space-md);
}

/* --- Checkout ------------------------------------------------------------- */

.woocommerce form.checkout_coupon,
.woocommerce form.login {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
}

.woocommerce form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  align-items: end;
}

.woocommerce form.checkout_coupon p:first-child {
  flex-basis: 100%;
}

.woocommerce form.checkout_coupon .form-row {
  margin: 0;
}

.woocommerce form.checkout_coupon .form-row-first {
  flex: 1 1 14rem;
}

.woocommerce #ship-to-different-address {
  font-size: var(--size-base);
}

.woocommerce #ship-to-different-address label {
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
  color: var(--ink);
  cursor: pointer;
}

/* Order table — the order summary on checkout and on order received. */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-sm);
}

.woocommerce table.shop_table :is(th, td) {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.woocommerce table.shop_table :is(th, td):last-child {
  text-align: right;
}

.woocommerce table.shop_table thead th {
  font-family: var(--font-data);
  font-size: var(--size-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.woocommerce table.shop_table .product-quantity {
  color: var(--ink-soft);
  font-weight: 400;
}

.woocommerce table.shop_table tfoot .order-total :is(th, td) {
  border-bottom: 0;
  padding-top: var(--space-sm);
  font-size: var(--size-base);
  font-weight: 600;
}

.woocommerce table.shop_table del {
  color: var(--ink-faint);
  margin-right: var(--space-3xs);
}

.woocommerce ul#shipping_method {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul#shipping_method li {
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
  justify-content: flex-end;
}

.woocommerce ul#shipping_method li + li {
  margin-top: var(--space-3xs);
}

/* Payment methods. */
.woocommerce #payment {
  margin-top: var(--space-md);
}

.woocommerce #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-2xs);
}

.woocommerce #payment ul.payment_methods > li {
  padding: var(--space-sm) var(--space-md);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
}

.woocommerce #payment ul.payment_methods > li:has(input:checked) {
  border-color: var(--ink);
}

.woocommerce #payment ul.payment_methods > li > label {
  margin-left: var(--space-2xs);
  font-weight: 500;
  cursor: pointer;
}

.woocommerce #payment .payment_box {
  margin-top: var(--space-2xs);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.woocommerce #payment .payment_box p {
  margin: 0;
}

.woocommerce .woocommerce-privacy-policy-text,
.woocommerce .woocommerce-terms-and-conditions-wrapper {
  font-size: var(--size-xs);
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

/* The research declaration (inc/checkout.php): one field like the others and a
   small, plain confirmation line, so it reads as part of the form rather than
   a notice of its own. */
.checkout-attest {
  display: grid;
  gap: var(--space-sm);
}

.checkout-attest__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--ink-soft);
  font-size: var(--size-xs);
  line-height: var(--leading-normal);
  cursor: pointer;
}

.checkout-attest__check input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--peptide-deep);
}

/* Spinner overlay WooCommerce puts on the form while it recalculates. */
.woocommerce .blockUI.blockOverlay {
  background: rgb(255 255 255 / 60%) !important;
  border-radius: var(--radius-surface);
}

/* --- Checkout layout (woocommerce/checkout/form-checkout.php) -----------------
   Shopify's one-page checkout in Pryme's design. From a laptop up: the form
   on a white left half, the order summary on a sunk right half that runs to
   the window's edge, each half's content kept to a reading width and meeting
   in the middle. Below that, one column with the summary folded into a bar
   at the top. The header and footer are the checkout's own
   (snippets/checkout-chrome.php), aligned to the same two halves. */

:root {
  --co-half: 36rem;
  --co-pad: var(--gutter);
  --co-line: color-mix(in srgb, var(--ink) 16%, #fff);
}

.co-header {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}

.co-header__inner,
.co-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, calc(var(--co-half) * 2));
  margin-inline: auto;
  padding: var(--space-sm) var(--co-pad);
}

.co-header__logo {
  display: inline-flex;
}

.co-header__cart {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: calc(var(--space-2xs) * -1);
  color: var(--peptide-deep);
  border-radius: 50%;
}

.co-header__cart:hover {
  background: var(--paper-sunk);
}

.co-footer {
  border-top: 1px solid var(--rule);
  background: #fff;
}

.co-footer__inner {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-md) var(--space-lg);
}

.co-footer__legal {
  margin: 0;
  max-width: 60rem;
  color: var(--ink-faint);
  font-size: var(--size-xs);
  line-height: var(--leading-normal);
}

.co-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-xs);
}

.co-footer__links a {
  color: var(--peptide-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The thank-you page and notices sit in an ordinary column. */
.co-page > .woocommerce {
  width: min(100%, calc(var(--co-half) * 2));
  margin-inline: auto;
  padding: var(--space-lg) var(--co-pad) var(--space-xl);
}

.co-page > .woocommerce:has(.co) {
  width: 100%;
  padding: 0;
}

.co-page > .woocommerce:has(.co) > .woocommerce-notices-wrapper:not(:empty) {
  width: min(100%, calc(var(--co-half) * 2));
  margin: var(--space-md) auto 0;
  padding-inline: var(--co-pad);
}

.woocommerce .co {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.woocommerce .co > .woocommerce-NoticeGroup {
  padding: var(--space-md) var(--co-pad) 0;
}

.co__main {
  padding: var(--space-md) var(--co-pad) var(--space-xl);
}

/* The summary: a bar that opens on a phone. */
.co__summary {
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule);
}

.co-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--co-pad);
  background: none;
  border: 0;
  color: var(--peptide-deep);
  font: inherit;
  font-size: var(--size-sm);
  cursor: pointer;
}

.woocommerce .co .co-toggle,
.woocommerce .co .co-toggle:hover {
  min-height: 0;
  background: none;
  border-radius: 0;
  color: var(--peptide-deep);
  font-weight: 400;
}

.co-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

.co-toggle__label svg {
  transition: transform var(--dur-fast) var(--ease-out);
}

.co-toggle[aria-expanded='true'] .co-toggle__label svg {
  transform: rotate(180deg);
}

.co-toggle[aria-expanded='true'] .co-toggle__show,
.co-toggle[aria-expanded='false'] .co-toggle__hide {
  display: none;
}

.co-toggle__total {
  color: var(--ink);
  font-size: var(--size-base);
  font-weight: 600;
}

.co__summary-body {
  position: relative;
  display: none;
  flex-direction: column;
  padding: var(--space-xs) var(--co-pad) var(--space-lg);
}

.co--summary-open .co__summary-body {
  display: flex;
}

/* Lines, then the discount code, then the totals, as on Shopify. The lines
   and totals are one fragment WooCommerce swaps whole, and the code field sits
   outside it so a refresh does not clear it: the fragment's own boxes step
   aside so the three can be ordered. */
.co__summary-body #order_review,
.co__summary-body .co-review {
  display: contents;
}

.co-lines { order: 1; }
.co-discount { order: 2; }
.co-discount__notice { order: 3; }
.co-totals { order: 4; }

@media (min-width: 64rem) {
  /* The two halves' grounds run to the window's edges. */
  .co-page:has(.co) {
    background: linear-gradient(to right, #fff 50%, var(--paper-sunk) 50%);
  }

  .woocommerce .co {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 70vh;
  }

  .woocommerce .co > .woocommerce-NoticeGroup {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: min(100%, var(--co-half));
    padding: var(--space-lg) var(--space-xl) 0 var(--co-pad);
  }

  .co__main {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: min(100%, var(--co-half));
    padding: var(--space-lg) var(--space-xl) 5rem var(--co-pad);
  }

  .co__summary {
    grid-column: 2;
    grid-row: 1 / -1;
    border-bottom: 0;
    border-left: 1px solid var(--rule-strong);
  }

  .woocommerce .co .co-toggle {
    display: none;
  }

  .co__summary-body {
    display: flex;
    position: sticky;
    top: 0;
    width: min(100%, var(--co-half));
    padding: var(--space-xl) var(--co-pad) var(--space-xl) var(--space-xl);
  }
}

/* Sections. */
.co-section + .co-section,
.co__main > .co-section {
  margin-top: var(--space-lg);
}

.co-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.co-section__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--size-md);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.co-section__aside {
  color: var(--peptide-deep);
  font-size: var(--size-sm);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.co-section__note {
  margin: calc(var(--space-2xs) * -1) 0 var(--space-xs);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

/* Fields: a six-column grid (halves and thirds), labels inside the field. */
.woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-xs);
}

.woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) .form-row {
  grid-column: 1 / -1;
}

.woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) .form-row-first {
  grid-column: 1 / span 3;
}

.woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) .form-row-last {
  grid-column: 4 / span 3;
}

.woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) .form-row-third {
  grid-column: span 2;
}

/* On a phone: the city on its own row, state and ZIP side by side. */
@media (max-width: 34rem) {
  .woocommerce form.co :is(.co-fields, .woocommerce-shipping-fields__field-wrapper) .form-row-third {
    grid-column: span 3;
  }

  .woocommerce form.co :is(#billing_city_field, #shipping_city_field) {
    grid-column: 1 / -1;
  }
}

.woocommerce form.co .form-row {
  position: relative;
  display: block;
  margin: 0;
}

.woocommerce form.co :is(input.input-text, select, textarea) {
  min-height: 3.25rem;
  padding: 0.95rem 0.9rem;
  background-color: #fff;
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  font-size: var(--size-sm);
  line-height: 1.3;
}

.woocommerce form.co :is(input.input-text, textarea)::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.woocommerce form.co :is(input.input-text, select, textarea):hover {
  border-color: color-mix(in srgb, var(--ink) 32%, #fff);
}

.woocommerce form.co :is(input.input-text, select, textarea):focus-visible {
  outline: 0;
  border-color: var(--peptide-deep);
  box-shadow: 0 0 0 1px var(--peptide-deep);
}

/* The label proper: hidden while the placeholder says the same, then small at
   the top of the field once there is a value. A select always has one. */
.woocommerce form.co .form-row > label {
  position: absolute;
  z-index: 1;
  top: 0.45rem;
  left: 0.95rem;
  right: 0.95rem;
  overflow: hidden;
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.woocommerce form.co .form-row > label :is(.required, .optional) {
  display: none;
}

.woocommerce form.co .form-row:has(:is(input.input-text, textarea):not(:placeholder-shown)) > label,
.woocommerce form.co .form-row:has(select) > label {
  opacity: 1;
}

.woocommerce form.co .form-row:has(:is(input.input-text, textarea):not(:placeholder-shown)) :is(input.input-text, textarea),
.woocommerce form.co .form-row select {
  padding-top: 1.4rem;
  padding-bottom: 0.5rem;
}

/* Room for the arrow, and a long state name ends in an ellipsis under it. */
.woocommerce form.co .form-row select,
.woocommerce form.co select {
  appearance: none;
  padding-right: 2.25rem;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2352525b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

/* A store that ships to one country shows it as text: drawn as a fixed field. */
.woocommerce form.co .form-row .woocommerce-input-wrapper > strong {
  display: flex;
  align-items: flex-end;
  min-height: 3.25rem;
  padding: 1.4rem 0.9rem 0.5rem;
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  background: var(--paper-sunk);
  font-size: var(--size-sm);
  font-weight: 400;
}

.woocommerce form.co .form-row:has(.woocommerce-input-wrapper > strong) > label {
  opacity: 1;
}

/* The site's own dropdown (pryme.js, initSelects) in a checkout field: the
   trigger drawn as the field, the label floating in it like the others. */
.woocommerce form.co .form-row .select {
  display: flex;
  width: 100%;
}

.woocommerce form.co .form-row .select__button {
  min-height: 3.25rem;
  padding: 1.4rem 2.5rem 0.5rem 0.9rem;
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  background: #fff;
}

.woocommerce form.co .form-row .select__button:hover {
  border-color: color-mix(in srgb, var(--ink) 32%, #fff);
}

.woocommerce form.co .form-row .select__button:focus-visible,
.woocommerce form.co .form-row .select.is-open .select__button {
  outline: 0;
  border-color: var(--peptide-deep);
  box-shadow: 0 0 0 1px var(--peptide-deep);
}

.woocommerce form.co .form-row .select__mark {
  right: 0.8rem;
}

/* Before the script runs: the native select, with this mark instead of the
   checkout's own drawn arrow, so there is only one. */
.woocommerce form.co .form-row .select select {
  width: 100%;
  background-image: none;
}

.woocommerce form.co .form-row .select__list {
  left: 0;
  border-color: var(--co-line);
  border-radius: var(--radius-small);
}

.woocommerce form.co .form-row.woocommerce-invalid .select__button,
.woocommerce form.co .form-row.woocommerce-invalid :is(input.input-text, select) {
  border-color: var(--signal-stop);
  box-shadow: 0 0 0 1px var(--signal-stop);
}

/* Ship elsewhere, and the order note, under the address. */
.woocommerce form.co .woocommerce-shipping-fields,
.woocommerce form.co .woocommerce-additional-fields {
  margin-top: var(--space-sm);
}

.woocommerce form.co #ship-to-different-address {
  margin: 0 0 var(--space-xs);
  font-family: inherit;
  font-size: var(--size-sm);
  font-weight: 400;
}

.woocommerce form.co .woocommerce-additional-fields > h3 {
  display: none;
}

/* Choices: shipping rates and payment methods, as one bordered group. */
.co-choices,
.woocommerce form.co #payment ul.payment_methods {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  background: #fff;
  overflow: hidden;
}

.co-choice,
.woocommerce form.co #payment ul.payment_methods > li {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.co-choice + .co-choice,
.woocommerce form.co #payment ul.payment_methods > li + li {
  border-top: 1px solid var(--co-line);
}

.co-choice:has(input:checked),
.woocommerce form.co #payment ul.payment_methods > li:has(> input:checked) {
  background: color-mix(in srgb, var(--peptide-deep) 5%, #fff);
}

/* The selected choice's outline, drawn over its contents so the payment
   method's fields box (which has its own ground) sits inside it too. */
.co-choice:has(input:checked)::after,
.woocommerce form.co #payment ul.payment_methods > li:has(> input:checked)::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid var(--peptide-deep);
  border-radius: inherit;
  pointer-events: none;
}

.co-choice:first-child,
.woocommerce form.co #payment ul.payment_methods > li:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.co-choice:last-child,
.woocommerce form.co #payment ul.payment_methods > li:last-child {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.co-choice > input,
.woocommerce form.co #payment ul.payment_methods > li > input {
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  margin: 0;
  accent-color: var(--peptide-deep);
}

.co-choice > label,
.woocommerce form.co #payment ul.payment_methods > li > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: 0;
  padding: 1rem 1rem 1rem 2.75rem;
  color: var(--ink);
  font-size: var(--size-sm);
  font-weight: 500;
  cursor: pointer;
}

.co-choice__price {
  font-weight: 500;
}

.co-shipping__empty {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-small);
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.woocommerce form.co #payment {
  margin: 0;
  background: none;
}

/* Card marks grouped at the right of the method, not spread across it. */
.woocommerce form.co #payment ul.payment_methods > li > label {
  justify-content: flex-start;
  gap: var(--space-3xs);
}

.woocommerce form.co #payment ul.payment_methods > li > label img {
  max-height: 1.5rem;
  margin: 0;
}

.woocommerce form.co #payment ul.payment_methods > li > label img:first-of-type {
  margin-left: auto;
}

/* The selected method's fields, on a sunk ground under it. */
.woocommerce form.co #payment .payment_box {
  margin: 0;
  padding: var(--space-sm) 1rem 1rem;
  border-top: 1px solid var(--co-line);
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.woocommerce form.co #payment .payment_box > p:first-child {
  margin-bottom: var(--space-xs);
}

/* TagadaPay's card fields come with inline styles: brought into line. */
.woocommerce form.co #tgdgw-inline-fields .form-row {
  margin: 0 0 var(--space-xs);
}

.woocommerce form.co #tgdgw-inline-fields .form-row > label {
  position: static;
  display: block;
  margin-bottom: var(--space-3xs);
  color: var(--ink-soft);
  font-size: var(--size-xs);
  white-space: normal;
  opacity: 1;
}

.woocommerce form.co #tgdgw-inline-fields input {
  width: 100% !important;
  min-height: 3.25rem;
  padding: 0.95rem 0.9rem !important;
  background: #fff;
  border: 1px solid var(--co-line) !important;
  border-radius: var(--radius-small);
  color: var(--ink);
  font: inherit;
  font-size: var(--size-sm);
}

.woocommerce form.co #tgdgw-inline-fields input:focus-visible {
  outline: 0;
  border-color: var(--peptide-deep) !important;
  box-shadow: 0 0 0 1px var(--peptide-deep);
}

.woocommerce form.co #payment .form-row.place-order {
  margin-top: var(--space-lg);
  padding: 0;
}

.woocommerce form.co #place_order {
  min-height: 3.75rem;
  font-size: var(--size-base);
}

/* Summary: lines, discount, totals. */
.co-lines {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.co-line {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
}

.co-line__media {
  position: relative;
  width: 4rem;
  height: 4rem;
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--radius-small);
  background: var(--line-color, #fff);
}

.co-line__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.co-line__qty {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--ink-soft);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.co-line__name {
  display: block;
  font-size: var(--size-sm);
  font-weight: 500;
  line-height: 1.3;
}

.co-line__meta {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: var(--size-xs);
}

.co-line__meta :is(dl, dt, dd, p) {
  display: inline;
  margin: 0;
}

.co-line__price {
  font-size: var(--size-sm);
}

.co-discount {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.woocommerce form.co .co-discount input.input-text {
  flex: 1;
  min-width: 0;
}

.woocommerce form.co .co-discount__apply,
.woocommerce form.co .co-discount__apply:hover {
  flex: none;
  min-height: 3.25rem;
  padding: 0 var(--space-md);
  background: var(--paper);
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  color: var(--ink-faint);
  font: inherit;
  font-size: var(--size-sm);
  font-weight: 500;
  cursor: pointer;
}

.woocommerce form.co .co-discount__apply.is-ready {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.co-discount__notice:empty {
  display: none;
}

.co-discount__notice > * {
  margin: calc(var(--space-xs) * -1) 0 var(--space-md);
}

.co-totals {
  display: grid;
  gap: var(--space-2xs);
  margin: 0;
  font-size: var(--size-sm);
}

.co-totals__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.co-totals__row :is(dt, dd) {
  margin: 0;
}

.co-totals__pending {
  color: var(--ink-soft);
}

.co-totals__code {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--rule);
  font-size: var(--size-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.co-totals__row--discount .woocommerce-remove-coupon {
  margin-left: var(--space-2xs);
  color: var(--ink-soft);
  font-size: var(--size-xs);
}

.co-totals__row--total {
  align-items: baseline;
  margin-top: var(--space-xs);
  font-size: var(--size-md);
  font-weight: 600;
}

.co-totals__currency {
  margin-right: var(--space-2xs);
  color: var(--ink-faint);
  font-size: var(--size-xs);
  font-weight: 400;
}

/* Product images in the summary: the whole vial, fitted inside its box with a
   little air, never cropped (the uncropped "medium" size, not WooCommerce's
   square-cut thumbnail). */
.co-line__media img {
  box-sizing: border-box;
  padding: 0.2rem;
  object-fit: contain;
  object-position: center;
  filter: var(--silo-shadow-sm);
}

/* Tablet and phone: one column, kept to a comfortable measure and centred,
   rather than fields stretched across a tablet's full width. */
@media (max-width: 63.99rem) {
  .co__main,
  .co__summary-body,
  .co-toggle {
    width: min(100%, 40rem);
    margin-inline: auto;
  }

  .woocommerce .co > .woocommerce-NoticeGroup {
    width: min(100%, 40rem);
    margin-inline: auto;
  }

  .co__summary-body {
    padding-top: var(--space-2xs);
  }
}

/* --- Thank-you page (woocommerce/checkout/thankyou.php) --------------------- */

.co--thanks .co__main > * + * {
  margin-top: var(--space-md);
}

.co-thanks__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.co-thanks__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--peptide-deep);
  border-radius: 50%;
  color: var(--peptide-deep);
}

.co-thanks__mark--failed {
  border-color: var(--signal-stop);
  color: var(--signal-stop);
}

.co-thanks__number {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.co-thanks__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

.co-panel {
  padding: var(--space-md);
  border: 1px solid var(--co-line);
  border-radius: var(--radius-small);
  background: #fff;
}

.co-panel--alert {
  border-color: color-mix(in srgb, var(--signal-stop) 40%, #fff);
}

.co-panel--note {
  padding-block: var(--space-sm);
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.co-panel--note > :first-child { margin-top: 0; }
.co-panel--note > :last-child { margin-bottom: 0; }

.co .co-panel__title {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--size-base);
  font-weight: 600;
}

.co-panel__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--size-sm);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.co-panel__text strong {
  color: var(--ink);
  font-weight: 500;
}

.co-panel__actions {
  margin: var(--space-sm) 0 0;
}

.co-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-sm);
}

.co .co-details__label {
  margin: 0 0 var(--space-3xs);
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.3;
  font-size: var(--size-sm);
  font-weight: 600;
}

.co-details :is(p, address) {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--size-sm);
  line-height: var(--leading-normal);
  overflow-wrap: anywhere;
}

.woocommerce .co-details address {
  padding: 0;
  border: 0;
  border-radius: 0;
  font-style: normal;
}

.co-details__soft {
  color: var(--ink-faint);
}

.co-thanks__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-xs);
}

.co-thanks__help {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--size-sm);
}

.co-thanks__help a {
  color: var(--peptide-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 34rem) {
  .co-thanks__foot {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
}

/* --- Order received ------------------------------------------------------- */

.woocommerce-order .woocommerce-thankyou-order-received {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-md);
}

.woocommerce ul.order_details {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--space-sm);
}

.woocommerce ul.order_details li {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
  font-family: var(--font-data);
  font-size: var(--size-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}

.woocommerce ul.order_details li strong {
  display: block;
  margin-top: var(--space-3xs);
  font-family: var(--font-text);
  font-size: var(--size-base);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.woocommerce :is(.woocommerce-order-details, .woocommerce-customer-details) {
  margin-top: var(--space-lg);
}

.woocommerce address {
  font-style: normal;
  line-height: var(--leading-normal);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
}

/* --- Account endpoints ---------------------------------------------------- */

@media (min-width: 60rem) {
  .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

@media (min-width: 60rem) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: column;
    margin: 0;
  }
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-control);
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover {
  background: var(--paper-sunk);
  color: var(--ink) !important;
}

.woocommerce-MyAccount-navigation .is-active a {
  background: var(--ink);
  color: #fff !important;
}

.woocommerce-MyAccount-content > * + * {
  margin-top: var(--space-md);
}

.woocommerce .woocommerce-Addresses {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 40rem) {
  .woocommerce .woocommerce-Addresses {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2xs);
}

.woocommerce fieldset {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-surface);
}

.woocommerce fieldset legend {
  padding: 0 var(--space-2xs);
  font-weight: 600;
}

/* Tables collapse to stacked rows on a phone. */
@media (max-width: 40rem) {
  .woocommerce table.shop_table_responsive thead {
    display: none;
  }

  .woocommerce table.shop_table_responsive tr {
    display: block;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--rule);
  }

  .woocommerce table.shop_table_responsive :is(th, td) {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-3xs) 0;
    border: 0;
    text-align: right;
  }

  .woocommerce table.shop_table_responsive td::before {
    content: attr(data-title);
    color: var(--ink-soft);
    text-align: left;
  }
}

.woocommerce .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
