/* ==========================================================================
   WordPress / WooCommerce glue for the J.C. Newman design.
   Only states and elements the static design did not have: notices, Woo form
   rows, payment methods, CF7 messages, mini cart, embeds, editor placeholders.
   Sizes in em, same scale as the design.
   ========================================================================== */

:root {
  --jcn-error: #a4262c;
  --jcn-success: #3d5a2a;
}

/* ------------------------- Accessibility ------------------------- */

.skip-link:focus {
  position: fixed;
  top: 0.75em;
  left: 0.75em;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75em 1em;
  clip: auto;
  background: var(--color-dark);
  color: var(--color-cream);
  font-weight: 700;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ------------------------- Plain pages (no sections) ------------------------- */

.jcn-page {
  padding: 9em var(--gutter) 8em;
}

.jcn-page__title {
  max-width: 14em;
  margin-bottom: 0.5em;
  font-size: 5em;
  line-height: 0.9;
}

.jcn-prose {
  max-width: 45em;
  font-size: 1.125em;
  line-height: 1.5;
  font-weight: 500;
}

.jcn-prose > * + * { margin-top: 1em; }
.jcn-prose h2 { margin-top: 1.5em; font-family: var(--font-serif); font-weight: 400; font-size: 2em; line-height: 1.05; }
.jcn-prose h3 { margin-top: 1.25em; font-size: 1.25em; font-weight: 700; }
.jcn-prose a { text-decoration: underline; }
.jcn-prose ul, .jcn-prose ol { padding-left: 1.25em; }
.jcn-prose ul { list-style: disc; }
.jcn-prose ol { list-style: decimal; }
.jcn-prose img { max-width: 100%; height: auto; }

/* News article: core block output */
.gd-prose > p:first-child { margin-bottom: 0.8182em; font-size: 1.375em; line-height: 1.3636; }
.gd-prose blockquote p { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.gd-prose blockquote cite { display: block; margin-top: 0.5em; font-family: var(--font-sans); font-size: 0.35em; font-style: normal; font-weight: 700; text-transform: uppercase; }
.gd-prose .wp-element-caption,
.gd-prose figcaption { font-size: 0.75em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-gold); }
.gd-prose ul, .gd-prose ol { margin: 0 0 1em; padding-left: 1.25em; font-size: 1.125em; font-weight: 500; line-height: 1.5; }
.gd-prose ul { list-style: disc; }
.gd-prose ol { list-style: decimal; }
.gd-prose a { text-decoration: underline; }

/* Rich-text fields rendered inside design elements */
.brand-hero__text p,
.line__desc p,
.prod__desc p,
.about__copy p + p,
.gc-row__text p { margin: 0; }
.brand-hero__text p + p,
.line__desc p + p,
.prod__desc p + p,
.gc-row__text p + p { margin-top: 0.75em; }
.gc-jobs__note a,
.gc-row__text a,
.pacc a { text-decoration: underline; }
.pacc__body > * + * { margin-top: 0.75em; }

/* ------------------------- WooCommerce notices ------------------------- */

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

.jcn-notices { padding: 0 var(--gutter); }
.co-page .jcn-notices,
.login__panel .jcn-notices,
.jcn-account .jcn-notices { padding: 0; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em 1.5em;
  margin: 0 0 1em;
  padding: 1em 1.25em;
  list-style: none;
  border: 1px solid var(--color-rule);
  border-left-width: 3px;
  background: var(--color-leaf);
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.4;
}

.woocommerce-error { border-left-color: var(--jcn-error); flex-direction: column; align-items: flex-start; }
.woocommerce-message { border-left-color: var(--jcn-success); }
.woocommerce-info { border-left-color: var(--color-gold); }
.woocommerce-error li + li { margin-top: 0.25em; }

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-message a.button {
  order: 2;
  font-size: 0.857em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a { text-decoration: underline; }

/* ------------------------- Product page ------------------------- */

.popt { position: relative; }
.popt__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.popt:has(.popt__input:checked) { border-color: var(--color-dark); box-shadow: inset 0 0 0 1px var(--color-dark); }
.popt:has(.popt__input:focus-visible) { outline: 2px solid var(--color-dark); outline-offset: 2px; }
.popt.is--soldout span:first-of-type { text-decoration: line-through; opacity: 0.55; }
.popt.is--na { opacity: 0.35; cursor: not-allowed; }
.popt.is--na .popt__input { cursor: not-allowed; }

.prod__status { min-height: 1.2em; margin-top: -0.5em; font-size: 0.75em; font-weight: 700; text-transform: uppercase; color: var(--color-gold-muted); }
.prod__status:empty { display: none; }
.prod__add:disabled,
.btn-dark:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-dark[aria-busy="true"] { cursor: progress; }
.btn-dark.is--soldout { opacity: 0.6; }

.qty__value::-webkit-outer-spin-button,
.qty__value::-webkit-inner-spin-button,
.co-qty__value::-webkit-outer-spin-button,
.co-qty__value::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.qty__value,
.co-qty__value { -moz-appearance: textfield; appearance: textfield; text-align: center; }

.co-qty__value {
  width: 2.5em;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: inherit;
}

/* ------------------------- Cart ------------------------- */

.has-js .co-update { display: none; }
.co-update { margin-top: 1em; }

[data-cart-page][aria-busy="true"] .co-cols { opacity: 0.6; pointer-events: none; transition: opacity 0.2s ease; }

.co-row.is--discount span:last-child { color: var(--jcn-success); }
.co-row__remove { margin-left: 0.35em; text-decoration: none; opacity: 0.6; }
.co-row__remove:hover { opacity: 1; }

.jcn-progress { height: 3px; margin-top: -0.25em; background: var(--color-line); overflow: hidden; }
.jcn-progress span { display: block; height: 100%; background: var(--color-dark); transition: width 0.6s var(--ease-osmo); }

.co-summary .wc-proceed-to-checkout:empty { display: none; }
.co-cross { margin-top: 6em; }
.co-promo .co-input { flex: 1; }

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

.co-before:empty { display: none; }
.co-before { margin-bottom: 1.5em; }
.co-before .checkout_coupon,
.co-before .woocommerce-form-login { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75em; margin-bottom: 1em; padding: 1.25em; border: 1px solid var(--color-rule); }
.co-before .checkout_coupon p:first-child,
.co-before .woocommerce-form-login > p:first-child { flex-basis: 100%; font-size: 0.875em; }

.jcn-fields,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.woocommerce-account-fields .create-account {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875em 0.75em;
}

.jcn-fields > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row,
.woocommerce-additional-fields__field-wrapper > .form-row,
.woocommerce-address-fields__field-wrapper > .form-row { grid-column: 1 / -1; margin: 0; }
.jcn-fields > .form-row-first,
.woocommerce-shipping-fields__field-wrapper > .form-row-first,
.woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1; }
.jcn-fields > .form-row-last,
.woocommerce-shipping-fields__field-wrapper > .form-row-last,
.woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 2; }

