/* =====================================================================
 * Shop UX — cart drawer, Buy it now, leaner product page and card.
 * Everything is scoped to body.rk-ux, which inc/shop-ux.php adds, so this
 * file is inert when the layer is switched off.
 * ================================================================== */

/* ── Announcement bar: one line ───────────────────────────────────────── */
.rk-ux .announce-inner { justify-content: center; min-height: 36px; }
.rk-ux .announce-msg { margin: 0; color: #e9e6df; font-size: 13px; letter-spacing: .02em; text-align: center; }

/* ── Header: the bag icon and its count are enough ────────────────────── */
.rk-ux .header-main { grid-template-columns: 330px minmax(0, 1fr) 150px; }
@media (max-width: 1199px) {
  .rk-ux .header-main { grid-template-columns: 250px minmax(0, 1fr) auto; }
}
@media (max-width: 1024px) {
  .rk-ux .header-main { grid-template-columns: auto minmax(0, 1fr) auto; }
}

/* ── Product card ─────────────────────────────────────────────────────── */
.rk-ux.woocommerce ul.products li.product > .rk-product-card,
.rk-ux .woocommerce ul.products li.product > .rk-product-card {
  border-color: var(--line);
  box-shadow: none;
}
.rk-ux.woocommerce ul.products li.product > .rk-product-card:hover,
.rk-ux .woocommerce ul.products li.product > .rk-product-card:hover,
.rk-ux.woocommerce ul.products li.product > .rk-product-card:focus-within,
.rk-ux .woocommerce ul.products li.product > .rk-product-card:focus-within {
  border-color: #cdc8bd;
  box-shadow: none;
  transform: none;
}
.rk-ux .rk-card-body { padding: 14px 16px 16px; }
.rk-ux.woocommerce ul.products li.product .rk-card-price,
.rk-ux .woocommerce ul.products li.product .rk-card-price { padding-top: 8px; font-size: 16px; font-weight: 500; }
.rk-ux .rk-card-actions { grid-template-columns: 1fr; margin-top: 14px; }
.rk-ux.woocommerce ul.products li.product .rk-card-actions .button,
.rk-ux .woocommerce ul.products li.product .rk-card-actions .button {
  min-height: 44px;
  background: transparent;
  color: var(--ink);
}
.rk-ux.woocommerce ul.products li.product .rk-card-actions .button:hover,
.rk-ux .woocommerce ul.products li.product .rk-card-actions .button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
/* The drawer opens instead of WooCommerce's inline "View cart" link. */
.rk-ux .added_to_cart { display: none !important; }
@media (max-width: 767px) {
  .rk-ux .rk-card-body { padding: 11px 11px 13px; }
  .rk-ux.woocommerce ul.products li.product .rk-card-price,
  .rk-ux .woocommerce ul.products li.product .rk-card-price { font-size: 15px; }
  .rk-ux.woocommerce ul.products li.product .rk-card-actions .button,
  .rk-ux .woocommerce ul.products li.product .rk-card-actions .button { min-height: 42px; font-size: 13px; }
}

/* ── Product page ─────────────────────────────────────────────────────── */
.rk-ux.single-product .shop-shell { padding-top: 28px; }
.rk-ux.woocommerce div.product {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 4.6vw, 64px);
}
/* Sticky only where the whole (square) image fits in the window; a short laptop
   screen would otherwise pin it with its bottom edge cut off. */
@media (min-width: 992px) and (min-height: 760px) {
  .rk-ux.woocommerce.single-product div.product div.images { position: sticky; top: 24px; }
  .rk-ux.admin-bar.woocommerce.single-product div.product div.images { top: 56px; }
}
@media (max-width: 767px) {
  .rk-ux.woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

.rk-ux.single-product .shop-shell div.product .product_title {
  margin: 0 0 12px;
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.16;
  letter-spacing: -.01em;
}
.rk-ux.single-product div.product p.price,
.rk-ux.single-product div.product span.price { margin: 0; font-family: var(--ui-font); font-size: 21px; line-height: 1.3; }
.rk-ux .rk-price-note { margin: 5px 0 0; color: var(--muted); font-family: var(--ui-font); font-size: 13px; }
.rk-ux.single-product div.product .woocommerce-product-details__short-description {
  margin-top: 18px; color: #4d4a44; font-size: 15px; line-height: 1.65;
}
.rk-ux.single-product div.product .woocommerce-product-details__short-description p { margin: 0 0 8px; }

/* Quantity above two full-width buttons */
.rk-ux.woocommerce div.product form.cart,
.rk-ux.woocommerce div.product.product-type-simple form.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 22px 0 0;
}
.rk-ux .rk-qty-label { color: var(--muted); font-family: var(--ui-font); font-size: 13px; }
.rk-ux.woocommerce div.product form.cart:has(.quantity input[type="hidden"]) .rk-qty-label { display: none; }

