/* eThobe cart, account and auth pages.
 *
 * These pages carry working behaviour — quantity updates, coupon codes,
 * address forms, the shipping estimator — all bound to the markup and class
 * names already there. So nothing here changes that markup: the existing
 * classes are restyled in place. The only template change is the heading
 * band above them.
 */

.eth-account,
.t4s-main-cart,
.t4s-section-customers{
  --bg:#faf7f1;
  --panel:#f1ead9;
  --ink:#231d12;
  --muted:#6f6552;
  --accent:#9a7733;
  --accent-deep:#7a5d24;
  --line:#e6ddc8;
  --card:#ffffff;
  --display:'Marcellus','Times New Roman',serif;
  --body:'Jost','Segoe UI',Arial,sans-serif;
  font-family:var(--body);color:var(--ink);
}

/* ---- the heading band --------------------------------------------------- */

.eth-account{background:var(--bg);border-bottom:1px solid var(--line)}
.eth-account .container{max-width:1220px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.eth-account .eth-page-head{padding-block:40px 32px}
.eth-account .eyebrow{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);font-weight:600;margin:0 0 8px}
.eth-account h1{font-family:var(--display);font-size:clamp(28px,4vw,42px);font-weight:400;margin:0;color:var(--ink);letter-spacing:-.01em}

/* ---- shared surfaces ---------------------------------------------------- */

/* main-cart.css pushes this section down 60px, which showed as a white band
   between the heading and the cart. */
.t4s-main-cart{background:var(--bg);padding-block:40px 70px;margin-top:0}

/* The customers section carries t4s-container, so a background on it only
   painted as wide as the content and left white down both sides. This paints
   edge to edge while the content stays where it is. */
.t4s-section-customers{
  background:var(--bg);
  padding-block:40px 70px;
  margin-top:0;
  box-shadow:0 0 0 100vmax var(--bg);
  clip-path:inset(0 -100vmax);
}

.t4s-main-cart .t4s-container,
.t4s-section-customers.t4s-container{max-width:1220px;margin:0 auto;padding-left:16px;padding-right:16px}

/* ---- cart --------------------------------------------------------------- */

.t4s-main-cart .t4s-cartPage__header{border-bottom:1px solid var(--line);padding-bottom:12px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600}
.t4s-main-cart .t4s-cartPage__items > *{border-bottom:1px solid var(--line);padding-block:18px}
.t4s-main-cart .t4s-cart_page_heading a{font-size:15.5px;font-weight:500;color:var(--ink)}
.t4s-main-cart .t4s-cart_page_heading a:hover{color:var(--accent-deep)}
.t4s-main-cart .t4s-cart_meta_variant{font-size:13px;color:var(--muted)}
.t4s-main-cart .t4s-cart_price,
.t4s-main-cart .t4s-cart-item-price,
.t4s-main-cart .t4s-cart_meta_prices{font-size:14.5px;color:var(--ink)}

/* cart footer: see "cart: footer" at the end */

/* ---- account: the sidebar ----------------------------------------------- */

.t4s-section-customers .t4s-account-nav ul{list-style:none;margin:0;padding:0;border:1px solid var(--line);background:var(--card)}
.t4s-section-customers .t4s-account-nav-link + .t4s-account-nav-link{border-top:1px solid var(--line)}
.t4s-section-customers .t4s-account-nav-link a{display:flex;align-items:center;gap:11px;padding:13px 16px;font-size:14.5px;color:var(--muted)}
.t4s-section-customers .t4s-account-nav-link a:hover{background:var(--bg);color:var(--accent-deep)}
.t4s-section-customers .t4s-account-nav-link a svg{width:18px;height:18px;flex:none;stroke:currentColor}
.t4s-section-customers .t4s-account-nav-link.is--active a{background:var(--ink);color:var(--bg);font-weight:500}

.t4s-section-customers .t4s-account-content{background:var(--card);border:1px solid var(--line);padding:26px}

/* ---- forms, tables and buttons across all of them ----------------------- */

.t4s-main-cart input[type=text],.t4s-main-cart input[type=email],.t4s-main-cart input[type=number],.t4s-main-cart select,
.t4s-section-customers input[type=text],.t4s-section-customers input[type=email],.t4s-section-customers input[type=password],
.t4s-section-customers input[type=tel],.t4s-section-customers select,.t4s-section-customers textarea{
  border:1px solid var(--line);background:var(--card);padding:11px 13px;font:inherit;font-size:14.5px;color:var(--ink);border-radius:0;width:100%;max-width:100%}
.t4s-main-cart input:focus,.t4s-section-customers input:focus,
.t4s-section-customers select:focus,.t4s-section-customers textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}

.t4s-section-customers label,
.t4s-main-cart label{font-size:12.5px;font-weight:600;letter-spacing:.06em;color:var(--ink);margin-bottom:5px;display:inline-block}