.form-row.co-field { display: flex; flex-direction: column; gap: 0.375em; }
.form-row .woocommerce-input-wrapper { display: block; }
.form-row .required { color: var(--color-gold-muted); text-decoration: none; border: 0; }
.form-row .optional { font-weight: 500; text-transform: none; opacity: 0.7; }
.form-row label.co-check { display: flex; align-items: flex-start; gap: 0.7692em; font-size: 0.8125em; line-height: 1.3077; font-weight: 500; text-transform: none; cursor: pointer; }
.form-row label.co-check .required { order: 3; }

textarea.co-input,
.form-row textarea { min-height: 7em; padding-top: 0.75em; padding-bottom: 0.75em; resize: vertical; }

.form-row .co-input.is--select,
select.co-input { appearance: none; padding-right: 2.25em; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23050001' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9em center; }

.woocommerce-invalid .co-input,
.woocommerce-invalid select,
.co-input[aria-invalid="true"] { border-color: var(--jcn-error); }
.woocommerce-invalid label.co-check { color: var(--jcn-error); }
.checkout-inline-error-message,
.woocommerce-error-message { margin-top: 0.25em; font-size: 0.75em; font-weight: 700; color: var(--jcn-error); }

.form-row.woocommerce-validated .co-input { border-color: var(--color-rule); }

/* Ship to a different address / order notes */
.jcn-shipping-set h3,
.woocommerce-additional-fields h3 { margin: 0 0 0.75em; font-size: 0.75em; font-weight: 700; text-transform: uppercase; }
#ship-to-different-address label { display: flex; align-items: center; gap: 0.75em; cursor: pointer; }
.jcn-shipping-set .shipping_address { margin-bottom: 1.5em; }
.woocommerce-additional-fields { margin-top: 0.5em; }

/* Delivery options */
.jcn-delivery { display: flex; flex-direction: column; gap: 0.375em; }
.co-opt__price { flex: none; }
.co-opt:has(input[type="hidden"]) { border-color: var(--color-dark); box-shadow: inset 0 0 0 1px var(--color-dark); cursor: default; }

/* Payment methods (WooCommerce markup) */
.is--payment #payment { display: flex; flex-direction: column; gap: 1.5em; }
.wc_payment_methods { display: flex; flex-direction: column; gap: 0.375em; margin: 0; padding: 0; list-style: none; }
.wc_payment_method { border: 1px solid var(--color-rule); }
.wc_payment_method:has(> input:checked) { border-color: var(--color-dark); box-shadow: inset 0 0 0 1px var(--color-dark); }
.wc_payment_method > input { position: absolute; opacity: 0; pointer-events: none; }
.wc_payment_method > label { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 4.6667em; padding: 0 1.1667em; font-size: 0.75em; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.wc_payment_method > label img { max-height: 1.75em; width: auto; }
.wc_payment_method > input:focus-visible + label { outline: 2px solid var(--color-dark); outline-offset: -4px; }
.payment_box { padding: 0 1.1667em 1.1667em; font-size: 0.875em; font-weight: 500; line-height: 1.4; }
.payment_box p { margin: 0; }
.payment_box fieldset { margin: 0.75em 0 0; padding: 0; border: 0; }
.payment_box .form-row { margin-top: 0.75em; }
.payment_box input.input-text,
.payment_box .wc-stripe-elements-field { width: 100%; min-height: 2.75em; padding: 0 0.75em; border: 1px solid var(--color-rule); background: #fff7e2; }

.place-order { display: flex; flex-direction: column; gap: 0.75em; }
.woocommerce-terms-and-conditions-wrapper { font-size: 0.8125em; font-weight: 500; line-height: 1.35; }
.woocommerce-terms-and-conditions-wrapper a { text-decoration: underline; }
.woocommerce-terms-and-conditions-wrapper .form-row { margin-top: 0.75em; }
.woocommerce-terms-and-conditions { max-height: 16em; overflow: auto; margin-bottom: 0.75em; padding: 1em; border: 1px solid var(--color-rule); }

#place_order {
  width: 100%;
  min-height: 4em;
  border: 0;
  background: var(--color-dark);
  color: var(--color-cream);
  font: inherit;
  font-size: 0.875em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-osmo);
}
#place_order:hover { background: var(--color-dark-hover); }

.blockUI.blockOverlay { background: rgba(255, 240, 205, 0.6) !important; }

/* Order summary rows from plugins */
.co-row .woocommerce-remove-coupon { margin-left: 0.35em; text-decoration: underline; font-size: 0.857em; }
.co-row.is--discount .amount { color: var(--jcn-success); }

/* Thank you */
.jcn-order-items { margin: 1.5em 0; }
.jcn-thankyou-extra:empty { display: none; }
.jcn-thankyou-extra { max-width: 40em; margin-top: 2em; font-size: 0.875em; }
.jcn-thankyou-extra h2 { margin-bottom: 0.5em; font-size: 1em; font-weight: 700; text-transform: uppercase; }

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

.jcn-account__nav { display: flex; flex-wrap: wrap; gap: 0.375em; margin-bottom: 2.5em; }
.jcn-account__content { max-width: 60em; font-size: 0.9375em; font-weight: 500; line-height: 1.45; }
.jcn-account__content a { text-decoration: underline; }
.jcn-account__content h2,
.jcn-account__content h3 { margin: 1.5em 0 0.5em; font-family: var(--font-serif); font-size: 2em; font-weight: 400; line-height: 1; }
.jcn-account__content table { width: 100%; border-collapse: collapse; }
.jcn-account__content th,
.jcn-account__content td { padding: 0.75em 0.5em; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.jcn-account__content th { font-size: 0.8em; font-weight: 700; text-transform: uppercase; }
.jcn-account__content .button,
.jcn-account__content button[type="submit"] { display: inline-flex; align-items: center; min-height: 2.75em; padding: 0 1.25em; border: 0; background: var(--color-dark); color: var(--color-cream); font: inherit; font-size: 0.8em; font-weight: 700; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.jcn-account__content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2em; }
.jcn-account__content fieldset { margin: 1.5em 0; padding: 0; border: 0; }
.jcn-account__content legend { margin-bottom: 0.75em; font-weight: 700; text-transform: uppercase; }
.jcn-account__content form .form-row { margin-bottom: 0.875em; }
.jcn-account__content .woocommerce-pagination { display: flex; gap: 0.5em; margin-top: 1em; }
.woocommerce-ResetPassword,
.woocommerce-form-login.is--lost { max-width: 30em; }

/* ------------------------- Contact Form 7 ------------------------- */

.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-not-valid { border-color: var(--jcn-error) !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 0.35em; font-size: 0.75em; font-weight: 700; color: var(--jcn-error); }
.wpcf7-response-output { margin: 1em 0 0; padding: 0.875em 1em; border: 1px solid var(--color-rule); font-size: 0.875em; font-weight: 500; }
.wpcf7-response-output:empty { display: none; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-color: var(--jcn-error); color: var(--jcn-error); }
.wpcf7 form.sent .wpcf7-response-output { display: none; }
.wpcf7-spinner { display: none; width: 1em; height: 1em; margin-left: 0.75em; border: 2px solid var(--color-rule); border-top-color: var(--color-dark); border-radius: 50%; animation: jcn-spin 0.8s linear infinite; vertical-align: middle; }
.wpcf7 form.submitting .wpcf7-spinner { display: inline-block; }
.wpcf7 form.submitting button[type="submit"] { opacity: 0.6; pointer-events: none; }
.wpcf7-list-item { margin: 0; }
@keyframes jcn-spin { to { transform: rotate(360deg); } }

.gb-form[data-cf7-wrap] > .gb-form__title { margin-bottom: 1em; }
.gc-dialog__body .form__success { padding: 1em 0; }

/* ------------------------- Maps ------------------------- */

.gb-map.has--embed,
.gc-ph.is--map,
.gc-ph.is--image { position: relative; padding: 0; overflow: hidden; }
.gb-map.has--embed iframe,
.gc-ph.is--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(0.25) saturate(0.85); }
.gb-map.has--embed .gb-map__link { position: absolute; left: 1em; bottom: 1em; z-index: 2; padding: 0.75em 1em; background: var(--color-dark); color: var(--color-cream); }
.gc-ph.is--image img { width: 100%; height: 100%; object-fit: cover; }

.gb-map.is--live { display: block; padding: 0; background: var(--color-leaf); }
.gb-map.is--live .leaflet-tooltip { font-family: var(--font-sans); font-size: 0.75em; font-weight: 700; border-radius: 0; box-shadow: none; border: 1px solid var(--color-dark); }
.gb-loc:focus { outline: 2px solid var(--color-dark); outline-offset: -2px; }

/* ------------------------- Misc design additions ------------------------- */

.gd-person__photo.has--image { padding: 0; overflow: hidden; }
.gd-person__photo.has--image img { width: 100%; height: 100%; object-fit: cover; }

.ga-search__tabs { display: flex; flex-wrap: wrap; gap: 0.375em; }
.ga-search__empty { margin-top: 2em; font-size: 1.125em; font-weight: 500; }
.ga-search__pages,
.store__pages { margin-top: 2.5em; }

.store__empty:not([hidden]) { display: block; }

.header__nav a { white-space: nowrap; }

/* Editor-only hint for empty blocks */
.jcn-placeholder {
  margin: 1em var(--gutter, 0.75em);
  padding: 2em;
  border: 1px dashed var(--color-rule);
  background: var(--color-leaf);
  color: var(--color-gold-muted);
  font-family: var(--font-sans);
  font-size: 0.875em;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

@media screen and (max-width: 767px) {
  .jcn-fields,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-address-fields__field-wrapper,
  .jcn-account__content .woocommerce-Addresses { grid-template-columns: minmax(0, 1fr); }
  .jcn-fields > .form-row-first,
  .jcn-fields > .form-row-last,
  .woocommerce-shipping-fields__field-wrapper > .form-row-first,
  .woocommerce-shipping-fields__field-wrapper > .form-row-last,
  .woocommerce-address-fields__field-wrapper > .form-row-first,
  .woocommerce-address-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
  .jcn-page { padding-top: 7em; }
  .jcn-page__title { font-size: 3em; }
}

/* Logged-in admin bar sits above the fixed header */
.admin-bar .header,
.admin-bar .mobile-menu { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header,
  .admin-bar .mobile-menu { top: 46px; }
}

/* The add-to-cart <form> must not break .prod__info's flex rhythm */
.jcn-cart-form { display: contents; }

/* WordPress prints width/height attributes on attachment images; the design sizes them with CSS. */
.card__visual img,
.card__logo img,
.ga-tile__band img,
.line-tile__band img,
.archive-tile__band img,
.prod__band-logo img,
.line__band img { height: auto; }
.gb-map.is--live .jcn-map-tiles { filter: grayscale(1) sepia(0.35) brightness(1.04) contrast(0.92); }

/* ------------------------- Mini cart drawer ------------------------- */
/* Self-contained: checkout.css (co-*) only loads on cart / checkout, so the drawer
   scopes the few co-* pieces it reuses. */

.jcn-drawer { position: fixed; inset: 0; z-index: 950; }
.jcn-drawer[hidden] { display: none; }
html.jcn-drawer-open { overflow: hidden; }

.jcn-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 1, 0.45);
  opacity: 0;
  transition: opacity 0.45s var(--ease-osmo);
}

