/* Orin checkout — Shopify-style skin.
   Loaded after checkout.css and intentionally overrides its visual layer. */

body.orin-modern-checkout {
  --rf-bg: #f0efec;
  --rf-bar: #e7e5e1;
  --rf-line: #d0cfcc;
  --rf-line-soft: rgba(0, 0, 0, 0.12);
  --rf-ink: #000;
  --rf-muted: #6d6c69;
  --rf-r: 12px;
  --rf-r-lg: 16px;
  --rf-field: 49px;
  --rf-col: 499px;
  --rf-sum: 400px;
  --rf-gutter: 56px;
  background: var(--rf-bg);
  color: var(--rf-ink);
  -webkit-font-smoothing: antialiased;
}

body.orin-modern-checkout .orin-cko-wrap {
  background: var(--rf-bg);
  padding: 0;
  max-width: none;
}

/* ---------- header ---------- */

/* The brand header bar stays Orin navy; only its type is re-tuned. */
body.orin-modern-checkout .orin-cko-header {
  margin: 0;
}

body.orin-modern-checkout .orin-cko-header__bar {
  max-width: calc(var(--rf-col) + var(--rf-sum) + var(--rf-gutter) * 2);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: 0;
}

body.orin-modern-checkout .orin-cko-logo__img {
  max-height: 30px;
  width: auto;
}

body.orin-modern-checkout .orin-cko-crumb,
body.orin-modern-checkout .orin-cko-crumb a,
body.orin-modern-checkout .orin-cko-crumb span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 400;
}

body.orin-modern-checkout .orin-cko-crumb strong {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- shell ---------- */

body.orin-modern-checkout .orin-cko {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}

body.orin-modern-checkout .orin-cko__main {
  width: 100%;
  max-width: calc(var(--rf-col) + var(--rf-gutter) + 24px);
  margin-left: auto;
  padding: 34px var(--rf-gutter) 96px 24px;
  background: none;
  border: 0;
  box-shadow: none;
}

body.orin-modern-checkout .orin-cko__summary {
  width: 100%;
  max-width: calc(var(--rf-sum) + var(--rf-gutter) + 24px);
  margin-right: auto;
  padding: 34px 24px 96px var(--rf-gutter);
  background: none;
  border: 0;
  border-left: 1px solid var(--rf-line);
  border-radius: 0;
  box-shadow: none;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

/* ---------- sections & titles ---------- */

body.orin-modern-checkout .orin-cko-section {
  margin: 0 0 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.orin-modern-checkout .orin-cko-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rf-ink);
  text-transform: none;
}

body.orin-modern-checkout .orin-cko-step {
  display: none;
}

body.orin-modern-checkout .orin-cko-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

body.orin-modern-checkout .orin-cko-section__head .orin-cko-section__title {
  margin: 0;
}

body.orin-modern-checkout .orin-cko-section__head a {
  font-size: 14px;
  color: var(--rf-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.orin-modern-checkout .orin-cko-muted {
  margin: -8px 0 14px;
  font-size: 14px;
  color: var(--rf-muted);
}

body.orin-modern-checkout #orin-shipping-method .orin-cko-section__title {
  font-size: 16px;
}

body.orin-modern-checkout #ads-agent-host {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---------- express checkout ---------- */

body.orin-modern-checkout .orin-cko-express {
  margin-bottom: 26px;
}

body.orin-modern-checkout .orin-cko-express .orin-cko-section__title {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: var(--rf-muted);
}

/* One full-width slot: the Stripe element lays the wallet buttons out itself. */
body.orin-modern-checkout .orin-express-buttons {
  display: block;
}

body.orin-modern-checkout .orin-express-buttons > div,
body.orin-modern-checkout .wcpay-express-checkout-wrapper {
  display: block;
  width: 100%;
}

/* WooPayments sets the separator visible with an inline style, hence !important. */
body.orin-modern-checkout .wcpay-express-checkout-wrapper > p,
body.orin-modern-checkout #wcpay-express-checkout-button-separator {
  display: none !important;
}

body.orin-modern-checkout .orin-express-buttons > div:empty {
  display: none;
}

body.orin-modern-checkout .orin-cko-or {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--rf-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

body.orin-modern-checkout .orin-cko-or::before,
body.orin-modern-checkout .orin-cko-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rf-line);
  position: static;
  display: block;
  width: auto;
  margin: 0;
}

