/* elitesoft — cart page and WooCommerce pages (checkout keeps its defaults on the theme base). */
.es-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.cart__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "thumb info qty price" "thumb rm qty price"; gap: 4px 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart__item .drawer__thumb { grid-area: thumb; height: 56px; border-radius: var(--r-sm); }
.cart__info { grid-area: info; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.cart__name { font: 600 22px/1.15 var(--display); text-decoration: none; overflow-wrap: anywhere; }
.cart__name:hover { color: var(--tungsten); }
.cart__meta { font-size: var(--t-xs); color: var(--muted); }
.cart__qty { grid-area: qty; display: grid; gap: 4px; }
.cart__qty label { font-size: 12px; color: var(--muted); }
.cart__qty input { width: 76px; min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(238, 234, 227, .05); color: var(--ink); padding: 0 10px; font: 600 16px var(--sans); }
.cart__qty input:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.cart__price { grid-area: price; text-align: right; font-variant-numeric: tabular-nums; display: grid; justify-items: end; }
.cart__price b { font: 600 20px var(--display); }
.cart__remove { grid-area: rm; justify-self: start; color: var(--muted); font-size: var(--t-xs); min-height: 32px; display: inline-flex; align-items: center; }
.cart__remove:hover { color: var(--ink); }
.cart__actions { margin-top: 18px; }
.cart__sum { position: sticky; top: calc(var(--top-h) + 16px); padding: 24px; display: grid; gap: 16px; }
.cart__sum .h3 { margin: 0; }
.cart__sum dl { margin: 0; }
.cart__sum dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cart__sum dt { color: var(--ink-soft); }
.cart__sum dd { margin: 0; font: 600 30px var(--display); font-variant-numeric: tabular-nums; }
.cart__vat, .cart__help { margin: 0; font-size: var(--t-xs); color: var(--muted); }
.cart__help a { color: var(--ink); }
.cart__go { width: 100%; min-height: 56px; }
.cart-empty { display: grid; gap: 18px; padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.cart-empty .lead { margin: 0; }
.cart-notices:empty { display: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
@media (max-width: 900px) { .es-cart { grid-template-columns: minmax(0, 1fr); } .cart__sum { position: static; } }
@media (max-width: 560px) {
	.cart__item { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty price" "thumb rm rm"; }
	.cart__name { font-size: 19px; }
}

/* ---------- WooCommerce pages (checkout, account): the theme base only ---------- */
.wc-page { color: var(--ink); }
.wc-page a { color: var(--tungsten); }
.wc-page input:not([type="checkbox"]):not([type="radio"]), .wc-page select, .wc-page textarea { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); min-height: 44px; padding: 8px 12px; font: 400 16px var(--sans); }
.wc-page input:focus-visible, .wc-page select:focus-visible, .wc-page textarea:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.wc-page label { color: var(--ink-soft); }
.wc-page button, .wc-page .button { font: 600 16px var(--sans); }
.wc-page .wc-block-components-text-input input, .wc-page .wc-block-components-combobox .components-combobox-control input, .wc-page .wc-blocks-components-select select { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line-2) !important; }
.wc-page .wc-block-components-text-input label, .wc-page .wc-blocks-components-select label { color: var(--muted) !important; }
.wc-page .wc-block-components-button:not(.is-link) { background: var(--tungsten); color: var(--tungsten-ink); border-radius: var(--r-pill); min-height: 50px; }
.wc-page .wc-block-components-panel, .wc-page .wc-block-components-totals-wrapper, .wc-page .wc-block-components-order-summary { border-color: var(--line) !important; }


/* ---------- «My account» (woocommerce/myaccount/form-login.php; logged-in pages of WooCommerce) ---------- */
.acc { display: grid; gap: 22px; }
.acc__intro { margin: 0; max-width: 72ch; color: var(--ink-soft); font-size: 17px; }
.acc__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: start; }
.acc__card { display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.acc__card--main { border-color: var(--tungsten-line); background: radial-gradient(120% 90% at 0% 0%, rgba(242, 176, 94, .12), transparent 60%), var(--surface); }
.acc__tag { margin: 0; font: 600 13px/1.2 var(--sans); color: var(--tungsten); }
.acc__title { margin: 0; font: 700 clamp(22px, 2vw, 27px)/1.15 var(--display); letter-spacing: -0.02em; }
.acc__text, .acc__note { margin: 0; color: var(--ink-soft); font-size: 15px; }
.acc__note { color: var(--muted); font-size: 14px; }
.acc__list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--ink-soft); font-size: 15px; }
.acc__list li::marker { color: var(--tungsten); }
.acc__form { display: grid; gap: 8px; margin-top: 6px; }
.acc__step { display: grid; gap: 8px; }
.acc__step[hidden] { display: none; }
.acc__label { font: 600 14px var(--sans); color: var(--ink-soft); }
.wc-page .acc__in, .acc__in { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--ground); color: var(--ink); font: 400 16px var(--sans); }
.acc__in:focus { outline: none; border-color: var(--tungsten); box-shadow: 0 0 0 3px rgba(242, 176, 94, .2); }
.wc-page .acc__in--code, .acc__in--code { min-height: 64px; text-align: center; font: 700 30px/1 var(--display); letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.acc__btn { margin-top: 6px; width: 100%; min-height: 50px; justify-content: center; }
.acc__btn[disabled] { opacity: .6; cursor: progress; }
.acc__check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.acc__check input { width: 18px; height: 18px; accent-color: var(--tungsten); }
.acc__link { justify-self: start; padding: 6px 0; border: 0; background: none; color: var(--tungsten); font: 600 14px var(--sans); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.acc__msg { margin: 4px 0 0; min-height: 1.4em; font-size: 14px; color: var(--ink-soft); }
.acc__msg.is-bad { color: #F08A7E; font-weight: 600; }
.acc .woocommerce-privacy-policy-text p { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .acc__grid { grid-template-columns: 1fr; } }

/* logged in: the menu as tabs, the content as a card */
.wc-page .woocommerce:has(.woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: var(--r-xs); color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-2); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--surface-3); color: var(--ink); box-shadow: inset 3px 0 0 var(--tungsten); }
.woocommerce-MyAccount-content { min-width: 0; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.woocommerce-MyAccount-content > p:first-child { font-size: 17px; }
.woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-MyAccount-content .button, .woocommerce-MyAccount-content button[type=submit] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--tungsten); background: var(--tungsten); color: #17120A; font-weight: 600; text-decoration: none; cursor: pointer; }
.woocommerce-MyAccount-content input:not([type=checkbox]):not([type=radio]), .woocommerce-MyAccount-content select { width: 100%; }
@media (max-width: 800px) { .wc-page .woocommerce:has(.woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); } .woocommerce-MyAccount-navigation ul { grid-auto-flow: column; overflow-x: auto; } .woocommerce-MyAccount-navigation a { white-space: nowrap; } }
.acc .show-password-input { display: none; }