.jcn-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(30em, 100vw);
  background: var(--color-cream);
  color: var(--color-dark);
  box-shadow: -1em 0 3em rgba(5, 0, 1, 0.18);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-osmo);
  outline: 0;
}

.jcn-drawer.is--open .jcn-drawer__backdrop { opacity: 1; }
.jcn-drawer.is--open .jcn-drawer__panel { transform: none; }
.jcn-drawer[aria-busy="true"] .jcn-drawer__items,
.jcn-drawer[aria-busy="true"] .jcn-drawer__foot { opacity: 0.55; pointer-events: none; transition: opacity 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .jcn-drawer__backdrop,
  .jcn-drawer__panel { transition: none; }
}

.jcn-drawer__body { display: flex; flex-direction: column; height: 100%; min-height: 0; }

.jcn-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.25em 1.5em;
  border-bottom: 1px solid var(--color-rule);
}

.jcn-drawer__title { font-size: 2em; font-weight: 400; line-height: 1; }
.jcn-drawer__count { font-family: var(--font-sans); font-size: 0.375em; font-weight: 700; vertical-align: middle; }

.jcn-drawer__close {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
}

.jcn-drawer__ship { padding: 1em 1.5em 0; }
.jcn-drawer__ship .co-summary__note { margin: 0 0 0.6667em; font-size: 0.75em; font-weight: 500; color: var(--color-hover); }
.jcn-drawer__ship .jcn-progress { margin: 0; }