body.orin-modern-checkout .orin-cko-or span {
  padding: 0;
  background: none;
  font-size: 14px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-express.is-empty .orin-cko-section__title,
body.orin-modern-checkout .orin-cko-express.is-empty .orin-express-buttons {
  display: none;
}

body.orin-modern-checkout .orin-cko-express.is-empty .orin-cko-or {
  display: none;
}

/* ---------- form fields ---------- */

body.orin-modern-checkout .orin-cko-form .form-row,
body.orin-modern-checkout .orin-cko-form p.form-row {
  position: relative;
  float: none;
  width: 100%;
  margin: 0 0 9px;
  padding: 0;
}

body.orin-modern-checkout .orin-cko-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

body.orin-modern-checkout .orin-cko-fields > .form-row {
  grid-column: 1 / -1;
  margin: 0;
}

body.orin-modern-checkout .orin-cko-fields > .form-row-first {
  grid-column: 1 / 2;
  width: auto !important;
}

body.orin-modern-checkout .orin-cko-fields > .form-row-last {
  grid-column: 2 / 3;
  width: auto !important;
}

body.orin-modern-checkout .orin-cko-form .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

/* Only field labels float; component labels (toggle, rates, pickup) keep their own flow. */
body.orin-modern-checkout .orin-cko-form .form-row > label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--rf-muted);
  pointer-events: none;
  transition: top 0.12s ease, font-size 0.12s ease, transform 0.12s ease;
  max-width: calc(100% - 44px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}

body.orin-modern-checkout .orin-cko-form label .required,
body.orin-modern-checkout .orin-cko-form label abbr.required {
  display: none;
}

body.orin-modern-checkout .orin-cko-form .form-row.is-filled > label,
body.orin-modern-checkout .orin-cko-form .form-row.is-select > label,
body.orin-modern-checkout .orin-cko-form .form-row:focus-within > label {
  top: 8px;
  transform: none;
  font-size: 11px;
}

body.orin-modern-checkout .orin-cko-form input[type="text"],
body.orin-modern-checkout .orin-cko-form input[type="email"],
body.orin-modern-checkout .orin-cko-form input[type="tel"],
body.orin-modern-checkout .orin-cko-form input[type="password"],
body.orin-modern-checkout .orin-cko-form input[type="number"],
body.orin-modern-checkout .orin-cko-form select,
body.orin-modern-checkout .orin-cko-form textarea {
  box-sizing: border-box;
  width: 100%;
  height: var(--rf-field);
  min-height: var(--rf-field);
  margin: 0;
  padding: 14px 11px;
  background: transparent;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  color: var(--rf-ink);
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

body.orin-modern-checkout .orin-cko-form .form-row.is-filled input,
body.orin-modern-checkout .orin-cko-form .form-row:focus-within input,
body.orin-modern-checkout .orin-cko-form .form-row.is-select select {
  padding-top: 21px;
  padding-bottom: 6px;
}

body.orin-modern-checkout .orin-cko-form input::placeholder,
body.orin-modern-checkout .orin-cko-form textarea::placeholder {
  color: transparent;
}

body.orin-modern-checkout .orin-cko-form input:focus,
body.orin-modern-checkout .orin-cko-form select:focus,
body.orin-modern-checkout .orin-cko-form textarea:focus {
  outline: 0;
  border-color: var(--rf-ink);
  box-shadow: inset 0 0 0 1px var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-form select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 18px 18px;
}

body.orin-modern-checkout .orin-cko-form .form-row.woocommerce-invalid input,
body.orin-modern-checkout .orin-cko-form .form-row.woocommerce-invalid select {
  border-color: #b3261e;
  box-shadow: inset 0 0 0 1px #b3261e;
}

/* phone helper glyph, mirrors the reference */
body.orin-modern-checkout .orin-cko-form #billing_phone_field::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236d6c69' stroke-width='1.4'%3E%3Ccircle cx='10' cy='10' r='7.2'/%3E%3Cpath d='M8.2 7.8a1.9 1.9 0 1 1 2.9 1.7c-.6.4-1.1.8-1.1 1.6' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14' r='.7' fill='%236d6c69' stroke='none'/%3E%3C/svg%3E")
    no-repeat center / 18px 18px;
}

