/* Haura checkout. Measured on the store's Shopify checkout (Dec 2026): same fonts, sizes, colours, radii and spacing. */
:root {
  --text: #000;
  --sub: rgba(0, 0, 0, .56);
  --label: #707070;
  --line: #dedede;
  --rule: #dfdfdf;
  --accent: #52811f;
  --cta: #53af01;
  --cta-hover: #4a9c01;
  --tint: #f3f8f1;
  --grey: #f5f5f5;
  --err: #dd1d1d;
  --r: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/18.9px var(--font); color: var(--text); background: #fff; }
h2, h3, p { margin: 0; }
a { color: var(--accent); }
.ic { fill: none; stroke: currentColor; stroke-width: 1; flex: none; display: block; }
strong { font-weight: 600; }

/* ---------- Header ---------- */
.hd { background: #fff; border-bottom: 1px solid var(--rule); height: 81px; }
.hd__in { position: relative; max-width: 980px; height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.hd__logo { display: block; line-height: 0; }
.hd__logo img { display: block; width: 200px; height: 41px; object-fit: contain; }
.hd__bag { position: absolute; right: 0; top: 28px; color: #4a2c1a; line-height: 0; }

/* ---------- Two columns ---------- */
.wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 440px) minmax(0, 1fr); min-height: calc(100vh - 81px); }
.main { grid-column: 1 / 3; grid-row: 1; display: flex; justify-content: flex-end; background: #fff; }
.main__in { width: 100%; max-width: 540px; padding: 38px 40px 0 0; }
.aside { grid-column: 3 / 5; grid-row: 1; background: var(--grey); }
.aside__in { position: sticky; top: 0; width: 100%; max-width: 440px; padding: 40px 0 40px 40px; }
.sumbar, .mtotal { display: none; }

/* ---------- Express checkout ---------- */
.express { margin: -4px 0 21px; text-align: center; }
.express__title { font-size: 14px; line-height: 18.9px; color: var(--sub); margin-bottom: 12px; }
.express__btns { display: flex; gap: 10px; }
.express__btn { flex: 1 1 0; min-width: 0; height: 48px; border: 0; border-radius: var(--r); background: #000 center / auto 100% no-repeat; color: #fff; font: 600 16px/1 var(--font); cursor: pointer; }
.express__btn:hover { opacity: .88; }
.express__btn:disabled { opacity: .6; cursor: default; }
.express .co-err:not(:empty) { margin-top: 10px; }
.express__or { display: flex; align-items: center; gap: 14px; margin-top: 21px; font-size: 14px; line-height: 18.9px; color: var(--sub); }
.express__or::before, .express__or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---------- Sections ---------- */
.sec { margin-bottom: 33px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sec h2 { font-size: 20px; line-height: 24px; font-weight: 600; }
.sec h3 { font-size: 16px; line-height: 19.2px; font-weight: 600; margin-bottom: 14px; }
.sec > div + div, .sec > .row + div, .sec > div + .row { margin-top: 10px; }
.sec--ship { margin-top: -9px; margin-bottom: 32px; }
.sec--pay h2 { margin-bottom: 4px; }
.sec--pay .muted { margin-bottom: 14px; }
.sec--pay .tiles { margin-bottom: 16px; }
.muted { color: var(--sub); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
.row > div { min-width: 0; }

/* ---------- Fields ---------- */
.co-field { position: relative; height: 49px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.co-field input, .co-field select {
  display: block; width: 100%; height: 47px; border: 0; outline: 0; background: transparent; border-radius: var(--r);
  font: 400 14px/18.9px var(--font); color: var(--text); padding: 13.55px 10px; margin: 0; appearance: none; -webkit-appearance: none;
}
.co-field input::placeholder { color: var(--label); opacity: 1; }
.co-field label { position: absolute; left: 10px; top: 9px; font-size: 12px; line-height: 16.2px; color: var(--label); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 20px); }
.co-field input:not(:placeholder-shown) { padding: 21.05px 10px 6.05px; }
.co-field input:not(:placeholder-shown) + label { opacity: 1; transform: none; }
.co-field--select select { padding: 21.05px 30px 6.05px 10px; cursor: pointer; }
.co-field--select label { opacity: 1; transform: none; }
.co-field__chev { position: absolute; right: 16px; top: 20px; pointer-events: none; stroke-width: 1.4; }
.co-field__icon { position: absolute; right: 10px; top: 15px; color: var(--label); line-height: 0; }
.co-field:has(.co-field__icon) input { padding-right: 38px; }
.co-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.co-field.is-invalid { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.co-err { color: var(--err); font-size: 14px; line-height: 18.9px; }
.co-err:not(:empty) { margin-top: 6px; }
.co-err--form:not(:empty) { margin: 14px 0 0; }

/* Checkbox */
.chk { display: flex; align-items: center; margin-top: 9px; cursor: pointer; width: fit-content; position: relative; }
.chk input { position: absolute; opacity: 0; width: 19px; height: 19px; margin: 0; cursor: pointer; }
.chk__box { width: 19px; height: 19px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: #fff; transition: box-shadow .15s; }
.chk__box .ic { stroke-width: 2; opacity: 0; }
.chk input:checked + .chk__box { box-shadow: inset 0 0 0 10px var(--accent); }
.chk input:checked + .chk__box .ic { opacity: 1; }
.chk input:focus-visible + .chk__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk__txt { padding-left: 10px; }

/* Shipping method */
.ship { display: flex; justify-content: space-between; gap: 12px; min-height: 67px; padding: 14px; background: var(--tint); border: 1px solid var(--accent); border-radius: var(--r); }
.ship__name, .ship__price { font-weight: 600; }
.ship__price { white-space: nowrap; }

/* Payment */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.tile.is-on { background: var(--tint); border-color: var(--accent); }
.tile img { display: block; }
.tile--btn { font: inherit; color: inherit; text-align: left; align-items: flex-start; cursor: pointer; }
.paypal-note { margin-bottom: 10px; }
.sec > #cardPane, .sec > #paypalPane { margin-top: 0; }
.tile--btn:hover { border-color: var(--accent); }
.slot { position: relative; min-height: 47px; margin-bottom: 10px; }
.row .slot { margin-bottom: 0; }
.sec--pay .row { margin-bottom: 10px; }
.slot__cards { position: absolute; right: 14px; top: 13px; display: flex; align-items: center; gap: 4px; pointer-events: none; z-index: 1; }
.slot__cards img { display: block; }
.slot__more { height: 24px; padding: 0 4px; border: 1px solid rgba(0, 0, 0, .07); border-radius: 3px; background: #fff; font-size: 10px; line-height: 22px; color: var(--accent); }

/* Pay button */
.paybtn { display: block; width: 100%; height: 50px; margin-top: 32px; border: 0; border-radius: var(--r); background: var(--cta); color: #fff; font: 600 16px/21.6px var(--font); cursor: pointer; transition: background .15s; }
.paybtn:hover { background: var(--cta-hover); }
.paybtn:disabled { opacity: .7; cursor: default; }
.legal { margin-top: 14px; font-size: 12px; line-height: 16.2px; color: var(--sub); }
.branding { margin-top: 14px; }
.notice { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #f0d58c; background: #fff8e5; border-radius: var(--r); }

/* Footer */
.ft { margin-top: 41px; padding: 20px 0 40px; }
.ft summary { display: inline-block; list-style: none; cursor: pointer; font-size: 14px; line-height: 18.9px; color: var(--accent); text-decoration: underline; }
.ft summary::-webkit-details-marker { display: none; }
.ft a { display: block; width: fit-content; margin-top: 8px; font-size: 14px; line-height: 18.9px; color: var(--accent); text-decoration: underline; }

/* ---------- Order summary ---------- */
.lines-wrap { position: relative; }
.lines { list-style: none; margin: -7px -15px 0 -7px; padding: 7px 15px 4px 7px; max-height: 352px; overflow-y: auto; display: grid; gap: 16px; scrollbar-width: thin; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 15px; align-items: center; min-height: 64px; }
.line__img { position: relative; width: 64px; height: 64px; border-radius: 16px; background: #ececec; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .06); }
.line__img img { display: block; width: 64px; height: 64px; object-fit: cover; border: 2px solid #fff; border-radius: 16px; }
.line__qty { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 8px; background: #000; color: #fff; font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; }
.line__sub, .line__disc { font-size: 12px; line-height: 16.2px; color: var(--sub); }
.line__disc { display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.line__disc b { font-weight: 400; text-transform: uppercase; }
.line__price { text-align: right; white-space: nowrap; }
.line__price s { display: block; font-size: 12px; line-height: 16.2px; color: var(--sub); }
.more { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 35px; padding: 0 14px; border: 0; border-radius: 18px; background: rgba(0, 0, 0, .62); color: #fff; font: 400 14px/18.9px var(--font); cursor: pointer; white-space: nowrap; }
.totals { margin-top: 20px; }
.totals__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.totals__row + .totals__row { margin-top: 6px; }
.totals__row--grand { margin-top: 16px !important; align-items: center; }
.totals__row--grand strong { font-size: 18px; line-height: 24.3px; }
.totals__row--grand small { font-size: 12px; line-height: 16.2px; color: var(--sub); margin-right: 6px; }
.totals__save { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.subnote { margin-top: 16px; font-size: 12px; line-height: 16.2px; color: var(--sub); }

/* ---------- Mobile / tablet: one column ---------- */
@media (max-width: 999px) {
  .hd__in { margin: 0 14px; }
  .wrap { display: flex; flex-direction: column; min-height: 0; }
  .sumbar { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 63px; padding: 0 14px; border: 0; background: #f6f6f6; font: 400 14px/18.9px var(--font); color: var(--text); cursor: pointer; text-align: left; }
  .sumbar__label { display: flex; align-items: center; gap: 8px; color: var(--accent); }
  .sumbar__label .ic { stroke-width: 1.4; transition: transform .2s; }
  .sumbar[aria-expanded="true"] .sumbar__label .ic { transform: rotate(180deg); }
  .sumbar__prices { text-align: right; }
  .sumbar__prices s { display: block; font-size: 12px; line-height: 16.2px; color: var(--sub); }
  .sumbar__prices strong { font-size: 18px; line-height: 24.3px; }
  .aside { order: 1; display: none; border-bottom: 1px solid var(--rule); }
  .aside.is-open { display: block; }
  .aside__in { position: static; max-width: none; padding: 21px 14px; }
  .main { order: 2; display: block; }
  .main__in { max-width: 560px; margin: 0 auto; padding: 21px 14px 0; }
  .row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .mtotal { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 12px; width: 100%; margin-top: 24px; padding: 0; border: 0; background: none; font: 400 14px/18.9px var(--font); color: var(--text); text-align: left; cursor: pointer; }
  .mtotal__img { width: 42px; height: 42px; border-radius: 10px; background: #ececec; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .04); }
  .mtotal__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .mtotal__txt strong { display: block; font-size: 16px; line-height: 21px; }
  .mtotal__txt span { color: var(--sub); }
  .mtotal__prices { text-align: right; }
  .mtotal__prices s { display: block; color: var(--sub); line-height: 16px; }
  .mtotal__prices small { font-size: 12px; color: var(--sub); }
  .mtotal__prices strong { font-size: 18px; line-height: 24.3px; }
  .mtotal .ic { stroke-width: 1.4; }
  .paybtn { margin-top: 14px; }
  .ft { margin-top: 13px; }
}