.jcn-drawer__items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0.5em 1.5em; list-style: none; }

.jcn-drawer__item {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr) auto;
  gap: 1em;
  align-items: start;
  padding: 1em 0;
  border-bottom: 1px solid var(--color-line);
}
.jcn-drawer__item:last-child { border-bottom: 0; }

.jcn-drawer .co-mini__media { display: flex; align-items: center; justify-content: center; width: 4.5em; aspect-ratio: 1; border: 1px solid var(--color-line); background: var(--color-leaf); }
.jcn-drawer .co-item__img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; }
.jcn-drawer__info { display: flex; flex-direction: column; gap: 0.375em; min-width: 0; }
.jcn-drawer .co-mini__name { font-size: 1.25em; line-height: 1.05; }
.jcn-drawer .co-mini__name a:hover { text-decoration: underline; }
.jcn-drawer .co-mini__meta { font-size: 0.6875em; font-weight: 700; text-transform: uppercase; color: var(--color-gold); }
.jcn-drawer .co-mini__line { font-size: 0.875em; font-weight: 700; white-space: nowrap; }
.jcn-drawer .co-item__controls { display: flex; align-items: center; gap: 1em; margin-top: 0.25em; }
.jcn-drawer .co-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-rule); }
.jcn-drawer .co-qty__btn { width: 2em; height: 2em; padding: 0; background: none; border: 0; font-size: 1em; font-weight: 700; color: var(--color-dark); cursor: pointer; }
.jcn-drawer .co-qty__btn:hover { background: var(--color-leaf); }
.jcn-drawer .co-qty__btn:disabled { opacity: 0.3; cursor: default; }
.jcn-drawer .co-qty__value { min-width: 1.75em; font-size: 0.875em; font-weight: 700; text-align: center; }
.jcn-drawer .co-item__remove { padding: 0; background: none; border: 0; font: inherit; font-size: 0.6875em; font-weight: 700; text-transform: uppercase; text-decoration: underline; color: inherit; cursor: pointer; }