body.orin-modern-checkout .orin-cko-form #billing_phone_field input {
  padding-right: 40px;
}

/* checkboxes */

body.orin-modern-checkout .orin-cko-form .form-row.orin-cko-check,
body.orin-modern-checkout .orin-cko-form .woocommerce-form__label-for-checkbox,
body.orin-modern-checkout .orin-cko-check {
  position: relative;
}

body.orin-modern-checkout .orin-cko-form input[type="checkbox"],
body.orin-modern-checkout .orin-cko-form input[type="radio"].orin-cko-visual {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 20px;
  background: transparent;
  border: 1px solid #b4b2ae;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

body.orin-modern-checkout .orin-cko-form input[type="checkbox"]:checked {
  background: var(--rf-ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E")
    no-repeat center / 15px 15px;
  border-color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-form .form-row.orin-cko-check,
body.orin-modern-checkout .orin-cko-form p.form-row.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
}

/* The box sits in the padding gutter so the text keeps flowing around links. */
body.orin-modern-checkout .orin-cko-form .form-row.orin-cko-check > label,
body.orin-modern-checkout .orin-cko-form .form-row > label.checkbox,
body.orin-modern-checkout .orin-cko-form .form-row > label.woocommerce-form__label-checkbox,
body.orin-modern-checkout .orin-cko-form .woocommerce-form__label-for-checkbox {
  position: relative;
  display: block;
  padding: 0 0 0 32px;
  margin: 0;
  top: auto;
  left: auto;
  transform: none;
  max-width: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rf-ink);
  cursor: pointer;
  pointer-events: auto;
}

body.orin-modern-checkout .orin-cko-form .form-row.orin-cko-check > label > input[type="checkbox"],
body.orin-modern-checkout .orin-cko-form .form-row > label.checkbox > input[type="checkbox"],
body.orin-modern-checkout .orin-cko-form label.woocommerce-form__label-checkbox > input[type="checkbox"],
body.orin-modern-checkout .orin-cko-form .woocommerce-form__label-for-checkbox > input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
}

body.orin-modern-checkout .orin-cko-form .form-row.orin-cko-check .woocommerce-input-wrapper {
  display: contents;
}

/* ---------- delivery toggle (Ship / Pickup) ---------- */

body.orin-modern-checkout .orin-cko-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  margin: 0 0 20px;
  background: rgba(0, 0, 0, 0.043);
  border-radius: var(--rf-r-lg);
}

body.orin-modern-checkout .orin-cko-toggle__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-ink);
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease;
}

body.orin-modern-checkout .orin-cko-toggle__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.orin-modern-checkout .orin-cko-toggle__opt svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

