/* ===== PRIVAL checkout — тёмна преміум-гама (перестилізація simplecheckout) ===== */
/* Підключається у simplecheckout.twig. Відкат = прибрати <link>. Пайплайн заказів НЕ чіпаємо. */

:root{
  --pc-paper:#1b150f; --pc-card:#2a2016; --pc-card2:#342719; --pc-ink:#efe6d2; --pc-ink2:#b6a785;
  --pc-line:#4a3d29; --pc-olive:#8a8f4e; --pc-green:#3d6b32; --pc-green-sel:#2e5326; --pc-green-br:#6fbf58;
  --pc-gold:#d8ad4c; --pc-radius:15px;
}
/* фон сторінки чекауту */
body.checkout-simplecheckout, #common-home.checkout-page, .simple-content{ background:var(--pc-paper); }
.simple-content, .simplecheckout-left-column, .simplecheckout-right-column{ color:var(--pc-ink); }

/* картки-блоки */
.simplecheckout-block{ background:var(--pc-card); border:1px solid var(--pc-line); border-radius:var(--pc-radius);
  margin-bottom:14px; overflow:hidden; box-shadow:0 8px 24px rgba(0,0,0,.35); }
.simplecheckout-block-content{ background:transparent; padding:15px; color:var(--pc-ink); }

/* заголовки блоків */
.checkout-heading, .checkout-heading.panel-heading{ background:transparent !important; border:0 !important; padding:15px 15px 4px !important; }
.checkout-heading .panel-title, .checkout-heading h4, .checkout-heading b{ color:var(--pc-ink) !important; font-weight:800 !important;
  font-size:16px !important; display:flex; align-items:center; gap:9px; }