.t4s-main-cart .button,.t4s-main-cart button[type=submit],.t4s-main-cart .t4s-btn,
.t4s-section-customers .button,.t4s-section-customers button[type=submit],.t4s-section-customers .t4s-btn{
  font-family:var(--body);font-weight:600;font-size:14px;letter-spacing:.1em;text-transform:uppercase;
  padding:13px 28px;border:1px solid var(--ink);background:var(--ink);color:var(--bg);cursor:pointer;border-radius:0;transition:.2s}
.t4s-main-cart .button:hover,.t4s-main-cart button[type=submit]:hover,
.t4s-section-customers .button:hover,.t4s-section-customers button[type=submit]:hover{background:var(--accent-deep);border-color:var(--accent-deep)}

/* checkout is the one action that should pull the eye */
.t4s-main-cart [data-checkout-btn],
.t4s-main-cart .t4s-cart-checkout-btn{background:var(--accent);border-color:var(--accent);width:100%}

.t4s-section-customers table{width:100%;border-collapse:collapse;font-size:14.5px}
.t4s-section-customers th{text-align:left;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--line)}
.t4s-section-customers td{padding:12px;border-bottom:1px solid var(--line);color:var(--ink)}
.t4s-section-customers a{color:var(--accent-deep)}
.t4s-section-customers a:hover{color:var(--ink)}


/* ---- login, register, reset --------------------------------------------- */
/* These have no sidebar, so Kalles' account layout left a wide empty column
   beside a narrow form. Centre them instead. */

.t4s-section-customers .t4s-customer.is--login,
.t4s-section-customers .t4s-customer.is--register,
.t4s-section-customers .t4s-customer.is--reset{max-width:440px;margin:0 auto;padding:0}
.t4s-section-customers .t4s-customer.is--login form,
.t4s-section-customers .t4s-customer.is--register form,
.t4s-section-customers .t4s-customer.is--reset form{background:var(--card);border:1px solid var(--line);padding:28px}
.t4s-section-customers .t4s-customer .t4s_btn_submmit{background:var(--ink);color:var(--bg);border:1px solid var(--ink);font-family:var(--body);letter-spacing:.1em}
.t4s-section-customers .t4s-customer .t4s_btn_submmit:hover{background:var(--accent-deep);border-color:var(--accent-deep)}

/* ---- cart: footer --------------------------------------------------------
   The footer is one Kalles .t4s-row holding the order summary (the coupon box
   and shipping estimator were taken out). It becomes a card on the right.
   Kalles forces its own font on .t4s-btn-base with !important, so that is
   answered in kind. */

.t4s-main-cart .t4s-btn-base{font-family:var(--body) !important}

.t4s-main-cart .t4s-cartPage__footer{display:block;margin:32px 0 0}
.t4s-main-cart .t4s-cartPage__footer > .t4s-row{display:grid;grid-template-columns:minmax(0,420px);justify-content:end;align-items:start;margin:0}
.t4s-main-cart .t4s-cartPage__footer > .t4s-row > .t4s-col-item{width:auto;max-width:none;flex:none;margin:0;padding:0;text-align:left !important}

/* order summary */
.t4s-main-cart .t4s-cartPage__footer > .t4s-row > .t4s-col-item:last-child{background:var(--panel);border:1px solid var(--line);padding:28px}
.t4s-main-cart .t4s-cart-total{background:none;padding:0;min-width:0;margin:0 0 6px;text-transform:none;font-size:inherit;color:var(--ink)}
.t4s-main-cart .t4s-cart-total > .t4s-row{display:flex !important;width:100%;justify-content:space-between;align-items:baseline;margin:0}
.t4s-main-cart .t4s-cart-total > .t4s-row > .t4s-col-item{width:auto;padding:0}
.t4s-main-cart .t4s-cart-total strong{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.t4s-main-cart .t4s-cart__totalPrice{font-family:var(--display);font-size:28px;font-weight:400;color:var(--accent-deep)}
.t4s-main-cart .t4s-cart__totalPrice del{font-size:16px;color:var(--muted);margin-right:6px}
.t4s-main-cart .t4s-cart__tax{margin:0 0 18px;font-size:13px;color:var(--muted);text-align:left}
.t4s-main-cart .t4s-cart_discounts{margin:0 0 10px;font-size:13px;color:var(--accent-deep)}
.t4s-main-cart .t4s-btn-group__checkout-update{display:block;width:100%}
.t4s-main-cart .t4s-btn-group__checkout-update .t4s-btn__checkout{--btn-color:#fff;--btn-background:var(--accent);--btn-border:var(--accent);--btn-color-hover:#fff;--btn-background-hover:var(--accent-deep);--btn-border-hover:var(--accent-deep);display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin:0 !important;background:var(--accent);border:1px solid var(--accent);color:#fff;font-size:15px}
.t4s-main-cart .t4s-btn-group__checkout-update .t4s-btn__checkout:hover{background:var(--accent-deep);border-color:var(--accent-deep);color:#fff}
.t4s-main-cart .t4s-btn__checkout svg.t4s-btn-icon{width:18px;height:18px;fill:currentColor;margin:0}


@media (max-width:860px){
  .t4s-main-cart .t4s-cartPage__footer > .t4s-row{grid-template-columns:1fr}
}