body.orin-modern-checkout .orin-cko-toggle__opt.is-active {
  background: #f5f4f2;
  box-shadow: 0 0 0 1px var(--rf-line), 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* pickup locations */

body.orin-modern-checkout .orin-cko-pickup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
  font-size: 15px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-pickup__where {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-pickup__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.orin-modern-checkout .orin-cko-pickup__item {
  position: relative;
  display: block;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
  cursor: pointer;
}

body.orin-modern-checkout .orin-cko-pickup__item.is-selected {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-pickup__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.orin-modern-checkout .orin-cko-pickup__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.orin-modern-checkout .orin-cko-pickup__name {
  font-size: 15px;
  font-weight: 600;
}

body.orin-modern-checkout .orin-cko-pickup__price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

body.orin-modern-checkout .orin-cko-pickup__addr {
  margin: 1px 0 0;
  font-size: 15px;
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-pickup__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-pickup__note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

/* mode visibility: pickup asks for the address in the billing block instead */

body.orin-modern-checkout .orin-cko-form.is-pickup .orin-cko-fields,
body.orin-modern-checkout .orin-cko-form.is-pickup #orin-shipping-method {
  display: none;
}

body.orin-modern-checkout .orin-cko-form:not(.is-pickup) .orin-cko-pickup {
  display: none;
}

/* ---------- shipping methods ---------- */

body.orin-modern-checkout .orin-cko-methods {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

body.orin-modern-checkout .orin-cko-rates {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.orin-modern-checkout .orin-cko-rate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-ink);
  cursor: pointer;
}

body.orin-modern-checkout .orin-cko-rate.is-selected {
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-rate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.orin-modern-checkout .orin-cko-rate__price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

body.orin-modern-checkout .orin-cko-methods__empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--rf-r);
  background: var(--rf-bar);
  font-size: 14px;
  color: var(--rf-muted);
}

/* ---------- payment ---------- */

body.orin-modern-checkout #order_review {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
}

body.orin-modern-checkout #payment {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.orin-modern-checkout #payment ul.wc_payment_methods {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
  background: none;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li.wc_payment_method {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rf-line);
  background: none;
  list-style: none;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li.wc_payment_method:first-child {
  border-top: 0;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li.wc_payment_method.is-selected {
  border-top-color: transparent;
  border-radius: var(--rf-r);
  box-shadow: inset 0 0 0 2px var(--rf-ink);
  z-index: 1;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li.wc_payment_method.is-selected + li.wc_payment_method {
  border-top-color: transparent;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rf-ink);
  cursor: pointer;
  position: static;
  transform: none;
  max-width: none;
  white-space: normal;
}

body.orin-modern-checkout #payment ul.wc_payment_methods > li > label img {
  display: block;
  width: 38px;
  height: 24px;
  margin: 0;
  border-radius: 4px;
}

body.orin-modern-checkout #payment .payment-methods--logos > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.orin-modern-checkout #payment .payment-methods--logos-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  padding: 0 4px;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rf-ink);
  white-space: nowrap;
}

body.orin-modern-checkout #payment .payment_box,
body.orin-modern-checkout #payment div.payment_box,
body.orin-modern-checkout .wc_payment_method .payment_box {
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 16px 16px !important;
  font-size: 14px;
  color: var(--rf-ink);
}

body.orin-modern-checkout #payment .payment_box p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--rf-ink);
}

body.orin-modern-checkout #payment .payment_box p:last-child {
  margin-bottom: 0;
}

body.orin-modern-checkout #payment .wc-payment-form,
body.orin-modern-checkout #payment fieldset.wc-payment-form {
  margin: 0;
  padding: 0 !important;
  border: 0;
}

body.orin-modern-checkout #payment .place-order {
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: none;
}

body.orin-modern-checkout #payment #place_order,
body.orin-modern-checkout .orin-cko-sticky-pay__btn {
  width: 100%;
  height: 50px;
  padding: 14px;
  background: var(--rf-ink) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--rf-r) !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  cursor: pointer;
}

body.orin-modern-checkout #payment #place_order:hover {
  background: #1c1c1c !important;
}

/* billing address choice */

body.orin-modern-checkout .orin-cko-billing {
  margin: 26px 0 0;
}

body.orin-modern-checkout .orin-cko-billing__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-billing__list {
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
}

body.orin-modern-checkout .orin-cko-billing__opt {
  position: relative;
  display: block;
  padding: 15px 16px;
  border-top: 1px solid var(--rf-line);
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-ink);
  cursor: pointer;
}

body.orin-modern-checkout .orin-cko-billing__opt:first-child {
  border-top: 0;
}