.rk-ux.woocommerce .quantity,
.rk-ux .woocommerce .quantity {
  display: inline-flex;
  align-items: stretch;
  float: none;
  width: 140px;
  height: 46px;
  margin: 0;
  border: 1px solid #cfcac0;
  border-radius: var(--radius-pill);
  background: #fff;
  overflow: hidden;
}
.rk-ux.woocommerce div.product form.cart .quantity { margin: -4px 0 8px; }
.rk-ux .quantity:has(input[type="hidden"]) { display: none; }
.rk-ux .quantity .rk-step {
  flex: 0 0 42px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.rk-ux .quantity .rk-step:hover { background: var(--wash); color: var(--ink); }
.rk-ux.woocommerce .quantity input.qty,
.rk-ux .woocommerce .quantity input.qty,
.rk-ux.woocommerce div.product.product-type-simple form.cart .qty {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--ui-font);
  font-size: 15px;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.rk-ux .quantity input.qty::-webkit-outer-spin-button,
.rk-ux .quantity input.qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.rk-ux .quantity input.qty:focus { outline: 0; }
.rk-ux .quantity:focus-within { border-color: var(--ink); }

.rk-ux.single-product div.product form.cart .button {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: .02em;
}
.rk-ux.single-product div.product form.cart .single_add_to_cart_button {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.rk-ux.single-product div.product form.cart .single_add_to_cart_button:hover { background: var(--wash); color: var(--ink); }
.rk-ux.single-product div.product form.cart .rk-buy-now { background: var(--ink); color: #fff; }
.rk-ux.single-product div.product form.cart .rk-buy-now:hover { background: #35322b; border-color: #35322b; color: #fff; }
.rk-ux.single-product div.product form.cart .button.loading { opacity: .6; pointer-events: none; }
.rk-ux.single-product div.product form.cart .button.loading::after { display: none; }

.rk-ux .rk-assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  margin: 14px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-family: var(--ui-font); font-size: 12.5px;
}
.rk-ux .rk-assure li { position: relative; padding-left: 14px; }
.rk-ux .rk-assure li::before {
  content: ""; position: absolute; top: 3px; left: 0;
  width: 4px; height: 8px; border: solid #6f8f6a; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

/* Accordions (the old tab strip) */
.rk-ux .rk-accordions { margin: 26px 0 0; border-top: 1px solid var(--line); }
.rk-ux .rk-acc { border-bottom: 1px solid var(--line); }
.rk-ux .rk-acc > summary {
  display: block; position: relative;
  padding: 16px 34px 16px 2px; list-style: none; cursor: pointer;
  color: var(--ink); font-family: var(--ui-font); font-size: 15px; font-weight: 500; line-height: 1.4;
}
.rk-ux .rk-acc > summary::-webkit-details-marker { display: none; }
.rk-ux .rk-acc > summary::marker { content: ""; }
.rk-ux .rk-acc > summary::after {
  content: ""; position: absolute; top: 50%; right: 6px; width: 8px; height: 8px; margin-top: -7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  transition: transform .2s ease;
}
.rk-ux .rk-acc[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.rk-ux .rk-acc > summary:focus-visible { outline: 2px solid rgba(22, 21, 15, .35); outline-offset: 2px; }
.rk-ux .rk-acc-body { padding: 0 2px 20px; color: #4d4a44; font-family: var(--ui-font); font-size: 14.5px; line-height: 1.7; }
.rk-ux .rk-acc-body > :first-child { margin-top: 0; }
.rk-ux .rk-acc-body > :last-child { margin-bottom: 0; }
.rk-ux .rk-acc-body h2,
.rk-ux .rk-acc-body h3 {
  margin: 18px 0 6px; color: var(--ink);
  font-family: var(--ui-font); font-size: 14.5px; font-weight: 600; letter-spacing: 0; line-height: 1.4;
}
.rk-ux .rk-acc-body p { margin: 0 0 10px; }
.rk-ux .rk-acc-body ul,
.rk-ux .rk-acc-body ol { margin: 6px 0 10px; padding-left: 18px; }
.rk-ux .rk-acc-body li { margin: 4px 0; }
.rk-ux .rk-acc-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rk-ux .rk-acc-body table { width: 100%; border-collapse: collapse; }
.rk-ux .rk-acc-body th,
.rk-ux .rk-acc-body td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.rk-ux .rk-acc-body th { width: 40%; color: var(--ink); font-weight: 500; }
/* The sourcing panel carried its own box and heading for the tab layout. */
.rk-ux .rk-acc-body .product-source-panel { margin: 0; padding: 0; border: 0; background: none; }
.rk-ux .rk-acc-body .product-source-panel > h2 { display: none; }
.rk-ux .rk-acc-body .product-source-facts { margin-left: 0; }

.rk-ux.woocommerce div.product .product_meta {
  margin-top: 18px; padding-top: 0; border-top: 0;
  color: var(--muted); font-family: var(--ui-font); font-size: 12.5px;
}
.rk-ux.woocommerce div.product .product_meta > span { display: inline-block; margin-right: 14px; }
.rk-ux.woocommerce div.product .product_meta .tagged_as { display: none; }

.rk-ux.woocommerce div.product .related { margin-top: 64px; }
.rk-ux.woocommerce div.product .related > h2 { margin-bottom: 24px; font-size: clamp(22px, 2.1vw, 28px); }

/* ── Cart drawer ──────────────────────────────────────────────────────── */
.rk-drawer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 10050; }
.rk-drawer[hidden] { display: none !important; }
.rk-drawer-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(22, 21, 15, .46);
  opacity: 0; transition: opacity .28s ease;
}
.rk-drawer-panel {
  display: flex; flex-direction: column;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff; color: var(--ink);
  font-family: var(--ui-font);
  box-shadow: -18px 0 48px rgba(22, 21, 15, .16);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  outline: 0;
}
.rk-drawer.is-open .rk-drawer-overlay { opacity: 1; }
.rk-drawer.is-open .rk-drawer-panel { transform: translateX(0); }
body.admin-bar .rk-drawer-panel { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rk-drawer-panel { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .rk-drawer-overlay, .rk-drawer-panel { transition: none; }
}
html.rk-drawer-lock { overflow: hidden; }

.rk-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex: 0 0 auto; padding: 18px 20px 16px; border-bottom: 1px solid var(--line);
}
.rk-drawer-head h2 { margin: 0; font-family: var(--display-font); font-size: 21px; line-height: 1.2; }
.rk-drawer-count { color: var(--muted); font-family: var(--ui-font); font-size: 14px; font-weight: 400; }
.rk-drawer .rk-drawer-close {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; min-height: 0; margin: -6px -8px -6px 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.rk-drawer .rk-drawer-close:hover { background: var(--wash); color: var(--ink); }

.rk-drawer-content { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; transition: opacity .15s ease; }
.rk-drawer-content.is-busy { opacity: .5; pointer-events: none; }

.rk-drawer-empty {
  display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 40px 24px; text-align: center;
}
.rk-drawer-empty p { margin: 0; font-family: var(--display-font); font-size: 20px; }

.rk-drawer-items { flex: 1 1 auto; min-height: 0; margin: 0; padding: 4px 20px; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.rk-drawer-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rk-drawer-item:last-child { border-bottom: 0; }
.rk-drawer-thumb {
  display: block; position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: var(--wash);
}
.rk-drawer-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.rk-drawer-info { display: flex; flex-direction: column; min-width: 0; }
.rk-drawer-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; text-decoration: none;
}
a.rk-drawer-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.rk-drawer-info dl.variation { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.rk-drawer-info dl.variation dt,
.rk-drawer-info dl.variation dd { display: inline; margin: 0; }
.rk-drawer-info dl.variation dd p { display: inline; margin: 0; }
.rk-drawer-price { margin-top: 4px; color: #4d4a44; font-size: 14px; }
.rk-drawer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.rk-dq {
  display: inline-flex; align-items: stretch; height: 36px;
  border: 1px solid #cfcac0; border-radius: 18px; overflow: hidden;
}
.rk-drawer .rk-dq-btn {
  width: 34px; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1; cursor: pointer;
}
.rk-drawer .rk-dq-btn:hover { background: var(--wash); color: var(--ink); }
.rk-drawer .rk-dq-btn[disabled] { color: #b9b4aa; cursor: default; background: transparent; }
.rk-dq-value { display: inline-grid; place-items: center; min-width: 30px; font-size: 14px; }
.rk-drawer .rk-drawer-remove {
  min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.rk-drawer .rk-drawer-remove:hover { background: transparent; color: var(--ink); }

.rk-drawer-foot { flex: 0 0 auto; padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
.rk-drawer-subtotal { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; }
.rk-drawer-subtotal strong { font-size: 18px; font-weight: 600; }
.rk-drawer-note { margin: 4px 0 14px; color: var(--muted); font-size: 12.5px; }
.rk-drawer .rk-drawer-checkout { display: flex; width: 100%; min-height: 50px; font-size: 15px; }
.rk-drawer-viewcart {
  display: block; margin-top: 12px; color: var(--ink); font-size: 13.5px; text-align: center;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Home: the delivery facts are stated once, in the strip under the hero ── */
.rk-ux .home-hero-actions { margin-bottom: 0; }

/* ── Announcement: a shorter line on phones so it never wraps ─────────── */
.announce-short { display: none; }
@media (max-width: 520px) {
  .rk-ux .announce-long { display: none; }
  .rk-ux .announce-short { display: inline; }
}

/* An empty cart shows no badge. */
.rk-ux .cart-count[data-count="0"] { display: none; }

/* =====================================================================
 * Bottom navigation (phones)
 * ================================================================== */
.rk-bottom-nav { display: none; }
@media (max-width: 767px) {
  .rk-ux .rk-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; right: 0; bottom: 0; left: 0; z-index: 9990;
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-family: var(--ui-font);
  }
  .rk-bottom-nav .rk-bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-width: 0; min-height: 56px; padding: 7px 2px 6px;
    border: 0; border-radius: 0; background: transparent;
    color: #77736b; font-family: inherit; font-size: 11px; font-weight: 500; letter-spacing: .01em; line-height: 1;
    text-decoration: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .rk-bottom-nav .rk-bn-item:hover { background: transparent; color: var(--ink); }
  .rk-bottom-nav .rk-bn-item.is-active { color: var(--ink); font-weight: 600; }
  .rk-bottom-nav .rk-bn-icon { display: inline-grid; position: relative; place-items: center; width: 26px; height: 24px; }
  .rk-bottom-nav .rk-bn-icon svg { width: 22px; height: 22px; }
  .rk-bottom-nav .rk-bn-item.is-active .rk-bn-icon svg { stroke-width: 2.1; }
  .rk-bottom-nav .rk-bn-icon .cart-count {
    top: -5px; right: -8px; left: auto;
    width: auto; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; font-size: 10px; line-height: 16px;
  }

  /* Leave room for the bar, and get it out of the way while someone is typing. */
  body.rk-has-bn { padding-bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
  body.rk-has-bn:has(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):focus, textarea:focus) .rk-bottom-nav { display: none; }

  /* Account and search live in the bar, so the header keeps the logo, the bag and the menu. */
  .rk-has-bn .header-actions > a.icon-link:not(.cart-link),
  .rk-has-bn .header-actions > .search-toggle { display: none; }
}

/* ── Chat launcher: a round button unless the window is wide enough for the
   labelled pill to sit outside the page column; clear of the bar on phones ── */
@media (max-width: 520px) {
  .rk-ux .rka { display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
  .rk-ux .rka > * { pointer-events: auto; }
}
@media (max-width: 1639px) {
  .rk-ux .rka-launch { width: 52px; min-height: 52px; padding: 0; border-radius: 50%; justify-content: center; }
  .rk-ux .rka-launch-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 767px) {
  .rk-has-bn .rka { bottom: calc(57px + 12px + env(safe-area-inset-bottom, 0px)); }
}

/* =====================================================================
 * Responsive pass
 * ================================================================== */

/* Home hero: four small tiles in a row on tablets instead of a 2×2 wall. */
@media (min-width: 641px) and (max-width: 900px) {
  .rk-ux .home-hero-media { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

/* Categories: never an orphan tile. */
@media (min-width: 641px) and (max-width: 1100px) {
  .rk-ux .dept-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .rk-ux .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rk-ux .dept-body { padding: 11px 12px 13px; }

  /* Delivery facts: two columns, not five stacked rows. */
  .rk-ux .trust-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .rk-ux .trust-inner > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Guides: three across down to small tablets (there are three of them). */
@media (min-width: 700px) and (max-width: 900px) {
  .rk-ux .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .rk-ux .guide-grid .guide-body { padding: 14px 14px 18px; }
  .rk-ux .guide-grid .guide-body strong { font-size: 15px; }
}

/* Product grids: four across on tablets so 4, 8 and 20 items all fill their rows. */
@media (min-width: 768px) and (max-width: 991px) {
  .rk-ux.woocommerce ul.products,
  .rk-ux .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 14px; row-gap: 22px; }
  .rk-ux .rk-card-body { padding: 12px 12px 14px; }
  .rk-ux.woocommerce ul.products li.product .rk-card-body .woocommerce-loop-product__title,
  .rk-ux .woocommerce ul.products li.product .rk-card-body .woocommerce-loop-product__title { font-size: 14.5px; }
}
@media (max-width: 767px) {
  .rk-ux.woocommerce ul.products,
  .rk-ux .woocommerce ul.products { gap: 14px 12px; }
}

/* Small text links get a finger-sized hit area. */
@media (max-width: 1024px) {
  .rk-ux .section-link { display: inline-block; padding: 8px 0; }
  .rk-ux .footer-policy-link { display: inline-block; padding: 8px 0; white-space: nowrap; }
}

/* Search results list: one compact button per row. */
.rk-ux .search-result-card__actions .button:not(.add_to_cart_button) { display: none; }
.rk-ux .search-result-card__actions .button { background: transparent; color: var(--ink); }
.rk-ux .search-result-card__actions .button:hover { background: var(--ink); color: #fff; }

/* Cart and checkout on phones */
@media (max-width: 767px) {
  .rk-ux .page-hero { margin-bottom: 20px; padding: 22px 0 16px; }
  .rk-ux .rawkology-fulfilment-notice { font-size: 13.5px; line-height: 1.55; }

  .rk-ux.woocommerce-checkout #customer_details h3,
  .rk-ux.woocommerce-checkout #order_review_heading { font-size: 21px; }
  .rk-ux.woocommerce-checkout #customer_details #ship-to-different-address { font-size: 16px; }
  .rk-ux.woocommerce-checkout #ship-to-different-address label { font-family: var(--ui-font); font-weight: 500; }

  /* The order table was a bordered box inside a bordered box. */
  .rk-ux.woocommerce-checkout #order_review { padding: 0; border: 0; background: transparent; }
  .rk-ux.woocommerce-checkout #order_review table.shop_table th,
  .rk-ux.woocommerce-checkout #order_review table.shop_table td { padding: 12px 12px; font-size: 14.5px; }
  .rk-ux.woocommerce-checkout #order_review table.shop_table .product-name,
  .rk-ux.woocommerce-checkout #order_review table.shop_table tfoot th { width: 44%; }
  .rk-ux.woocommerce-checkout #order_review #shipping_method li { margin-bottom: 8px; }
}

/* WooCommerce flags the unticked terms box as an error on page load; wait until the shopper has actually tried. */
.rk-ux.woocommerce-checkout:not(.rk-show-checkout-errors) .woocommerce-invalid:not(.rk-field-touched) #terms { outline: 0; }

/* =====================================================================
 * Product page fixes
 * ================================================================== */

/* The photo viewer opens above the bottom bar and the chat button (it sat under both). */
.rk-ux .pswp { z-index: 10040; }

/* One frame per picture: the photo sits straight on the card / gallery tile
   instead of in a second bordered box inside it. */
.rk-ux.single-product .woocommerce-product-gallery__image > a { background: #fff; }
.rk-ux.woocommerce ul.products li.product a img,
.rk-ux .woocommerce ul.products li.product a img { padding: 0; border: 0; border-radius: 0; background: transparent; }
.rk-ux.woocommerce ul.products li.product .rk-card-image-link,
.rk-ux .woocommerce ul.products li.product .rk-card-image-link { padding: 12px; }

/* WooCommerce notices ("added to your cart", stock errors): WooCommerce moves keyboard
   focus to them, which drew a heavy black ring round the whole box. */
.rk-ux .woocommerce-message,
.rk-ux .woocommerce-info,
.rk-ux .woocommerce-error {
  margin: 0 0 22px; padding: 14px 18px 14px 48px;
  border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 10px;
  background: var(--wash); color: #33312c;
  font-family: var(--ui-font); font-size: 14.5px; line-height: 1.5;
}
.rk-ux .woocommerce-error { border-left-color: #b3261e; }
/* Message on the left, its button on the right — only when there is a button, so a
   notice that is just a sentence with a link in it stays one run of text. */
.rk-ux .woocommerce-message:has(> .button),
.rk-ux .woocommerce-info:has(> .button) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rk-ux .woocommerce-message:focus,
.rk-ux .woocommerce-info:focus,
.rk-ux .woocommerce-error:focus,
.rk-ux .woocommerce-message:focus-visible,
.rk-ux .woocommerce-info:focus-visible,
.rk-ux .woocommerce-error:focus-visible { outline: 0; }
.rk-ux .woocommerce-message::before,
.rk-ux .woocommerce-info::before,
.rk-ux .woocommerce-error::before { top: 50%; left: 18px; transform: translateY(-50%); }
.rk-ux .woocommerce-message::after,
.rk-ux .woocommerce-info::after,
.rk-ux .woocommerce-error::after { display: none; }
.rk-ux .woocommerce-message .button,
.rk-ux .woocommerce-info .button,
.rk-ux .woocommerce-error .button {
  order: 2; float: none; flex: 0 0 auto; min-height: 38px; margin: 0 0 0 auto; padding: 0 18px; font-size: 13.5px;
}
.rk-ux ul.woocommerce-error { list-style: none; }
.rk-ux ul.woocommerce-error li { margin: 0; }
@media (max-width: 767px) {
  .rk-ux .woocommerce-message,
  .rk-ux .woocommerce-info,
  .rk-ux .woocommerce-error { padding: 12px 14px 12px 42px; font-size: 14px; }
  .rk-ux .woocommerce-message::before,
  .rk-ux .woocommerce-info::before,
  .rk-ux .woocommerce-error::before { top: 14px; left: 14px; transform: none; }
  .rk-ux .woocommerce-message .button,
  .rk-ux .woocommerce-info .button,
  .rk-ux .woocommerce-error .button { margin-left: 0; }

  /* 16px fields: iOS zooms the whole page in when a smaller one takes focus. */
  .rk-ux input[type="text"], .rk-ux input[type="email"], .rk-ux input[type="tel"], .rk-ux input[type="search"],
  .rk-ux input[type="number"], .rk-ux input[type="password"], .rk-ux input[type="url"], .rk-ux select, .rk-ux textarea,
  .rk-ux.woocommerce form .form-row input.input-text, .rk-ux .woocommerce form .form-row input.input-text,
  .rk-ux.woocommerce form .form-row textarea, .rk-ux .woocommerce form .form-row textarea,
  .rk-ux.woocommerce form .form-row select, .rk-ux .woocommerce form .form-row select,
  .rk-ux.woocommerce .quantity input.qty, .rk-ux .woocommerce .quantity input.qty,
  .rk-ux.woocommerce div.product.product-type-simple form.cart .qty { font-size: 16px; }
}

/* Phones: the cart drawer stops above the bottom bar, so the bar stays in view and usable.
   While the drawer is open its Cart item reads as the current one. */
@media (max-width: 767px) {
  .rk-has-bn .rk-drawer { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
  .rk-has-bn .rk-drawer-foot { padding-bottom: 16px; }
  html.rk-drawer-lock .rk-bottom-nav .rk-bn-item.is-active { color: #77736b; font-weight: 500; }
  html.rk-drawer-lock .rk-bottom-nav .rk-bn-item.cart-link { color: var(--ink); font-weight: 600; }
}

/* ── Accent: emerald. One colour for the actions that move an order forward and a few
   small signals; text, layout, prices and every policy statement stay exactly as they are. */
.rk-ux { --accent: #0f5c4a; --accent-dark: #0a4537; --accent-soft: #eef5f1; }

/* Announcement strip */
.rk-ux .announce-bar { background: var(--accent); }
.rk-ux .announce-msg { color: #fff; }

/* Primary actions */
.rk-ux .btn-primary,
.rk-ux.single-product div.product form.cart .rk-buy-now,
.rk-ux .rk-drawer .rk-drawer-checkout,
.rk-ux .rk-drawer-empty .button,
.rk-ux.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.rk-ux.woocommerce-checkout #payment #place_order {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.rk-ux .btn-primary:hover,
.rk-ux.single-product div.product form.cart .rk-buy-now:hover,
.rk-ux .rk-drawer .rk-drawer-checkout:hover,
.rk-ux .rk-drawer-empty .button:hover,
.rk-ux.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.rk-ux.woocommerce-checkout #payment #place_order:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

/* Secondary actions: outline in the accent */
.rk-ux.single-product div.product form.cart .single_add_to_cart_button,
.rk-ux.woocommerce ul.products li.product .rk-card-actions .button,
.rk-ux .woocommerce ul.products li.product .rk-card-actions .button {
  border-color: var(--accent);
  color: var(--accent);
}
.rk-ux.single-product div.product form.cart .single_add_to_cart_button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.rk-ux.woocommerce ul.products li.product .rk-card-actions .button:hover,
.rk-ux .woocommerce ul.products li.product .rk-card-actions .button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Small signals */
.rk-ux .cart-count { background: var(--accent); }
.rk-ux .rk-bottom-nav .rk-bn-item.is-active,
html.rk-drawer-lock .rk-ux .rk-bottom-nav .rk-bn-item.cart-link { color: var(--accent); }
.rk-ux .rk-assure li::before { border-color: var(--accent); }
.rk-ux .trust-strip { border-color: transparent; background: var(--accent-soft); }
.rk-ux .trust-inner strong { color: var(--accent-dark); }
.rk-ux .section-link:hover,
.rk-ux .rk-acc-body a:hover { color: var(--accent); }
.rk-ux .rk-card-status.rk-card-sale { border-color: var(--accent); background: var(--accent); }

/* Checkout, two columns: the billing form spans both grid rows, so when the order box is the
   shorter side the browser shared the spare height between the rows and left a hole under
   "Your order". Give all of it to the second row instead. */
@media (min-width: 992px) {
  .rk-ux.woocommerce-checkout form.checkout { grid-template-rows: auto 1fr; }
}

/* =====================================================================
 * Footer, responsive
 * Everything stays on the page and in view — contact details, both addresses and every
 * policy link — it is only packed properly instead of being one long single column.
 * ================================================================== */
.rk-ux .footer-contact li > span:first-child { display: inline-grid; place-items: start center; padding-top: 3px; color: #8f8b83; }
.rk-ux .footer-contact li > span:first-child svg { width: 17px; height: 17px; }

/* Tablets: contact details in two columns across the top, the three link groups in a row. */
@media (min-width: 768px) and (max-width: 991px) {
  .rk-ux .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; padding-top: 48px; padding-bottom: 26px; }
  .rk-ux .footer-brand { grid-column: 1 / -1; }
  .rk-ux .footer-grid > div:last-child { grid-column: auto; }
  .rk-ux .footer-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 20px; }
  .rk-ux .footer-contact li { margin: 9px 0; }
  .rk-ux .footer-title { margin-bottom: 14px; padding-bottom: 14px; font-size: 18px; }
  .rk-ux .footer-links li { margin: 0; }
  .rk-ux .footer-links a { display: block; padding: 8px 0; }
}

/* Phones */
@media (max-width: 767px) {
  .rk-ux .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; padding: 28px 16px 18px; }
  .rk-ux .footer-brand { grid-column: 1 / -1; }
  .rk-ux .footer-grid > div:last-child { grid-column: auto; }
  .rk-ux .site-footer .brand { width: 150px; }

  .rk-ux .footer-contact { margin: 10px 0 0; }
  .rk-ux .footer-contact li { grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 0; padding: 8px 0; font-size: 14px; line-height: 1.5; }
  .rk-ux .footer-contact li + li { border-top: 1px solid #242321; }
  .rk-ux .footer-contact a { display: inline-block; padding: 2px 0; color: #d6d3cc; }
  .rk-ux .footer-contact small { margin-top: 1px; font-size: 12px; }

  /* Account, Cart and Shop are one tap away in the bottom bar; no need to list them again here. */
  .rk-has-bn .footer-grid > div:nth-child(3) { display: none; }

  .rk-ux .footer-title {
    margin: 0 0 4px; padding-bottom: 0;
    color: #8f8b83; font-family: var(--ui-font); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  }
  .rk-ux .footer-title::after { display: none; }
  .rk-ux .footer-links li { margin: 0; }
  .rk-ux .footer-links a { display: block; padding: 9px 0; color: #d6d3cc; font-size: 14.5px; line-height: 1.35; }

  /* Bottom: the two outside links side by side, then the legal lines. */
  .rk-ux .footer-bottom {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    min-height: 0; padding: 16px 16px 18px; text-align: center;
  }
  .rk-ux .footer-bottom .footer-social {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; margin: 0; padding: 0 12px;
    border: 1px solid #34322e; border-radius: 22px; color: #d6d3cc; font-size: 14px;
  }
  .rk-ux .footer-bottom .footer-social svg { width: 17px; height: 17px; flex-basis: 17px; }
  .rk-ux .copyright-area { grid-column: 1 / -1; order: 3; align-items: center; gap: 2px; margin-top: 6px; color: #8f8b83; font-size: 12.5px; line-height: 1.5; }
  .rk-ux .footer-policy-link { display: none; } /* already listed under Help & Support */

  /* Payment marks: left-aligned so the chat button never sits on top of them. */
  .rk-ux .footer-payment-inner { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 0; padding: 14px 16px 16px; text-align: left; }
  .rk-ux .payment-label { font-size: 10.5px; }
  .rk-ux .footer-payment-strip .payment-marks { justify-content: flex-start; gap: 8px; }
  .rk-ux .footer-payment-strip .payment-marks img { width: auto; height: 30px; }
}

/* =====================================================================
 * Menu drawer (phones and tablets, where the header shows the three-line button)
 * The list used to unfold inside the header grid and push the cart and menu icons under it.
 * ================================================================== */
.rk-menu-head, .rk-menu-extra, .rk-menu-overlay { display: none; }

@media (max-width: 1024px) {
  html.rk-menu-open { overflow: hidden; }
  /* Lift the header above the chat button and the bottom bar while the drawer is out. */
  html.rk-menu-open .site-header { z-index: 10045; }

  .rk-ux .primary-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 2;
    width: min(330px, 86vw);
    margin: 0; padding: 0; border: 0;
    background: #fff;
    box-shadow: 18px 0 48px rgba(22, 21, 15, .16);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-104%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
  }
  .rk-ux .primary-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .rk-ux .primary-nav:focus { outline: 0; }

  .rk-ux .rk-menu-overlay {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
    background: rgba(22, 21, 15, .46);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility 0s linear .28s;
  }
  html.rk-menu-open .rk-ux .rk-menu-overlay { opacity: 1; visibility: visible; transition: opacity .28s ease; }

  body.admin-bar.rk-ux .primary-nav { top: 32px; }

  .rk-ux .rk-menu-head {
    display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between;
    padding: 12px 10px 12px 20px; border-bottom: 1px solid var(--line);
  }
  .rk-ux .rk-menu-head span { font-family: var(--display-font); font-size: 20px; line-height: 1.2; }
  .rk-ux .rk-menu-close {
    display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  }
  .rk-ux .rk-menu-close:hover { background: var(--wash); color: var(--ink); }

  .rk-ux .primary-nav > ul,
  .rk-ux .primary-nav > div > ul { display: block; flex: 0 0 auto; margin: 0; padding: 4px 20px 10px; }
  .rk-ux .primary-nav li { margin: 0; border-bottom: 1px solid var(--line); }
  .rk-ux .primary-nav li:last-child { border-bottom: 0; }
  .rk-ux .primary-nav li a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 0;
    color: var(--ink); font-family: var(--ui-font); font-size: 16.5px; line-height: 1.3; text-decoration: none;
  }
  .rk-ux .primary-nav li a::after {
    content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 4px;
    border: solid #a7a299; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg);
  }
  .rk-ux .primary-nav .current-menu-item > a,
  .rk-ux .primary-nav .current_page_item > a { color: var(--accent); font-weight: 600; }

  .rk-ux .rk-menu-extra {
    display: block; flex: 0 0 auto; margin-top: auto; padding: 10px 20px 16px;
    border-top: 1px solid var(--line); background: var(--wash);
  }
  .rk-ux .rk-menu-extra a {
    display: flex; align-items: center; gap: 12px; min-height: 44px;
    color: #4d4a44; font-family: var(--ui-font); font-size: 14.5px; text-decoration: none;
  }
  .rk-ux .rk-menu-extra a svg { flex: 0 0 auto; width: 18px; height: 18px; color: #8f8b83; }
}
@media (max-width: 782px) {
  body.admin-bar.rk-ux .primary-nav { top: 46px; }
}
/* Phones: like the cart drawer, the menu stops above the bottom bar. */
@media (max-width: 767px) {
  .rk-has-bn .primary-nav,
  .rk-has-bn .rk-menu-overlay { bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .rk-ux .primary-nav, .rk-ux .rk-menu-overlay { transition: none; }
}