.jcn-drawer__foot { display: flex; flex-direction: column; gap: 0.75em; padding: 1.25em 1.5em 1.5em; border-top: 1px solid var(--color-rule); }
.jcn-drawer .co-row { display: flex; justify-content: space-between; gap: 1em; }
.jcn-drawer .co-row.is--total { padding: 0; border: 0; font-size: 1.125em; font-weight: 700; }
.jcn-drawer__note { font-size: 0.75em; font-weight: 500; color: var(--color-hover); }
.jcn-drawer__cta { display: flex; align-items: center; justify-content: center; min-height: 3.5em; text-transform: uppercase; }
.jcn-drawer__link { align-self: center; font-size: 0.75em; font-weight: 700; text-transform: uppercase; text-decoration: underline; }

.jcn-drawer__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5em; padding: 2em 1.5em; }
.jcn-drawer .co-empty__text { font-size: 2.5em; line-height: 1; }
.jcn-drawer .co-empty__btn { display: inline-flex; align-items: center; min-height: 3.25em; padding: 0 1.5em; text-transform: uppercase; }

@media screen and (max-width: 767px) {
  .jcn-drawer__panel { width: 100vw; }
  .jcn-drawer__head,
  .jcn-drawer__items,
  .jcn-drawer__foot,
  .jcn-drawer__ship { padding-left: var(--gutter); padding-right: var(--gutter); }
}
.admin-bar .jcn-drawer__panel { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .jcn-drawer__panel { top: 46px; } }
.jcn-drawer__error { margin: 1em 1.5em 0; padding: 0.875em 1em; border: 1px solid var(--jcn-error); border-left-width: 3px; font-size: 0.875em; font-weight: 500; color: var(--jcn-error); }

