/* Cart additions on top of assets/css/purchase.css (the purchase design kit of the template). The checkout form has its own
   stylesheet in components/bitrix/sale.order.ajax/tefal/style.css. */
.tf-header-action--cart{position:relative}
.tf-product-buy-form{display:contents}
.tf-product-buy.is-in-cart,.tf-site .tf-catalog-card .tf-product-buy.is-in-cart{background:#fff;color:var(--tf-red)!important;border-color:var(--tf-red);text-decoration:none}
/* «В корзине» replaces the button with a link (cart.js); the button takes the card's font through `.tf-site button{font:inherit}`,
   so the link does too, or its text shrank to the base 12px. Card designs that set the size themselves still win. */
.tf-site a.tf-product-buy{font:inherit}
.tf-product-availability{margin:0 0 14px;color:#25834f;font-size:14px}
.tf-product-availability--out{color:#646568}
.tf-site .tf-pdp-reference .tf-product-quantity-note a{color:inherit}

.tf-cart-notice{margin-bottom:20px}
[data-cart-root][aria-busy=true]{opacity:.55;transition:opacity .2s}
.tf-cart-line__price del{display:block;margin-top:2px;color:#6b6b6b;font-size:13px;font-weight:400}
.tf-cart-line--unavailable{opacity:.65}
.tf-cart-unavailable-title{margin:28px 0 0;font-size:16px;font-weight:600}
/* As on tefal.ru: the entered code is a framed line under the field, «Применен промокод:» in green, the code in ink, a round × at the end. */
.tf-cart-coupon{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px;padding:4px 8px 4px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;line-height:1.5;color:var(--tf-ink)}
.tf-cart-coupon strong{font-weight:400}
.tf-cart-coupon__status{color:#6b6b6b}
.tf-cart-coupon.is-applied .tf-cart-coupon__status{color:#25834f}

/* Delivery city and product rows follow the Tefal cart reference. */
.tf-cart-location{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;margin:0 0 24px}
.tf-cart-location button{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0;border:0;background:none;text-align:left;line-height:1.4;text-decoration:underline;text-underline-offset:2px}
.tf-cart-location .tf-cart-location__city{color:var(--tf-ink);font-size:18px;font-weight:500}
.tf-cart-location__city svg{flex:none}
.tf-cart-location .tf-cart-location__change{color:#969696;font-size:14px}
@media (hover:hover){
.tf-cart-location button:hover{color:var(--tf-red)}}
/* Focus comes back here from the city dialog's search field, which would draw a frame after a mouse click as well. */
.tf-site .tf-cart-location button:focus-visible{outline:0;color:var(--tf-red)}
.tf-cart-page .tf-cart-heading{justify-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.tf-cart-page .tf-cart-heading h1{font-size:24px;font-weight:700;line-height:32px}
.tf-cart-heading__count{display:inline-flex;align-items:center;gap:6px;font-size:24px;line-height:32px;color:#8d8d8d}
.tf-cart-heading__count .tf-icon{width:18px;height:18px}
.tf-cart-page .tf-cart-products{min-width:0;padding:0 20px;border-color:#f0f0f0;border-radius:16px;box-shadow:0 1px 7px #0000000d}
.tf-cart-page .tf-cart-item{grid-template-columns:110px minmax(0,1fr) auto minmax(100px,max-content) 32px;align-items:center;gap:20px;min-height:132px;padding:18px 0;border-bottom:0}
.tf-cart-item .tf-cart-line__image{align-self:center}
.tf-cart-item .tf-cart-line__image img{width:110px;height:96px}
.tf-cart-item__info{min-width:0}
.tf-cart-products .tf-cart-item__info h3{margin:0;font-size:16px;font-weight:500;line-height:1.5}
.tf-cart-item__info h3 a{color:inherit}
.tf-cart-page .tf-cart-products>.tf-cart-line:last-child{border-bottom:0}
.tf-cart-item__count{display:flex;flex-direction:column;align-items:center;justify-self:center;gap:6px}
.tf-cart-item .tf-cart-item__quantity{align-items:center;overflow:visible;border-color:#dedede;border-radius:12px;background:#f8f8f8;margin:0}
.tf-cart-item .tf-cart-item__quantity button{display:inline-flex;align-items:center;justify-content:center;width:32px;min-height:36px;padding:0;background:transparent;font-size:20px;color:var(--tf-ink)}
.tf-cart-item .tf-cart-item__quantity button:disabled{color:#aaa}
.tf-cart-item .tf-cart-item__quantity input{width:28px;min-height:36px;border:0;background:transparent;font-size:12px}
.tf-cart-item__price{display:flex;flex-direction:column;align-items:flex-end;align-self:start;gap:2px;text-align:right;white-space:nowrap}
.tf-cart-item__price del{color:#999;font-size:16px;font-weight:400;line-height:1.4}
.tf-cart-item__price strong{font-size:20px;font-weight:700;line-height:1.4}
.tf-cart-item__discount{font-size:14px;line-height:1.5;color:var(--tf-red)}
.tf-cart-item__unit{font-size:12px;line-height:1.5;color:var(--tf-muted)}
/* As tall as the price line, so the heart and the price share one centre line. */
.tf-cart-item .tf-cart-item__favorite{align-self:start;justify-self:end;width:32px;height:28px;padding:3px 5px;color:#8b8581}
.tf-cart-item .tf-cart-item__favorite[aria-pressed=true]{color:var(--tf-red)}
.tf-cart-item__favorite .tf-icon{width:22px;height:22px}

/* The right column keeps bonuses, the coupon and the order total together. */
/* Same frame as the checkout (sale.order.ajax/tefal/style.css): page up to 1480px, goods and total 2:1, so both pages look one scale. */
.tf-site .tf-main .tf-container.tf-cart-page{box-sizing:border-box;width:100%;max-width:var(--tf-header-max);margin-inline:auto;padding-inline:var(--tf-page-gutter)}
.tf-cart-page .tf-purchase-layout{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}
@media(max-width:359px){.tf-site .tf-main .tf-container.tf-cart-page{padding-inline:8px}}
.tf-cart-sidebar{position:sticky;top:calc(var(--header-height,100px) + 20px);display:grid;gap:12px;min-width:0}
.tf-cart-bonuses{margin-bottom:12px}
.tf-cart-bonuses__box{padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;text-align:center;font-size:14px;line-height:1.5}
.tf-cart-bonuses__box p{margin:0}
.tf-cart-bonuses__box a{text-decoration:underline;text-underline-offset:2px}
.tf-cart-bonuses__links{display:flex;justify-content:center;flex-wrap:wrap;gap:0 4px}
.tf-cart-sidebar .tf-cart-promo{margin:0}

.tf-cart-sidebar .tf-cart-promo__input{align-items:center;gap:0;padding:3px;border:1px solid #d1d5db;border-radius:8px}
.tf-cart-sidebar .tf-cart-promo input{flex:1;min-width:0;width:0;height:40px;padding:8px;border:0;border-radius:5px;font-size:16px}
.tf-cart-sidebar .tf-cart-promo input::placeholder{color:#9ca3af;text-transform:none}
.tf-cart-sidebar .tf-cart-promo .tf-button{flex:none;min-height:40px;padding:6px 16px;border:0;border-radius:6px;background:#9ca3af;color:var(--tf-ink)!important;font-size:16px;font-weight:400;line-height:1.5;cursor:default}
/* As on tefal.ru: the button is grey while the field is empty and fills once a code is typed (cart.js sets .has-value). */
.tf-cart-sidebar .tf-cart-promo__input.has-value .tf-button{background:var(--tf-ink);color:#fff!important;cursor:pointer}
@media (hover:hover){
.tf-cart-sidebar .tf-cart-promo__input.has-value .tf-button:hover{background:#000}}
.tf-cart-sidebar .tf-cart-promo__input.is-invalid{border-color:var(--tf-red)}
.tf-cart-promo__error{margin:6px 0 0;color:var(--tf-red);font-size:14px;line-height:1.4}
.tf-cart-coupon .tf-purchase-link{flex:none;display:grid;place-items:center;width:24px;height:24px;min-width:24px;min-height:24px;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:#e5e7eb;color:#4b5563;font-size:13px;line-height:1;text-decoration:none;cursor:pointer}
@media (hover:hover){
.tf-cart-coupon .tf-purchase-link:hover{background:var(--tf-red);color:#fff}}
.tf-cart-sidebar .tf-cart-coupon{gap:8px;overflow-wrap:anywhere}
.tf-cart-page .tf-cart-summary{position:static;min-width:0;padding:14px 16px 12px;border:1px solid #d1d5db;border-radius:18px;background:#fff}
.tf-cart-summary h2{margin:0 0 22px;font-size:20px;font-weight:700;line-height:1.4}
.tf-cart-totals{margin:0}
.tf-cart-totals>div{display:flex;align-items:baseline;gap:0;margin-bottom:8px}
.tf-cart-totals dt{display:flex;flex:1;align-items:baseline;gap:4px;min-width:0;font-size:16px;line-height:1.5}
.tf-cart-totals dt::after{content:"";flex:1;min-width:8px;margin-right:4px;border-bottom:2px dotted #d1d5db}
.tf-cart-totals dd{flex:none;margin:0;font-size:20px;line-height:1.5;text-align:right;white-space:nowrap}
.tf-cart-delivery dd{font-size:14px;color:var(--tf-muted)}
.tf-cart-totals .tf-cart-total{flex-wrap:wrap;row-gap:4px;margin-top:26px;margin-bottom:10px}
.tf-cart-totals .tf-cart-total dt{min-width:max-content;font-size:22px;font-weight:500;line-height:1.4;white-space:nowrap}
.tf-cart-totals .tf-cart-total dd{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:6px;max-width:100%;margin-left:auto;font-size:24px;line-height:1.4}
.tf-cart-total del{color:#777;font-size:18px;font-weight:500}
.tf-cart-total strong{color:var(--tf-red);font-weight:700}
.tf-cart-summary .tf-button{min-height:50px;margin-top:10px;padding:10px 8px;font-size:20px;font-weight:400;line-height:1.4}
.tf-cart-summary .tf-purchase-muted{margin-top:14px;font-size:12px;line-height:1.5}
.tf-main:has(.tf-cart-page)+.tf-contact-strip{border-top:0}
@media(max-width:1023px){
  .tf-cart-page .tf-purchase-layout{grid-template-columns:minmax(0,1fr)}
  .tf-cart-sidebar{position:static}
}

@media(min-width:768px) and (max-width:1200px){
  .tf-cart-page .tf-cart-item{grid-template-columns:110px minmax(0,1fr) minmax(110px,max-content) 32px;gap:14px}
  .tf-cart-item .tf-cart-line__image{grid-row:1/3}
  .tf-cart-item .tf-cart-line__image img{width:110px;height:96px}
  .tf-cart-item__info{grid-column:2;grid-row:1;align-self:end}
  .tf-cart-item__count{grid-column:2;grid-row:2;justify-self:start;align-self:start;align-items:flex-start}
  .tf-cart-item__price{grid-column:3;grid-row:1/3}
  .tf-cart-item .tf-cart-item__favorite{grid-column:4;grid-row:1/3}
}
@media(max-width:767px){
  .tf-cart-page .tf-cart-heading h1{font-size:20px;line-height:28px}
  .tf-cart-heading__count{font-size:13px;font-weight:500;line-height:20px}
  .tf-cart-location{gap:0 10px;margin-bottom:18px}
  .tf-cart-location .tf-cart-location__city{font-size:16px}
  .tf-cart-location .tf-cart-location__change{font-size:12px}
  .tf-cart-location button{min-height:44px}
  .tf-cart-page .tf-cart-products{padding:0 16px;border-radius:16px}
  .tf-cart-page .tf-cart-item{grid-template-columns:84px minmax(0,1fr) 32px;gap:12px;min-height:0;padding:20px 0}
  .tf-cart-item .tf-cart-line__image{grid-column:1;grid-row:1/3;align-self:start}
  .tf-cart-item .tf-cart-line__image img{width:84px;height:100px}
  .tf-cart-item__info{grid-column:2;grid-row:1}
  .tf-cart-products .tf-cart-item__info h3{font-size:14px}
  .tf-cart-item__count{grid-column:2/4;grid-row:3;justify-self:start;align-items:flex-start}
  .tf-cart-item .tf-cart-item__quantity button{width:40px;min-height:44px}
  .tf-cart-item .tf-cart-item__quantity input{width:32px;min-height:44px;font-size:14px}
  .tf-cart-item__price{grid-column:2/4;grid-row:2;align-items:flex-start;text-align:left}
  .tf-cart-item__price del{font-size:13px}
  .tf-cart-item__price strong{font-size:18px}
  .tf-cart-item__discount{font-size:12px}
  .tf-cart-item .tf-cart-item__favorite{grid-column:3;grid-row:1;width:44px;height:44px;margin-top:-6px;margin-right:-6px;padding:11px}
}

/* Order confirmation page */
.tf-checkout-items{padding:0;list-style:none}

/* Add-to-cart confirmation: product photograph, real basket price and two next steps. */
.tf-cart-added,.tf-cart-added *{box-sizing:border-box}
.tf-cart-added{box-sizing:border-box;width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:0;border-radius:4px;background:#fff;color:var(--tf-ink,#171717);font-family:var(--tf-font);overflow:auto}
.tf-cart-added::backdrop{background:rgb(0 0 0 / 42%)}
.tf-cart-added__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:20px}
.tf-cart-added__heading h2{margin:3px 0 0;font-family:inherit;font-size:20px;font-weight:400;line-height:1.4;text-transform:uppercase}
.tf-cart-added__mobile-title{display:none}
.tf-cart-added__icon{display:inline-flex;flex:0 0 32px;align-items:center;justify-content:center;width:32px;height:32px;padding:6px;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer}
.tf-cart-added__icon:disabled{opacity:.5;cursor:wait}
.tf-cart-added__product{display:grid;grid-template-columns:158px minmax(0,1fr) 32px;align-items:start;gap:16px;margin-bottom:16px}
.tf-cart-added__image{display:block;width:158px;height:158px;object-fit:contain;align-self:center}
.tf-cart-added__details{min-width:0}
.tf-cart-added__name{color:#60666d;font-size:16px;line-height:1.5;overflow-wrap:anywhere;text-decoration:none}
.tf-cart-added__prices{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-top:14px}
.tf-cart-added__prices strong{font-size:24px;line-height:1.3;font-weight:400}
.tf-cart-added__prices del{font-size:16px;line-height:1.4;color:#60666d}
.tf-cart-added__prices [hidden]{display:none}
.tf-cart-added__actions{display:flex;gap:12px}
.tf-cart-added__actions .tf-button{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:2px solid var(--tf-red);border-radius:5px;background:var(--tf-red);color:#fff;font-size:16px;font-weight:700;line-height:1.25;text-align:center;text-decoration:none}
.tf-cart-added__actions .tf-cart-added__continue{background:#fff;color:var(--tf-red)!important}
.tf-cart-added__notice,.tf-cart-added__error{margin:0 0 16px;font-size:14px;line-height:1.5}
.tf-cart-added__error{color:#b00020}
.tf-cart-added :is(button,a):focus-visible{outline:2px solid var(--tf-red);outline-offset:3px}
.tf-site [data-action="add-cart"].is-in-cart,.tf-site .tf-pdp-reference :is(.tf-product-buy-row,.tf-pdp-sticky) .tf-button.is-in-cart{background:#fff;color:var(--tf-red)!important;border-color:var(--tf-red)}
@media(hover:hover){
  .tf-cart-added__icon:hover{background:#f3f3f3}
  .tf-cart-added__name[href]:hover{text-decoration:underline;color:var(--tf-ink)}
  .tf-cart-added__actions .tf-button:hover{background:#fff;color:var(--tf-red)!important}
  .tf-cart-added__actions .tf-cart-added__continue:hover{background:#fff3f3}
}
@media(max-width:767px){
  .tf-cart-added{padding:20px}
  .tf-cart-added__desktop-title{display:none}
  .tf-cart-added__mobile-title{display:inline}
  .tf-cart-added__heading h2{font-size:18px}
  .tf-cart-added__product{grid-template-columns:104px minmax(0,1fr) 28px;gap:12px}
  .tf-cart-added__image{width:104px;height:120px}
  .tf-cart-added__name{font-size:14px;line-height:1.45}
  .tf-cart-added__prices strong{font-size:20px}
  .tf-cart-added__prices del{font-size:14px}
  .tf-cart-added__actions{flex-direction:column}
  .tf-cart-added__icon{width:32px;height:44px;margin-top:-6px;margin-right:-4px}
}

/* Confirmation uses order snapshots: names, quantities and prices are never recalculated. */
.tf-success-content.tf-order-confirmation{max-width:960px}
.tf-order-confirmation .tf-purchase-panel{padding:32px}
.tf-order-confirmation .tf-purchase-panel h2{margin:0 0 24px;font-size:22px;line-height:1.35}
.tf-order-confirmation .tf-purchase-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 40px;margin:0 0 32px}
.tf-order-confirmation .tf-purchase-details>div{min-width:0}
.tf-order-confirmation .tf-purchase-details dt{font-size:13px;line-height:20px;margin-bottom:4px}
.tf-order-confirmation .tf-purchase-details dd{font-size:15px;line-height:24px;overflow-wrap:anywhere}
.tf-order-confirmation .tf-purchase-panel .tf-order-confirmation__heading{margin:0;padding-top:28px;border-top:1px solid #e3e3e3}
.tf-order-confirmation__items{list-style:none;margin:8px 0 0;padding:0}
.tf-order-confirmation__item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;margin:0;padding:20px 0;border-bottom:1px solid #e8e8e8}
.tf-order-confirmation__product{min-width:0}
.tf-order-confirmation__name{margin:0;font-size:16px;font-weight:500;line-height:24px;color:#232120;overflow-wrap:anywhere}
.tf-order-confirmation__quantity{margin-top:6px;font-size:14px;line-height:22px;color:#626262}
.tf-order-confirmation__price{font-size:18px;line-height:24px;font-weight:600;white-space:nowrap;text-align:right;color:#232120}
.tf-order-confirmation .tf-purchase-totals{width:100%;max-width:360px;margin:28px 0 0 auto}
.tf-order-confirmation .tf-purchase-totals>div{font-size:15px;line-height:24px;margin-bottom:12px}
.tf-order-confirmation .tf-purchase-totals .tf-purchase-total{font-size:22px;line-height:30px;padding-top:16px;margin-top:16px;margin-bottom:0}
.tf-order-confirmation .tf-purchase-form-actions{margin-top:28px;padding-top:24px;border-top:1px solid #e3e3e3}
@media(max-width:767px){
  .tf-order-confirmation .tf-purchase-panel{padding:20px 16px}
  .tf-order-confirmation .tf-purchase-panel h2{font-size:20px;margin-bottom:20px}
  .tf-order-confirmation .tf-purchase-details{grid-template-columns:minmax(0,1fr);gap:20px;margin-bottom:24px}
  .tf-order-confirmation .tf-purchase-panel .tf-order-confirmation__heading{padding-top:24px;margin-bottom:0}
  .tf-order-confirmation__item{gap:12px;padding:16px 0}
  .tf-order-confirmation__name{font-size:14px;line-height:21px}
  .tf-order-confirmation__quantity{font-size:13px;line-height:20px}
  .tf-order-confirmation__price{font-size:16px;line-height:21px}
  .tf-order-confirmation .tf-purchase-totals{max-width:none;margin-top:24px}
  .tf-order-confirmation .tf-purchase-totals .tf-purchase-total{font-size:20px;line-height:28px;gap:12px}
  .tf-order-confirmation .tf-purchase-form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:24px}
  .tf-order-confirmation .tf-purchase-form-actions .tf-button{width:100%;text-align:center}
}

/* Applied promo uses the same field frame; only removal is offered until it is cleared. */
.tf-cart-promotion{display:grid;gap:8px;min-width:0}
.tf-cart-sidebar .tf-cart-promo__input.is-applied{align-items:center;border-color:#25834f}
.tf-cart-sidebar .tf-cart-promo--applied input{flex:1;min-width:0;width:0;background:#fff;color:var(--tf-ink);font-weight:500}
.tf-cart-promo__state{flex:none;color:#176c3a;font-size:12px;line-height:20px;padding-inline:4px;white-space:nowrap}
.tf-cart-promo__remove{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:40px;min-height:40px;padding:10px;border:0;border-radius:5px;background:#fff;color:#626262;cursor:pointer}
@media(hover:hover){.tf-cart-promo__remove:hover{color:var(--tf-red);background:#fff1f2}}
.tf-cart-promo__remove:focus-visible{outline:2px solid var(--tf-focus);outline-offset:1px}

/* Desktop prices and the favourite control share the centre of the product row. */
@media(min-width:768px){.tf-cart-item__price,.tf-cart-item .tf-cart-item__favorite{align-self:center}}