body.orin-modern-checkout .orin-cko-billing__opt.is-selected {
  border-top-color: transparent;
  border-radius: var(--rf-r);
  box-shadow: inset 0 0 0 2px var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-billing__opt.is-selected + .orin-cko-billing__opt {
  border-top-color: transparent;
}

body.orin-modern-checkout .orin-cko-billing__opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

body.orin-modern-checkout .orin-cko-billing__fields {
  display: none;
  padding: 12px 0 0;
}

/* Same two-column grid as the delivery fields, so pairs share a row. */
body.orin-modern-checkout .orin-cko-billing.is-other .orin-cko-billing__fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

body.orin-modern-checkout .orin-cko-billing__fields > .form-row {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0;
}

body.orin-modern-checkout .orin-cko-billing__fields > .form-row-first {
  grid-column: 1 / 2;
  width: auto !important;
}

body.orin-modern-checkout .orin-cko-billing__fields > .form-row-last {
  grid-column: 2 / 3;
  width: auto !important;
}

/* card payments: the choice is a checkbox inside the card box */

body.orin-modern-checkout .orin-cko-billing__check {
  position: relative;
  display: none;
  padding: 0 0 0 32px;
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--rf-ink);
  cursor: pointer;
}

body.orin-modern-checkout .orin-cko-billing__check-input {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}

body.orin-modern-checkout .orin-cko-billing.is-check-mode {
  margin: 0;
}

body.orin-modern-checkout .orin-cko-billing.is-check-mode .orin-cko-billing__check {
  display: block;
}

body.orin-modern-checkout .orin-cko-billing.is-check-mode .orin-cko-billing__list {
  display: none;
}

body.orin-modern-checkout .orin-cko-billing.is-check-mode .orin-cko-billing__title {
  margin: 16px 0 12px;
  font-size: 15px;
}

body.orin-modern-checkout .orin-cko-billing.is-check-mode.is-same .orin-cko-billing__title {
  display: none;
}

/* pickup has no delivery address to reuse, so the form is simply open */

body.orin-modern-checkout .orin-cko-billing.is-forced .orin-cko-billing__check,
body.orin-modern-checkout .orin-cko-billing.is-forced .orin-cko-billing__list {
  display: none;
}

body.orin-modern-checkout .orin-cko-billing .orin-cko-hidden-row {
  display: none !important;
}

body.orin-modern-checkout .orin-cko-hidden-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* terms + legal */

body.orin-modern-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 16px 0 0;
}

body.orin-modern-checkout .woocommerce-terms-and-conditions-checkbox-text,
body.orin-modern-checkout .woocommerce-privacy-policy-text p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--rf-muted);
}

body.orin-modern-checkout .woocommerce-terms-and-conditions-checkbox-text a,
body.orin-modern-checkout .orin-cko-legal a {
  color: var(--rf-ink);
}