/* the consent for digital licences, asked by the order button before the payment starts (site.js) */
.es-waiver-msg { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid var(--tungsten); border-radius: var(--r-xs); background: rgba(242, 176, 94, .12); color: var(--ink); font-size: var(--t-sm); max-width: none; }
.wc-block-components-checkbox.es-need { outline: 2px solid var(--tungsten); outline-offset: 6px; border-radius: var(--r-xs); }

/* «My account»: benefits and partner area (inc/account-extra.php) */
.acc__partner { margin: -8px 0 0; color: var(--muted); font-size: var(--t-sm); }
.acc__partner a { color: var(--ink); }
.res { display: grid; gap: 18px; }
.res__lead { margin: 0; font-size: 17px; color: var(--ink-soft); max-width: 70ch; }
.res__empty { margin: 0; color: var(--muted); max-width: 70ch; }
.res__help { margin: 6px 0 0; color: var(--muted); font-size: var(--t-sm); }
.res__h { margin: 10px 0 10px; font: 600 18px var(--display); }
.res__lic { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.res__lic li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface-2); }
.res__lic a { color: var(--ink); font-weight: 600; text-decoration: none; }
.res__lic span { color: var(--muted); font-size: var(--t-sm); }
.res__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.res__item { display: flex; align-items: center; gap: 12px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--surface-2); }
.res__what { flex: 1 1 auto; min-width: 0; }
.res__what b { display: block; }
.res__what p { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--t-sm); }
.res__what small { display: block; margin-top: 4px; color: var(--muted); font-size: var(--t-xs); }
.res__go { flex: none; min-height: 42px; font-size: 15px; }
@media (max-width: 620px) { .res__item { flex-direction: column; align-items: stretch; } }