/* нумерація 1-2-3 через ::before (JS проставляє data-step) */
.checkout-heading[data-pc]::before{ content:attr(data-pc); width:23px; height:23px; flex:0 0 auto; border-radius:50%;
  background:var(--pc-green); color:#fff; font-size:12px; display:grid; place-items:center; font-weight:700; }

/* поля вводу — тёмні з контрастним бордером */
.simplecheckout-block input[type=text], .simplecheckout-block input[type=tel], .simplecheckout-block input[type=email],
.simplecheckout-block select, .simplecheckout-block textarea{
  background:#221a12 !important; border:1.5px solid #5f4e33 !important; color:var(--pc-ink) !important;
  border-radius:11px !important; padding:11px 13px !important; font-size:15px !important; box-shadow:none !important; }
.simplecheckout-block input::placeholder, .simplecheckout-block textarea::placeholder{ color:#8c7d61 !important; }
.simplecheckout-block input:focus, .simplecheckout-block select:focus, .simplecheckout-block textarea:focus{
  border-color:var(--pc-green-br) !important; background:#2a2016 !important; box-shadow:0 0 0 3px rgba(95,170,75,.22) !important; }
.simplecheckout-block label, .control-label, .simplecheckout-block .form-group > label{ color:var(--pc-ink2) !important; font-size:12.5px !important; font-weight:600 !important; }
.required > label::before, .text-danger{ color:#e0894f !important; }

/* методи доставки/оплати — тёмні опції, вибрана тёмно-зелена */
.simplecheckout-method, .simplecheckout-methods label, label:has(input[name="shipping_method"]), label:has(input[name="payment_method"]){
  background:var(--pc-card2) !important; border:1.5px solid var(--pc-olive) !important; border-radius:12px !important;
  padding:12px 13px !important; margin:0 0 9px 0 !important; display:flex !important; align-items:center !important; gap:10px !important;
  color:var(--pc-ink) !important; cursor:pointer; transition:.15s; width:100%; }
label:has(input[name="shipping_method"]:checked), label:has(input[name="payment_method"]:checked), .simplecheckout-method.selected{
  background:var(--pc-green-sel) !important; border-color:var(--pc-green-br) !important; color:#fff !important; }
.simplecheckout-methods-name, .simplecheckout-method-name{ color:inherit !important; font-weight:600; }
.simplecheckout-methods-description{ color:var(--pc-ink2) !important; }

/* таблиця корзини (сводка) */
table.simplecheckout-cart, table.simplecheckout-cart td, table.simplecheckout-cart th{ color:var(--pc-ink) !important; border-color:var(--pc-line) !important; background:transparent !important; }
table.simplecheckout-cart th{ color:var(--pc-ink2) !important; font-weight:600; }
table.simplecheckout-cart a{ color:var(--pc-ink) !important; }
#simplecheckout_cart_total, .simplecheckout-cart-total{ color:var(--pc-ink) !important; }
.simplecheckout-cart-total b, .simplecheckout-cart-total .value{ color:#7fd06a !important; }

/* кнопка Оформити */
.simplecheckout-button-confirm, #button-confirm, .simplecheckout-button-right input, .simplecheckout-button-right button,
button[id*="confirm"], input[value*="Оформити"]{
  background:linear-gradient(180deg,#3d6b32,#2f5527) !important; color:#fff !important; border:0 !important;
  border-radius:12px !important; padding:15px 20px !important; font-size:16px !important; font-weight:700 !important;
  box-shadow:0 6px 16px rgba(47,85,39,.4) !important; width:100%; }

/* коментар — компактніше */
#simplecheckout_comment textarea{ min-height:64px !important; }

/* прибрати світлі рамки/фони спадщини */
.panel, .panel-default, .well, .simplecheckout-block .panel-body{ background:transparent !important; border:0 !important; box-shadow:none !important; }

/* ===== ГОРА ЗНИЖОК + вигода (вставляється JS у #simplecheckout_cart) ===== */
#pcPromo{ background:linear-gradient(160deg,#2f2415,#38291a); border:1px solid #574722; border-radius:var(--pc-radius);
  padding:13px 15px 12px; margin:12px 0; box-shadow:0 8px 24px rgba(0,0,0,.35); }
#pcPromo .pc-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
#pcPromo .pc-head b{ color:var(--pc-ink); font-size:15px; }
#pcPromo .pc-head .pk{ font-size:10.5px; color:#f0c968; font-weight:700; background:#43350f; border:1px solid #6b551f; border-radius:99px; padding:3px 9px; }
.pc-climb{ position:relative; height:92px; margin:4px 2px 2px; }
.pc-climb svg{ position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.pc-road{ fill:none; stroke:#e3d4ad; stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }
.pc-fill{ fill:none; stroke:var(--pc-gold); stroke-width:5; stroke-linecap:round; stroke-linejoin:round; transition:stroke-dashoffset .6s cubic-bezier(.3,.9,.3,1); }
.pc-cp{ position:absolute; transform:translate(-50%,50%); width:30px; height:30px; border-radius:50%; background:#2c2217; border:2px solid #6d5c3a; display:grid; place-items:center; transition:.45s; z-index:2; }
.pc-cp i{ font-style:normal; font-size:9.5px; font-weight:800; color:#c9b688; }
.pc-cp.on{ border-color:var(--pc-gold); background:var(--pc-gold); box-shadow:0 3px 9px rgba(194,145,47,.45); transform:translate(-50%,50%) scale(1.08); }
.pc-cp.on i{ color:#3a2a0e; }
.pc-climber{ position:absolute; transform:translate(-50%,50%); font-size:22px; z-index:3; transition:left .6s cubic-bezier(.3,.9,.3,1),bottom .6s cubic-bezier(.3,.9,.3,1); filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.pc-cap{ text-align:center; font-size:13px; font-weight:600; color:var(--pc-ink); margin-top:9px; }
.pc-cap b{ color:#f0c968; }
.pc-cap.max{ color:#7fd06a; }
/* рядок знижки + перекреслена ціна */
#pcDisc{ display:flex; justify-content:space-between; align-items:center; margin:10px 0 0; padding:9px 12px;
  background:rgba(95,170,75,.13); border:1px solid rgba(95,170,75,.34); border-radius:11px; }
#pcDisc .l{ font-size:12.5px; font-weight:700; color:#7fd06a; }
#pcDisc .v{ font-size:14px; font-weight:800; color:#f0c968; font-variant-numeric:tabular-nums; }
.pc-old{ color:#8c7d61; text-decoration:line-through; font-variant-numeric:tabular-nums; }

/* ===== ФІКС контрасту: заголовки + cart-блок ===== */
.checkout-heading, .checkout-heading *, .simplecheckout-block .checkout-heading h4,
.simplecheckout-block .checkout-heading b, .simplecheckout-block .checkout-heading span{ color:#efe6d2 !important; }
.checkout-heading[data-pc]::before{ color:#fff !important; }
/* cart повністю тёмний */
#simplecheckout_cart, #simplecheckout_cart .simplecheckout-block-content, #simplecheckout_cart .panel-body,
#simplecheckout_cart .panel, .simplecheckout-cart-wrapper{ background:var(--pc-card) !important; }
#simplecheckout_cart table, #simplecheckout_cart td, #simplecheckout_cart th, #simplecheckout_cart tr,
#simplecheckout_cart_total, #simplecheckout_cart_total *{ background:transparent !important; color:var(--pc-ink) !important; border-color:var(--pc-line) !important; }
#simplecheckout_cart th{ color:#b6a785 !important; }
#simplecheckout_cart a{ color:#efe6d2 !important; }
/* модульна знижка «Знижка за суму...» — зелено-золота */
#simplecheckout_cart_total tr:has(td:first-child):last-child, .simplecheckout-cart-total{ font-weight:700; }

/* перекреслений sub_total коли є знижка + скидка-рядок модуля */
#simplecheckout_cart #total_sub_total.pc-old-row{ display:flex !important; }
#total_sub_total.pc-old-row .simplecheckout-cart-total-value{ color:#8c7d61 !important; text-decoration:line-through; font-weight:500 !important; }
#simplecheckout_cart_total .simplecheckout-cart-total:has(.simplecheckout-cart-total-value),
.simplecheckout-cart-total{ color:var(--pc-ink) !important; }
#total_total .simplecheckout-cart-total-value{ color:#7fd06a !important; font-weight:800 !important; font-size:19px !important; }

/* ===================== БАГ-ЛІСТ ФАБЛА: фікси ===================== */
/* body отримує клас pc-checkout через JS (не чіпаємо глобальний body.top) */
body.pc-checkout, html:has(body.pc-checkout){ background:#1b150f !important; }
body.pc-checkout #common-home, body.pc-checkout .container, body.pc-checkout #content,
body.pc-checkout main, body.pc-checkout .simple-content, body.pc-checkout footer{ background:#1b150f !important; }
/* (1) заголовок сторінки — світлий по центру */
body.pc-checkout #common-home > h1, body.pc-checkout .page-header h1, body.pc-checkout h1.title, body.pc-checkout .main-title{ color:#efe6d2 !important; text-align:center !important; }
/* (2) біла смуга-підкладка під кнопкою — прибрати */
body.pc-checkout .simplecheckout-button-block, body.pc-checkout .simplecheckout-button-left, body.pc-checkout .simplecheckout-button-right,
body.pc-checkout #simplecheckout_bottom, body.pc-checkout #simplecheckout_proceed_payment{ background:transparent !important; border:0 !important; box-shadow:none !important; }
/* (3) cookie-банер — прибрати на чекауті */
body.pc-checkout .fixed-bottom{ display:none !important; }
/* (9) назва товару — світлий текст без підкреслення */
body.pc-checkout #simplecheckout_cart a, body.pc-checkout .simplecheckout-cart a{ color:#e9dfc8 !important; text-decoration:none !important; }
body.pc-checkout #simplecheckout_cart a:hover{ text-decoration:none !important; color:#f0c968 !important; }
/* (9) +/- кнопки кількості (додаються JS як .pc-qty-btn) */
.pc-qty-wrap{ display:inline-flex; align-items:center; gap:0; border:1px solid #5f4e33; border-radius:99px; overflow:hidden; background:#221a12; }
.pc-qty-btn{ width:44px; height:44px; border:0; background:#342719; color:#efe6d2; font-size:20px; line-height:1; cursor:pointer; }
.pc-qty-btn:active{ background:#43350f; }
body.pc-checkout #simplecheckout_cart input[name^="quantity"]{ width:44px !important; min-height:44px; text-align:center; border:0 !important; background:transparent !important; border-radius:0 !important; padding:0 !important; }
/* (10) лівий плаваючий віджет — затемнити */
body.pc-checkout .us-fixed-panel, body.pc-checkout [class*="fixed-side"], body.pc-checkout .us-side-panel,
body.pc-checkout .us-fixed-contacts{ background:#241c14 !important; border-color:#4a3d29 !important; }
/* (8) ЄДИНИЙ підсумок — рядок знижки зелений, перекреслене+актуальне поруч */
body.pc-checkout .simplecheckout-cart-total{ display:flex !important; justify-content:space-between !important; align-items:center !important; padding:6px 0 !important; color:#efe6d2 !important; }
body.pc-checkout .simplecheckout-cart-total .simplecheckout-cart-total-value{ text-align:right !important; }
/* (5) коментар-toggle */
.pc-comment-toggle{ width:100%; text-align:left; background:transparent; border:1px dashed #5f4e33; border-radius:11px; padding:12px 14px; font-size:13.5px; color:#7fd06a; font-weight:600; cursor:pointer; }
/* заголовок сторінки світлий (посилено) */
body.pc-checkout h1, body.pc-checkout .us-main-shop-title, body.pc-checkout #common-home > h1{ color:#efe6d2 !important; text-align:center; }
/* (доп) хедер сайту на чекауті — затемнити білу смугу PRIVALSHOP+пошук */
body.pc-checkout header .us-header-middle, body.pc-checkout .us-header, body.pc-checkout .header-default,
body.pc-checkout #header .container, body.pc-checkout .us-header-bottom, body.pc-checkout .us-header-wrapper{ background:#241c14 !important; }
body.pc-checkout .us-search-input, body.pc-checkout input[name="search"]{ background:#221a12 !important; color:#efe6d2 !important; border-color:#5f4e33 !important; }
/* біла смуга хедера (PRIVALSHOP+пошук) на чекауті — затемнити */
body.pc-checkout .us-header-location, body.pc-checkout .us-header-location.active,
body.pc-checkout header .row.align-items-center, body.pc-checkout .header-input-group,
body.pc-checkout .input-group.header-input-group, body.pc-checkout .us-header-middle,
body.pc-checkout header > .container, body.pc-checkout header .container > .row{ background:#241c14 !important; }
body.pc-checkout .header-input-group input, body.pc-checkout .input-lg, body.pc-checkout header input[name="search"]{ background:#1f1810 !important; color:#efe6d2 !important; border-color:#4a3d29 !important; }
body.pc-checkout .us-header-location *{ color:#c9bda2 !important; }

/* ==================== ІТЕРАЦІЯ 2: точкові фікси ==================== */
/* (5) кастомні радіо-кружки в гамі (замість синіх системних) */
body.pc-checkout input[type=radio]{ -webkit-appearance:none; appearance:none; width:20px; height:20px; min-width:20px; border:2px solid #9a9e5c; border-radius:50%; background:transparent; position:relative; cursor:pointer; margin:0 4px 0 0; vertical-align:middle; }
body.pc-checkout input[type=radio]:checked{ border-color:#bfe6b0; }
body.pc-checkout input[type=radio]:checked::after{ content:''; position:absolute; top:3px; left:3px; width:10px; height:10px; border-radius:50%; background:#fff; }
body.pc-checkout input[type=radio]:not(:checked)::after{ content:''; position:absolute; top:3px; left:3px; width:10px; height:10px; border-radius:50%; background:transparent; }

/* (1) прибрати подвійну обгортку/рамку вгорі — один контейнер */
body.pc-checkout #simplecheckout_cart > .simplecheckout-block-content > .simplecheckout-block,
body.pc-checkout .simplecheckout-block .simplecheckout-block{ border:0 !important; box-shadow:none !important; margin:0 !important; background:transparent !important; }

/* (3) коментар — ОДИН пунктирний контур (прибрати подвійну рамку) */
body.pc-checkout #simplecheckout_comment .simplecheckout-block-content{ border:0 !important; padding:0 !important; background:transparent !important; }
body.pc-checkout .pc-comment-toggle{ border:1px dashed #6b5c3a !important; background:transparent !important; }

/* (4) оплата: логотипи менші + wrap, нічого не виступає */
body.pc-checkout #simplecheckout_payment img, body.pc-checkout label:has(input[name="payment_method"]) img{ max-height:22px !important; width:auto !important; }
body.pc-checkout label:has(input[name="payment_method"]){ flex-wrap:wrap !important; gap:6px 10px !important; }
body.pc-checkout label:has(input[name="payment_method"]) .simplecheckout-methods-description,
body.pc-checkout #simplecheckout_payment .payment-logos{ display:flex; flex-wrap:wrap; gap:5px; align-items:center; margin-left:auto; }
/* (4) кнопка Оформити — відступ від розділювача */
body.pc-checkout .simplecheckout-button-block, body.pc-checkout #simplecheckout_bottom{ margin-top:16px !important; padding-top:4px !important; }

/* ==== КАРТКА ТОВАРУ v2 (grid) ==== */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart tr{
    display:grid !important; grid-template-columns:58px 1fr auto !important;
    grid-template-areas:"img name name" "img qty total" !important;
    gap:5px 12px !important; align-items:center !important;
    background:#241c14 !important; border:1px solid #4a3d29 !important; border-radius:13px !important;
    padding:12px 40px 12px 12px !important; position:relative !important; margin:0 0 10px !important; min-height:0 !important; }
  body.pc-checkout td.image{ grid-area:img !important; width:58px !important; position:static !important; }
  body.pc-checkout td.image img{ width:58px !important; height:58px !important; border-radius:10px !important; object-fit:cover !important; }
  body.pc-checkout td.name{ grid-area:name !important; align-self:end !important; }
  body.pc-checkout td.name a{ font-size:14px !important; font-weight:600 !important; line-height:1.3 !important; color:#e9dfc8 !important; text-decoration:none !important; }
  body.pc-checkout td.model, body.pc-checkout td.price, body.pc-checkout table.simplecheckout-cart td.reward{ display:none !important; }
  body.pc-checkout td.quantity{ grid-area:qty !important; align-self:start !important; float:none !important; margin:0 !important; }
  body.pc-checkout td.total{ grid-area:total !important; align-self:start !important; float:none !important; text-align:right !important; font-weight:700 !important; color:#efe6d2 !important; font-size:15px !important; margin:0 !important; }
  body.pc-checkout td.remove, body.pc-checkout table.simplecheckout-cart tr > td:last-child:has(button,.simplecheckout-cart-remove,[onclick*=remove]){
    position:absolute !important; top:8px !important; right:8px !important; left:auto !important; width:24px !important; padding:0 !important; margin:0 !important; }
}
/* хрестик сірий скрізь (не зелений круг) */
body.pc-checkout .simplecheckout-cart-remove, body.pc-checkout button.simplecheckout-cart-remove,
body.pc-checkout td.remove button, body.pc-checkout td.remove a{
  background:transparent !important; box-shadow:none !important; border:0 !important; width:24px !important; height:24px !important; border-radius:50% !important; padding:0 !important; opacity:.55; }
body.pc-checkout .simplecheckout-cart-remove img, body.pc-checkout td.remove img{ filter:grayscale(1) brightness(1.7) !important; width:16px !important; height:16px !important; }
body.pc-checkout .simplecheckout-cart-remove:hover{ opacity:1; }

/* хедер біла смуга (посилено, всі варіанти) */
body.pc-checkout header, body.pc-checkout header *:not(a):not(button):not(input):not(svg):not(path),
body.pc-checkout .us-header, body.pc-checkout .us-header *, body.pc-checkout [class*="header-middle"],
body.pc-checkout [class*="header-top"], body.pc-checkout [class*="header-bottom"]{ background-color:#241c14 !important; }
body.pc-checkout header a, body.pc-checkout header span:not(.badge), body.pc-checkout .us-header-location *{ color:#cabfa4 !important; }

/* ==== JS-КАРТКА ТОВАРУ (надійна) ==== */
body.pc-checkout table.simplecheckout-cart thead{ display:none !important; }
body.pc-checkout tr:has(.pc-tcard) > td{ padding:0 !important; border:0 !important; background:transparent !important; }
.pc-tcard{ display:flex; align-items:center; gap:12px; position:relative; background:#241c14; border:1px solid #4a3d29; border-radius:13px; padding:12px 42px 12px 12px; margin-bottom:10px; }
.pc-tc-img img{ width:56px !important; height:56px !important; border-radius:10px; object-fit:cover; }
.pc-tc-body{ flex:1; min-width:0; }
.pc-tc-name{ font-size:14px; font-weight:600; color:#e9dfc8; line-height:1.3; margin-bottom:9px; }
.pc-tc-meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pc-tc-total{ font-weight:700; color:#efe6d2; font-size:15px; white-space:nowrap; }
.pc-tc-remove{ position:absolute; top:8px; right:8px; opacity:.5; cursor:pointer; }
.pc-tc-remove:hover{ opacity:1; }
.pc-tc-remove *{ background:transparent !important; box-shadow:none !important; width:22px !important; height:22px !important; border:0 !important; }
.pc-tc-remove img{ filter:grayscale(1) brightness(1.8) !important; width:15px !important; height:15px !important; }

/* ==== КОМПАКТНИЙ TABLE (надійно, без h-скролу) — перекриває pc-tcard ==== */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart{ width:100% !important; table-layout:fixed !important; display:table !important; }
  body.pc-checkout table.simplecheckout-cart tbody{ display:table-row-group !important; }
  body.pc-checkout table.simplecheckout-cart tr{ display:table-row !important; background:transparent !important; border:0 !important; border-radius:0 !important; padding:0 !important; margin:0 !important; }
  body.pc-checkout table.simplecheckout-cart td{ display:table-cell !important; padding:8px 4px !important; font-size:12.5px !important; vertical-align:middle !important; word-break:break-word !important; border:0 !important; border-bottom:1px solid #3a2f1f !important; background:transparent !important; }
  body.pc-checkout td.image{ width:48px !important; padding:8px 6px 8px 0 !important; }
  body.pc-checkout td.image img{ width:44px !important; height:44px !important; border-radius:9px !important; object-fit:cover !important; }
  body.pc-checkout td.model, body.pc-checkout td.price{ display:none !important; }
  body.pc-checkout td.name{ font-size:12.5px !important; line-height:1.35 !important; }
  body.pc-checkout td.name a{ text-decoration:none !important; color:#e9dfc8 !important; }
  body.pc-checkout td.quantity{ width:100px !important; }
  body.pc-checkout td.total{ white-space:nowrap !important; text-align:right !important; font-weight:700 !important; color:#efe6d2 !important; width:70px !important; }
  body.pc-checkout td.remove{ width:30px !important; }
  /* хрестик сірий компактний */
  body.pc-checkout .simplecheckout-cart-remove{ background:transparent !important; box-shadow:none !important; width:24px !important; height:24px !important; opacity:.55; }
  body.pc-checkout .simplecheckout-cart-remove img{ filter:grayscale(1) brightness(1.8) !important; width:14px !important; height:14px !important; }
}

/* ФІКС table: auto-layout + слова не по літерах */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart{ table-layout:auto !important; }
  body.pc-checkout table.simplecheckout-cart colgroup, body.pc-checkout table.simplecheckout-cart col{ display:none !important; width:auto !important; }
  body.pc-checkout table.simplecheckout-cart td, body.pc-checkout td.name, body.pc-checkout td.name a{ word-break:normal !important; overflow-wrap:anywhere !important; white-space:normal !important; }
  body.pc-checkout td.quantity{ width:96px !important; min-width:96px; }
  body.pc-checkout td.total{ width:auto !important; min-width:56px; }
}

/* ==== ФІНАЛ КАРТКИ: чистий стандартний table, компактний (скасувати переверстки) ==== */
body.pc-checkout .pc-tcard{ display:none !important; }
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart{ table-layout:auto !important; width:100% !important; display:table !important; }
  body.pc-checkout table.simplecheckout-cart tbody{ display:table-row-group !important; }
  body.pc-checkout table.simplecheckout-cart tr{ display:table-row !important; background:transparent !important; border:0 !important; border-radius:0 !important; padding:0 !important; margin:0 !important; }
  body.pc-checkout table.simplecheckout-cart td{ display:table-cell !important; padding:9px 5px !important; font-size:12.5px !important; vertical-align:middle !important; word-break:normal !important; overflow-wrap:anywhere !important; white-space:normal !important; border:0 !important; border-bottom:1px solid #3a2f1f !important; background:transparent !important; text-align:left !important; float:none !important; }
  body.pc-checkout td.model, body.pc-checkout td.price, body.pc-checkout td.name img{ display:none !important; }
  body.pc-checkout td.image{ width:48px !important; padding-left:0 !important; } body.pc-checkout td.image img{ width:44px !important; height:44px !important; border-radius:9px !important; object-fit:cover !important; }
  body.pc-checkout td.name a{ font-size:12.5px !important; color:#e9dfc8 !important; text-decoration:none !important; }
  body.pc-checkout td.quantity{ width:98px !important; } body.pc-checkout td.total{ text-align:right !important; font-weight:700 !important; color:#efe6d2 !important; white-space:nowrap !important; }
}

/* ФІНАЛ v2: примусова ширина name щоб не по літерах */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart td.name{ width:auto !important; min-width:140px !important; max-width:none !important; }
  body.pc-checkout table.simplecheckout-cart td.image{ width:44px !important; }
  body.pc-checkout table.simplecheckout-cart td.quantity{ width:92px !important; }
  body.pc-checkout table.simplecheckout-cart td.total{ width:52px !important; }
  body.pc-checkout table.simplecheckout-cart td.remove{ width:28px !important; }
  body.pc-checkout table.simplecheckout-cart td.name a{ display:inline !important; white-space:normal !important; word-break:normal !important; overflow-wrap:break-word !important; hyphens:none !important; }
}

/* ФІНАЛ v3: сховати model (перебиває table-cell), ужати +/- */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart td.model{ display:none !important; }
  body.pc-checkout .pc-qty-btn{ width:34px !important; height:38px !important; font-size:17px !important; }
  body.pc-checkout table.simplecheckout-cart input[name^="quantity"]{ width:36px !important; min-height:38px !important; }
  body.pc-checkout table.simplecheckout-cart td.quantity{ width:112px !important; }
  body.pc-checkout table.simplecheckout-cart td.total{ width:58px !important; font-size:13px !important; }
}

/* ФІНАЛ v4: крестик сірий у габарит, +/- вужче */
@media(max-width:600px){
  body.pc-checkout .pc-qty-btn{ width:30px !important; height:36px !important; font-size:16px !important; }
  body.pc-checkout table.simplecheckout-cart input[name^="quantity"]{ width:32px !important; min-height:36px !important; }
  body.pc-checkout table.simplecheckout-cart td.quantity{ width:96px !important; padding-right:2px !important; }
  body.pc-checkout table.simplecheckout-cart td.total{ width:50px !important; }
  body.pc-checkout table.simplecheckout-cart td.remove{ width:26px !important; padding:0 !important; }
}
body.pc-checkout .simplecheckout-cart-remove, body.pc-checkout td.remove > *{
  background:transparent !important; background-color:transparent !important; box-shadow:none !important; border-radius:0 !important;
  width:22px !important; height:22px !important; min-width:0 !important; padding:0 !important; }
body.pc-checkout .simplecheckout-cart-remove img, body.pc-checkout td.remove img{ filter:grayscale(1) brightness(1.9) !important; width:14px !important; height:14px !important; }

/* ==================== ЗАДАЧА C: РЕЖИМ ФОКУСА (тільки мобіл) ==================== */
@media(max-width:600px){
  /* (1) прибрати глобальний футер + (2) хедер сайту + нижню навігацію */
  body.pc-checkout footer, body.pc-checkout .us-footer, body.pc-checkout #footer,
  body.pc-checkout .us-header-middle, body.pc-checkout .us-header-bottom, body.pc-checkout header .us-header-location,
  body.pc-checkout .us-fixed-bottom-menu, body.pc-checkout .us-mobile-bottom-nav, body.pc-checkout .mobile-bottom-menu,
  body.pc-checkout [class*="bottom-nav"], body.pc-checkout [class*="bottom-menu"]{ display:none !important; }
  /* мінімальна шапка: логотип по центру + стрілка назад зліва (JS будує #pcTopbar) */
  body.pc-checkout header{ display:none !important; }
  #pcTopbar{ position:sticky; top:0; z-index:40; display:flex; align-items:center; justify-content:center; height:54px; background:#1b150f; border-bottom:1px solid #3a2f1f; }
  #pcTopbar .pc-back{ position:absolute; left:12px; top:50%; transform:translateY(-50%); width:38px; height:38px; display:grid; place-items:center; color:#efe6d2; font-size:22px; text-decoration:none; }
  #pcTopbar .pc-logo{ font-family:Georgia,serif; font-weight:700; font-size:19px; color:#5faa4b; letter-spacing:.5px; display:flex; align-items:center; gap:7px; }
  #pcTopbar .pc-logo .lf{ width:26px;height:26px;border-radius:50%;background:#3d6b32;color:#fff;display:grid;place-items:center;font-size:13px; }
  /* (3) sticky кнопка Оформити внизу */
  body.pc-checkout .simplecheckout-button-block, body.pc-checkout #simplecheckout_bottom{ position:fixed !important; left:0; right:0; bottom:0; z-index:45; background:rgba(20,15,10,.94); backdrop-filter:blur(8px); border-top:1px solid #3a2f1f; padding:10px 14px calc(10px + env(safe-area-inset-bottom)) !important; margin:0 !important; }
  body.pc-checkout .simplecheckout-button-confirm, body.pc-checkout #button-confirm, body.pc-checkout .simplecheckout-button-right input, body.pc-checkout .simplecheckout-button-right button{ font-size:16px !important; }
  body.pc-checkout #simplecheckout_form_{ padding-bottom:88px !important; } /* місце під sticky */
  body.pc-checkout .simple-content{ padding-bottom:88px !important; }
  /* сховати суму товару в рядку (є в Загальна) — чистіше */
  body.pc-checkout table.simplecheckout-cart td.total{ display:none !important; }
}
/* (C4) trust-блок переваг (JS вставляє #pcTrust) */
#pcTrust{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin:14px 0 4px; }
#pcTrust span{ font-size:11.5px; color:#b6a785; background:#241c14; border:1px solid #3a2f1f; border-radius:99px; padding:6px 11px; }

/* C-фікс: сховати верхній navbar (МЕНЮ+іконки) + прибрати зламаний sticky (кнопка в потоці) */
@media(max-width:600px){
  body.pc-checkout .us-menu-mobile, body.pc-checkout nav:has(.us-navbar-toggler), body.pc-checkout .container.d-flex:has(.us-navbar-toggler),
  body.pc-checkout .us-navbar, body.pc-checkout .us-header-panel, body.pc-checkout .d-lg-none:has(.us-navbar-toggler){ display:none !important; }
  /* кнопка — у потоці внизу форми (не зламаний fixed) */
  body.pc-checkout .simplecheckout-button-block, body.pc-checkout #simplecheckout_bottom{ position:static !important; background:transparent !important; backdrop-filter:none !important; border:0 !important; padding:16px 0 24px !important; }
  body.pc-checkout .simple-content{ padding-bottom:24px !important; }
}

/* ==================== ЗАДАЧА B: SUCCESS сторінка ==================== */
.pc-success-page{ background:#1b150f; min-height:80vh; display:flex; align-items:flex-start; justify-content:center; padding:36px 16px 60px; }
.pc-success-card{ max-width:440px; width:100%; background:#2a2016; border:1px solid #4a3d29; border-radius:20px; padding:32px 24px 28px; text-align:center; box-shadow:0 14px 44px rgba(0,0,0,.45); }
.pc-check{ width:86px; height:86px; margin:0 auto 18px; }
.pc-check svg{ width:86px; height:86px; display:block; }
.pc-check .c{ stroke:#5faa4b; stroke-width:4; fill:rgba(95,170,75,.08); stroke-dasharray:264; stroke-dashoffset:264; animation:pcCircle .55s ease forwards; }
.pc-check .k{ stroke:#7fd06a; stroke-width:6; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:70; stroke-dashoffset:70; animation:pcCheck .45s .5s ease forwards; }
@keyframes pcCircle{ to{ stroke-dashoffset:0 } }
@keyframes pcCheck{ to{ stroke-dashoffset:0 } }
.pc-success-title{ font-family:Georgia,serif; font-size:23px; color:#efe6d2; margin:0 0 8px; line-height:1.28; }
.pc-order-num{ color:#f0c968; font-weight:700; font-size:14px; margin:0 0 22px; }
.pc-timeline{ display:flex; flex-direction:column; text-align:left; margin:0 0 22px; }
.pc-step{ display:flex; align-items:center; gap:12px; padding:8px 0; position:relative; }
.pc-step .pc-dot{ width:26px; height:26px; border-radius:50%; border:2px solid #5a4f3a; background:#241c14; display:grid; place-items:center; color:transparent; flex:0 0 auto; font-size:13px; z-index:2; }
.pc-step.done .pc-dot{ background:#5faa4b; border-color:#5faa4b; color:#fff; }
.pc-step span:last-child{ color:#b6a785; font-size:14px; }
.pc-step.done span:last-child{ color:#efe6d2; font-weight:600; }
.pc-step:not(:last-child)::before{ content:''; position:absolute; left:12px; top:26px; bottom:-8px; width:2px; background:#4a3d29; z-index:1; }
.pc-step.done:not(:last-child)::before{ background:#5faa4b; }
.pc-success-text{ color:#b6a785; font-size:13.5px; line-height:1.6; margin:0 0 24px; text-align:left; }
.pc-success-btn{ display:block; background:linear-gradient(180deg,#3d6b32,#2f5527); color:#fff; padding:15px; border-radius:12px; font-size:16px; font-weight:700; text-decoration:none; box-shadow:0 6px 16px rgba(47,85,39,.4); margin-bottom:14px; }
.pc-success-chat{ display:block; color:#f0c968; font-size:13px; text-decoration:none; }

/* ==================== STICKY-БАР + зрізати відступи (мобіл) ==================== */
#pcStickyBar{ display:none; }
@media(max-width:600px){
  /* зрізати пустоту зверху/знизу (body pt50/pb80 теми + simple-content) */
  body.pc-checkout{ padding-top:0 !important; padding-bottom:0 !important; }
  body.pc-checkout .simple-content{ padding-top:6px !important; padding-bottom:84px !important; }
  body.pc-checkout #content{ padding-top:0 !important; }
  body.pc-checkout #common-home{ padding:0 !important; margin:0 !important; }
  /* сховати оригінальну кнопку в потоці (клік через бар) */
  body.pc-checkout .simplecheckout-button-block, body.pc-checkout #simplecheckout_bottom{ position:absolute !important; left:-9999px !important; width:1px !important; height:0 !important; overflow:hidden !important; padding:0 !important; margin:0 !important; }
  /* fixed-бар: ціна зліва + кнопка справа */
  #pcStickyBar{ position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; align-items:center; gap:12px;
    background:rgba(20,15,10,.96); backdrop-filter:blur(9px); border-top:1px solid #4a3d29; box-shadow:0 -6px 22px rgba(0,0,0,.5);
    padding:10px 14px calc(10px + env(safe-area-inset-bottom)); }
  .pc-sb-sum{ line-height:1.05; white-space:nowrap; }
  .pc-sb-sum small{ display:block; font-size:10.5px; color:#b6a785; }
  .pc-sb-sum b{ font-family:Georgia,serif; font-size:21px; color:#7fd06a; font-variant-numeric:tabular-nums; }
  .pc-sb-btn{ flex:1; background:linear-gradient(180deg,#3d6b32,#2f5527); color:#fff; border:0; border-radius:12px; padding:14px 12px; font-size:14.5px; font-weight:700; box-shadow:0 6px 16px rgba(47,85,39,.4); cursor:pointer; }
  .pc-sb-btn:active{ transform:scale(.98); }
}

/* ==== КАРТКА: прибрати хрестик ОКОНЧАТЕЛЬНО + ціна горизонтально ==== */
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart td.remove{ display:none !important; }
  body.pc-checkout table.simplecheckout-cart td.total{ display:table-cell !important; white-space:nowrap !important; width:auto !important; min-width:66px !important; text-align:right !important; vertical-align:baseline !important; font-weight:700 !important; color:#efe6d2 !important; font-size:14px !important; }
  body.pc-checkout table.simplecheckout-cart td.quantity{ width:104px !important; }
}
/* мінус при qty=1 = видалення (тривожний хрестик) */
.pc-qty-btn.pc-qty-del{ color:#e0894f !important; }

/* ==== прибрати зелений хрестик remove ЗВІДКИ БИ НЕ БУВ (клік лишається програмний) ==== */
body.pc-checkout .simplecheckout-cart-remove, body.pc-checkout button.simplecheckout-cart-remove,
body.pc-checkout a.simplecheckout-cart-remove, body.pc-checkout img.simplecheckout-cart-remove{ display:none !important; }
@media(max-width:600px){
  body.pc-checkout table.simplecheckout-cart td:has(.simplecheckout-cart-remove){ display:none !important; width:0 !important; padding:0 !important; }
  /* ціна — гарантовано горизонтально, вирівняна по назві */
  body.pc-checkout table.simplecheckout-cart td.total{ display:table-cell !important; white-space:nowrap !important; width:1% !important; min-width:60px !important; max-width:none !important; text-align:right !important; vertical-align:middle !important; padding-right:0 !important; }
}

/* зелений хрестик — окремий блок #simplecheckout_remove, прибрати (клік лишається програмний) */
body.pc-checkout #simplecheckout_remove{ display:none !important; }
body.pc-checkout #simplecheckout_cart td:last-child:has(#simplecheckout_remove),
body.pc-checkout .simplecheckout-remove-block{ display:none !important; }

/* прибрати РІДНІ simplecheckout +/- кнопки (зелені), лишити мої pc-qty */
body.pc-checkout #simplecheckout_cart td.quantity .input-group-btn,
body.pc-checkout #simplecheckout_cart td.quantity .btn:not(.pc-qty-btn),
body.pc-checkout #simplecheckout_cart td.quantity button:not(.pc-qty-btn){ display:none !important; }

/* ЦІНА горизонтально (перебити overflow-wrap:anywhere) */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart td.total{ white-space:nowrap !important; overflow-wrap:normal !important; word-break:keep-all !important; word-wrap:normal !important; width:72px !important; min-width:72px !important; max-width:72px !important; text-align:right !important; padding-right:6px !important; }
  body.pc-checkout #simplecheckout_cart td.name{ max-width:150px !important; }
}

/* ціна позиції ховаємо (вертикалила через table; сума в Загальна вартість) — чиста строка */
@media(max-width:600px){ body.pc-checkout #simplecheckout_cart td.total{ display:none !important; } }

/* === КАРТКА: фінальний фікс ціни (v29) === */
@media(max-width:600px){
  /* td.price (ціна за одиницю) дублює total і вертикалить у 18px → ховаємо */
  body.pc-checkout #simplecheckout_cart td.price{ display:none !important; }
  /* td.total (сума позиції) — показуємо горизонтально, справа */
  body.pc-checkout #simplecheckout_cart td.total{ display:table-cell !important; white-space:nowrap !important; overflow-wrap:normal !important; word-break:keep-all !important; width:58px !important; min-width:58px !important; max-width:70px !important; text-align:right !important; padding-right:4px !important; font-weight:700 !important; color:var(--pc-ink) !important; vertical-align:middle !important; }
  /* quantity вужче (було 119px) */
  body.pc-checkout #simplecheckout_cart td.quantity{ width:94px !important; }
  body.pc-checkout #simplecheckout_cart td.name{ max-width:120px !important; }
}

/* === КАРТКА v30: стиснути колонки щоб total вліз у контейнер === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart td{ padding-left:2px !important; padding-right:2px !important; }
  body.pc-checkout #simplecheckout_cart td.image{ width:46px !important; }
  body.pc-checkout #simplecheckout_cart td.image img{ width:46px !important; height:auto !important; }
  body.pc-checkout #simplecheckout_cart td.quantity{ width:82px !important; }
  body.pc-checkout #simplecheckout_cart td.name{ max-width:110px !important; }
  body.pc-checkout #simplecheckout_cart td.total{ width:50px !important; min-width:50px !important; max-width:56px !important; padding-right:2px !important; }
}

/* === КАРТКА v31: звільнити місце щоб "грн." повністю влізло === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart td.image{ width:44px !important; }
  body.pc-checkout #simplecheckout_cart td.image img{ width:44px !important; }
  body.pc-checkout #simplecheckout_cart td.quantity{ width:76px !important; }
  body.pc-checkout #simplecheckout_cart td.name{ max-width:102px !important; }
  body.pc-checkout #simplecheckout_cart td.total{ width:54px !important; min-width:54px !important; max-width:60px !important; font-size:13px !important; padding-right:4px !important; }
}

/* === КАРТКА v32: відвести ціну від правого краю (padding + box-sizing) === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart td.name{ max-width:92px !important; }
  body.pc-checkout #simplecheckout_cart td.quantity{ width:70px !important; }
  body.pc-checkout #simplecheckout_cart td.total{ box-sizing:border-box !important; width:70px !important; min-width:70px !important; max-width:76px !important; padding-right:12px !important; text-align:right !important; font-size:13px !important; }
}

/* === КАРТКА v33: чистий фінал — ціна "50 ₴" (короткий формат, JS pcPrice), auto-ширина === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart td.price{ display:none !important; }
  body.pc-checkout #simplecheckout_cart td.total{ display:table-cell !important; box-sizing:border-box !important; width:auto !important; min-width:44px !important; max-width:none !important; white-space:nowrap !important; overflow-wrap:normal !important; word-break:keep-all !important; text-align:right !important; padding:8px 8px 8px 2px !important; font-size:14px !important; font-weight:700 !important; color:var(--pc-ink) !important; vertical-align:middle !important; }
  body.pc-checkout #simplecheckout_cart td.name{ max-width:130px !important; }
  body.pc-checkout #simplecheckout_cart td.quantity{ width:auto !important; }
  body.pc-checkout #simplecheckout_cart td.image{ width:48px !important; }
  body.pc-checkout #simplecheckout_cart td.image img{ width:48px !important; }
}

/* === КАРТКА v34: звузити всю таблицю справа, щоб остання колонка не впиралась у край === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart{ width:calc(100% - 16px) !important; box-sizing:border-box !important; }
}

/* === КАРТКА v35: прибрати overflow:hidden що різав ціну, повернути повну ширину таблиці === */
@media(max-width:600px){
  body.pc-checkout #simplecheckout_cart{ overflow:visible !important; width:100% !important; }
  body.pc-checkout .table-responsive{ overflow:visible !important; }
  body.pc-checkout #simplecheckout_cart td.total{ padding-right:6px !important; }
}