body.orin-modern-checkout .validate-required.woocommerce-validated .orin-cko-check label {
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-legal {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-trust li::before {
  content: none;
}

/* ---------- order summary ---------- */

body.orin-modern-checkout .orin-cko-summary-inner {
  padding: 0;
  background: none;
  border: 0;
}

/* The reference summary has no heading or cart link, open or closed. */
body.orin-modern-checkout .orin-cko-summary-head,
body.orin-modern-checkout .orin-cko__summary.is-open .orin-cko-summary-head {
  display: none;
}

body.orin-modern-checkout .orin-cko-summary-stack {
  display: block;
}

body.orin-modern-checkout .orin-cko-summary-items {
  display: grid;
  gap: 16px;
  max-height: none;
  overflow: visible;
  margin: 0 0 20px;
  padding: 0;
}

body.orin-modern-checkout .orin-cko-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

body.orin-modern-checkout .orin-cko-line .orin-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: 8px;
  overflow: visible;
}

body.orin-modern-checkout .orin-cko-line .orin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

body.orin-modern-checkout .orin-cko-line .orin-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  background: var(--rf-ink);
  border: 2px solid var(--rf-bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

body.orin-modern-checkout .orin-cko-line__name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-line__meta {
  margin: 1px 0 0;
  font-size: 15px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-line__total {
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

body.orin-modern-checkout .orin-cko-coupon {
  margin: 0 0 20px;
}

body.orin-modern-checkout .orin-cko-coupon__row {
  display: flex;
  align-items: center;
  gap: 0;
  height: var(--rf-field);
  padding: 0 6px 0 0;
  background: none;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
}

body.orin-modern-checkout .orin-cko-coupon__row input {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding: 0 11px;
  background: none;
  border: 0;
  border-radius: var(--rf-r) 0 0 var(--rf-r);
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--rf-ink);
}

/* Beats the generic field rule, which also carries an attribute selector. */
body.orin-modern-checkout .orin-cko-coupon__row input[type="text"] {
  font-size: 15px;
}

body.orin-modern-checkout .orin-cko-coupon__row input::placeholder {
  color: var(--rf-muted);
  opacity: 1;
}

body.orin-modern-checkout .orin-cko-coupon__row input:focus {
  outline: 0;
  box-shadow: none;
}

body.orin-modern-checkout .orin-cko-coupon__row .button {
  flex: 0 0 auto;
  height: 35px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: var(--rf-r);
  box-shadow: inset 0 0 0 1px var(--rf-line);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--rf-ink);
  cursor: pointer;
}

body.orin-modern-checkout .orin-cko-coupon__row .button:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.orin-modern-checkout .orin-cko-totals {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.orin-modern-checkout .orin-cko-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  color: var(--rf-ink);
}

body.orin-modern-checkout .orin-cko-totals__row strong {
  font-weight: 400;
}

body.orin-modern-checkout .orin-cko-totals__row.shipping .orin-cko-totals__hint {
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-totals__row--total {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  align-items: baseline;
}

body.orin-modern-checkout .orin-cko-totals__row--total > span:first-child {
  font-size: 18px;
  font-weight: 600;
}

body.orin-modern-checkout .orin-cko-totals__row--total strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

body.orin-modern-checkout .orin-cko-totals__cur {
  font-size: 12px;
  font-weight: 400;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-totals__tax {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--rf-muted);
}

body.orin-modern-checkout .orin-cko-totals small,
body.orin-modern-checkout .orin-cko-totals .includes_tax {
  display: none;
}

/* newsletter opt-in injected between the delivery and shipping sections */

body.orin-modern-checkout .woo-ml-subscribe-wrapper {
  margin: -16px 0 30px;
}

body.orin-modern-checkout .woo-ml-subscribe-wrapper label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rf-ink);
  cursor: pointer;
}

/* page canvas behind the checkout shell */

html:has(body.orin-modern-checkout),
body.orin-modern-checkout.woocommerce-checkout {
  background: var(--rf-bg, #f0efec);
}

/* summary toggle bar (mobile) */

body.orin-modern-checkout .orin-cko-summary-toggle {
  display: none;
}

/* ---------- desktop / mobile switch ---------- */

@media (max-width: 999px) {
  body.orin-modern-checkout .orin-cko {
    display: flex;
    flex-direction: column;
  }

  body.orin-modern-checkout .orin-cko__summary {
    order: -1;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid var(--rf-line);
    position: static;
  }

  body.orin-modern-checkout .orin-cko-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 17px 20px;
    background: var(--rf-bar);
    border: 0;
    border-bottom: 1px solid var(--rf-line);
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--rf-ink);
    cursor: pointer;
  }

  body.orin-modern-checkout .orin-cko__summary.is-open .orin-cko-summary-toggle {
    border-bottom-color: var(--rf-line);
  }

  body.orin-modern-checkout .orin-cko-summary-toggle__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
  }

  body.orin-modern-checkout .orin-cko-summary-toggle__label::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E")
      no-repeat center / 16px 16px;
    transition: transform 0.16s ease;
  }

  body.orin-modern-checkout .orin-cko__summary.is-open .orin-cko-summary-toggle__label::after {
    transform: rotate(180deg);
  }

  body.orin-modern-checkout .orin-cko-summary-toggle__total {
    font-size: 18px;
    font-weight: 600;
    color: var(--rf-ink);
  }

  body.orin-modern-checkout .orin-cko-summary-inner {
    display: none;
    padding: 20px;
  }

  body.orin-modern-checkout .orin-cko__summary.is-open .orin-cko-summary-inner {
    display: block;
    padding: 20px;
  }

  body.orin-modern-checkout .orin-cko-summary-items {
    max-height: none;
    overflow: visible;
  }

  body.orin-modern-checkout .orin-cko__main {
    max-width: none;
    margin: 0;
    padding: 24px 20px 110px;
  }

  body.orin-modern-checkout .orin-cko-header__bar {
    padding: 14px 20px;
  }
}