/* Hover hairline (style.css "Text links") must sit under the text only, not the full column. */
.header__nav a,
.footer__nav a,
.footer__address a,
.collection__link,
.mobile-menu__list a {
  width: fit-content;
  max-width: 100%;
}

/* Contact Form 7 wraps its hidden inputs (version, nonce…) in a fieldset; the inputs still submit. */
.wpcf7 .hidden-fields-container { display: none; }

/* WordPress puts `archive` on <body> for archives (store, categories, brands, news); the design's
   .archive padding belongs to the History Archive section only. */
body.archive { padding: 0; }

/* Login: image + form never taller than the viewport under the fixed header (header height = .login offset).
   A long form (create account) scrolls inside its panel. Stacked layouts (≤991px) keep natural height. */
.login {
  --login-offset: calc(2em + 3px);
  --login-avail: calc(100svh - var(--login-offset));
  min-height: 0;
  max-height: var(--login-avail);
  height: var(--login-avail);
}
.admin-bar .login { --login-avail: calc(100svh - var(--login-offset) - 32px); }
.login__media { max-height: var(--login-avail); height: 100%; }
.login__panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

@media screen and (max-width: 991px) {
  .login { --login-offset: calc(3em + 3px); height: auto; max-height: none; }
  .login__panel { overflow: visible; }
}
@media screen and (max-width: 767px) {
  .login { --login-offset: calc(2.3125em + 3px); }
}

/* Card meta (Format / Intensity): bold, 2px between the lines */
.card__meta { display: flex; flex-direction: column; gap: 2px; font-weight: 700; }

/* Home: a single Perla collection also needs the bottom spacing the design gave its second row (.is--perla-2) */
.collection.is--perla { padding-bottom: 6.5em; }

/* Lounge banner: top padding equal to the bottom */
.banner.is--lounge { padding-top: 1.5em; }
@media screen and (max-width: 767px) {
  .banner.is--lounge { padding-top: 1.375em; }
}