@media (min-width: 1000px) {
  body.orin-modern-checkout .orin-cko-summary-inner {
    display: block !important;
  }
}

/* sticky wallet bar — Apple Pay + Google Pay live here, not at the top */

body.orin-modern-checkout .orin-cko-sticky-pay {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--rf-bg);
  border-top: 1px solid var(--rf-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

body.orin-modern-checkout .orin-cko-sticky-pay.is-empty {
  display: none;
}

body.orin-modern-checkout .orin-cko-sticky-pay .orin-express-buttons,
body.orin-modern-checkout .orin-cko-sticky-pay .wcpay-express-checkout-wrapper,
body.orin-modern-checkout .orin-cko-sticky-pay #wcpay-express-checkout-element {
  display: block;
  width: 100%;
  max-width: 499px;
  margin: 0 auto;
}

body.orin-modern-checkout .orin-cko-wallet-skel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 499px;
  margin: 0 auto;
}

body.orin-modern-checkout .orin-cko-sticky-pay.is-ready .orin-cko-wallet-skel {
  display: none;
}

body.orin-modern-checkout .orin-cko-wallet-skel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

body.orin-modern-checkout .orin-cko-wallet-skel__btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

body.orin-modern-checkout .orin-cko-wallet-skel__btn--apple {
  background: #000;
  color: #fff;
}

body.orin-modern-checkout .orin-cko-wallet-skel__btn--google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #d0cfcc;
}

body.orin-modern-checkout .orin-cko-sticky-pay iframe {
  min-height: 48px;
}

body.orin-modern-checkout.has-orin-sticky-pay .orin-cko-wrap {
  padding-bottom: 88px;
}

@media (max-width: 999px) {
  body.orin-modern-checkout .orin-cko-sticky-pay {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  body.orin-modern-checkout .orin-cko-sticky-pay .orin-express-buttons,
  body.orin-modern-checkout .orin-cko-sticky-pay .wcpay-express-checkout-wrapper,
  body.orin-modern-checkout .orin-cko-sticky-pay #wcpay-express-checkout-element,
  body.orin-modern-checkout .orin-cko-wallet-skel {
    max-width: none;
  }
}

/* notices */

body.orin-modern-checkout .woocommerce-error,
body.orin-modern-checkout .woocommerce-message,
body.orin-modern-checkout .woocommerce-info {
  margin: 0 0 16px;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r);
  font-size: 14px;
  color: var(--rf-ink);
  list-style: none;
}

body.orin-modern-checkout .woocommerce-error {
  border-color: #b3261e;
  color: #b3261e;
}

body.orin-modern-checkout .orin-cko-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* legacy bits that must not show in the new layout */

body.orin-modern-checkout .orin-cko-country-si,
body.orin-modern-checkout .orin-cko-country-change,
body.orin-modern-checkout details.orin-cko-apt > summary,
body.orin-modern-checkout .orin-cko-wc-shipping,
body.orin-modern-checkout #orin-alt-shipping,
body.orin-modern-checkout .orin-optional-hide {
  display: none !important;
}

body.orin-modern-checkout details.orin-cko-apt {
  display: contents;
}
