
/* =========================================================
   CART DRAWER + CHECKOUT
   Компактная корзина и эргономичное оформление заказа
   ========================================================= */

/* ---------------- CART DRAWER ---------------- */
.cart-panel{
  width:min(430px,100%) !important;
  padding:0 !important;
  background:#fffdfb !important;
}

.cart-head{
  min-height:62px !important;
  padding:0 16px !important;
  border-bottom:1px solid #e9e0d9 !important;
}

.cart-head h2{
  font-size:21px !important;
  letter-spacing:-.035em !important;
}

.cart-head button{
  width:32px !important;
  height:32px !important;
  font-size:22px !important;
}

.cart-content{
  padding:11px 16px 14px !important;
}

.cart-content__caption{
  margin-bottom:7px !important;
  font-size:10.5px !important;
}

.cart-item{
  gap:9px !important;
  padding:9px 0 !important;
}

.cart-item__image{
  width:50px !important;
  height:50px !important;
  flex-basis:50px !important;
  border-radius:8px !important;
}

.cart-item__top strong,
.cart-addon strong{
  font-size:12.5px !important;
  line-height:1.2 !important;
}

.cart-item__top small,
.cart-addon small{
  margin-top:2px !important;
  font-size:10px !important;
}

.cart-item__bottom{
  margin-top:6px !important;
}

.cart-item__bottom>strong{
  font-size:12.5px !important;
}

.qty-controls{
  grid-template-columns:26px 27px 26px !important;
  min-height:28px !important;
  border-radius:7px !important;
}

.qty-controls button{
  width:26px !important;
  height:26px !important;
  font-size:16px !important;
}

.qty-controls span{
  font-size:11.5px !important;
}

.cart-remove{
  width:23px !important;
  height:23px !important;
  flex-basis:23px !important;
  font-size:18px !important;
}

.cart-addons{
  margin-top:12px !important;
  padding:0 10px !important;
  border-radius:9px !important;
  background:#f8f4ef !important;
}

.cart-addons__head{
  padding:9px 0 7px !important;
}

.cart-addons__head strong{
  font-size:12.5px !important;
}

.cart-addons__head span{
  font-size:9.5px !important;
}

.cart-addon{
  padding:8px 0 !important;
}

.cart-addon__add{
  min-height:28px !important;
  padding:0 9px !important;
  font-size:10px !important;
}

.cart-gifts__title{
  padding:9px 0 2px !important;
}

.cart-gifts__title strong{
  font-size:12px !important;
}

.cart-drawer .cart-summary{
  padding:12px 16px calc(14px + env(safe-area-inset-bottom)) !important;
}

.cart-summary__line{
  padding:2px 0 !important;
  font-size:11.5px !important;
}

.cart-summary__line strong{
  font-size:11.5px !important;
}

.cart-delivery{
  margin:8px 0 10px !important;
  font-size:10px !important;
}

.cart-drawer .cart-total{
  padding:9px 0 10px !important;
  font-size:19px !important;
}

.cart-drawer .cart-summary .button{
  min-height:42px !important;
  border-radius:8px !important;
  font-size:12px !important;
}

.cart-drawer .cart-summary>small{
  margin-top:6px !important;
  font-size:9px !important;
}

/* ---------------- CHECKOUT PAGE ---------------- */
body:has(.checkout-grid) .site-header{
  position:relative;
}

.checkout-breadcrumbs{
  display:flex;
  gap:7px;
  padding-top:14px !important;
  font-size:11px !important;
}

.checkout-hero{
  padding:15px 0 14px;
}

.checkout-hero>.container{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
}

.checkout-hero span{
  display:block;
  margin-bottom:4px;
  color:var(--orange);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.checkout-hero h1{
  margin:0;
  font-size:clamp(30px,3.4vw,46px);
  line-height:1;
  letter-spacing:-.04em;
}

.checkout-hero p{
  max-width:420px;
  margin:0 0 2px;
  color:#746961;
  font-size:12.5px;
  text-align:right;
}

.checkout-gift-benefits{
  padding:0 0 15px !important;
}

.checkout-gift-benefits__head{
  align-items:center !important;
  margin-bottom:8px !important;
}

.checkout-gift-benefits__head span{
  font-size:9px !important;
}

.checkout-gift-benefits__head h2{
  margin-top:2px !important;
  font-size:16px !important;
  letter-spacing:-.015em;
}

.checkout-gift-benefits__head>a{
  font-size:10.5px !important;
}

.checkout-gift-benefits__grid{
  border-radius:9px !important;
}

.checkout-gift-benefit{
  grid-template-columns:27px minmax(0,1fr) auto !important;
  gap:9px !important;
  padding:11px 13px !important;
}

.checkout-gift-benefit__mark{
  font-size:9px !important;
}

.checkout-gift-benefit strong{
  font-size:13px !important;
}

.checkout-gift-benefit p{
  margin-top:2px !important;
  font-size:10.5px !important;
  line-height:1.35 !important;
}

.checkout-gift-benefit__status{
  padding:4px 6px !important;
  border-radius:6px !important;
  font-size:8.5px !important;
}

.checkout-section{
  padding:8px 0 34px;
}

.checkout-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px !important;
  gap:20px !important;
  align-items:start;
}

.checkout-form{
  display:grid;
  gap:12px;
}

.checkout-form__section{
  padding:16px;
  border:1px solid #e3d9d1;
  border-radius:11px;
  background:#fff;
}

.checkout-form__section-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:13px;
}

.checkout-form__section-head>span{
  width:27px;
  height:27px;
  flex:0 0 27px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#f2ebe5;
  color:#9b4627;
  font-size:9px;
  font-weight:800;
}

.checkout-form__section-head h2{
  margin:0;
  font-size:17px;
  line-height:1.15;
  letter-spacing:-.02em;
}

.checkout-form__section-head p{
  margin:2px 0 0;
  color:#877b72;
  font-size:10.5px;
  line-height:1.35;
}

.checkout-fields--2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.checkout-field{
  position:relative;
  display:grid;
  gap:4px;
  margin-bottom:10px;
}

.checkout-field:last-child{
  margin-bottom:0;
}

.checkout-field label{
  color:#41362f;
  font-size:10.5px;
  font-weight:800;
}

.checkout-field label>span{
  color:#c54c25;
}

.checkout-field label>em{
  color:#9a8e84;
  font-size:9px;
  font-style:normal;
  font-weight:500;
}

.checkout-field input,
.checkout-field textarea{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  border:1px solid #ddd2c9;
  border-radius:7px;
  outline:none;
  background:#fff;
  color:#2d251f;
  font-size:12.5px;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.checkout-field textarea{
  min-height:72px;
  resize:vertical;
  line-height:1.4;
}

.checkout-field input:focus,
.checkout-field textarea:focus{
  border-color:#c87f61;
  box-shadow:0 0 0 3px rgba(207,103,61,.09);
}

.field-hint{
  color:#9a8e85;
  font-size:9px;
  line-height:1.3;
}

.field-error{
  display:none;
  color:#b4381c;
  font-size:9.5px;
  font-weight:700;
  line-height:1.3;
}

.checkout-field.has-error input,
.checkout-field.has-error textarea{
  border-color:#d76042;
  background:#fff9f7;
}

.checkout-field.has-error .field-error,
.privacy-check.has-error + .field-error,
.field-error:not(:empty){
  display:block;
}

.privacy-check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin-top:3px;
  padding:9px 10px;
  border:1px solid #e3d9d1;
  border-radius:8px;
  background:#faf8f5;
  cursor:pointer;
}

.privacy-check input{
  width:15px;
  height:15px;
  flex:0 0 15px;
  margin:2px 0 0;
  accent-color:#eb5527;
}

.privacy-check span{
  color:#70655d;
  font-size:10px;
  line-height:1.4;
}

.privacy-check a{
  color:#9f4425;
  text-decoration:underline;
  text-underline-offset:2px;
}

.privacy-check.has-error{
  border-color:#d76042;
  background:#fff6f3;
}

.privacy-error{
  margin-top:4px;
}

.checkout-account,
.checkout-birthday-box{
  margin:0 !important;
  padding:14px !important;
  border-radius:10px !important;
}

.checkout-account__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:9px !important;
}

.checkout-account__head strong,
.checkout-birthday-box__copy strong{
  font-size:14px !important;
}

.checkout-account__head span,
.checkout-birthday-box__copy span{
  margin-top:2px !important;
  font-size:10px !important;
}

.checkout-account__head>a{
  flex:0 0 auto;
  color:#a14524;
  font-size:10px;
  font-weight:700;
}

.checkout-account__toggle{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  font-weight:700;
}

.checkout-account [data-password-field]{
  margin-top:11px !important;
}

.checkout-register-now{
  width:auto !important;
  min-height:38px !important;
  margin-top:0 !important;
  padding:0 13px !important;
  border-radius:7px !important;
  font-size:11px !important;
}

.checkout-account__note{
  display:inline-block;
  margin-left:8px;
  color:#8e8178;
  font-size:9.5px;
}

.checkout-birthday-box{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px 16px;
  align-items:center;
}

.checkout-birthday-check{
  margin:0 !important;
  font-size:11px;
}

.checkout-birthday-warning{
  grid-column:1/-1;
  padding-top:8px !important;
}

.checkout-birthday-warning strong{
  font-size:10.5px !important;
}

.checkout-birthday-warning span{
  font-size:9.5px !important;
}

.checkout-birthday-message{
  grid-column:1/-1;
  min-height:0 !important;
  margin-top:0 !important;
  font-size:9.5px !important;
}

.checkout-address-details{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.checkout-payment{
  position:relative;
  grid-template-columns:34px 1fr auto !important;
  gap:9px !important;
  margin:0 0 10px !important;
  padding:10px 11px !important;
  border-radius:8px !important;
}

.checkout-payment__icon{
  width:34px !important;
  height:34px !important;
  border-radius:7px !important;
}

.checkout-payment__icon svg{
  width:19px !important;
  height:19px !important;
}

.checkout-payment strong{
  font-size:12.5px !important;
}

.checkout-payment span{
  font-size:9.5px !important;
}

.checkout-payment__state{
  align-self:center;
  margin:0 !important;
  padding:4px 6px;
  border-radius:6px;
  background:#e9f5ec;
  color:#2b7248 !important;
  font-size:8.5px !important;
  font-weight:800;
}

.checkout-submit{
  display:grid;
  gap:6px;
}

.checkout-submit .button{
  width:100%;
  min-height:46px;
  display:flex;
  justify-content:space-between;
  padding:0 16px;
  border-radius:9px;
  font-size:13px;
}

.checkout-submit .button span{
  font-size:13px;
}

.checkout-submit small{
  color:#8d8178;
  font-size:9.5px;
  text-align:center;
}

.checkout-submit .button.is-loading{
  opacity:.7;
  cursor:wait;
}

/* ---------------- ORDER SUMMARY ---------------- */
.checkout-summary{
  position:sticky;
  top:18px;
  overflow:hidden;
  padding:0;
  border:1px solid #ded4cc;
  border-radius:11px;
  background:#fff;
  box-shadow:0 7px 22px rgba(46,31,21,.045);
}

.checkout-summary__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 14px 11px;
  border-bottom:1px solid #eee6df;
}

.checkout-summary__head>div>span{
  display:block;
  color:#a24a2a;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.checkout-summary__head h2{
  margin:2px 0 0;
  font-size:17px;
  line-height:1.1;
}

.checkout-summary__head button{
  padding:0;
  border:0;
  background:transparent;
  color:#a14524;
  font-size:10px;
  font-weight:800;
}

.checkout-summary__items{
  max-height:350px;
  overflow:auto;
  padding:4px 14px;
  scrollbar-width:thin;
  scrollbar-color:#d6c8be transparent;
}

.checkout-summary__item{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #f0e8e2;
}

.checkout-summary__item:last-child{
  border-bottom:0;
}

.checkout-summary__item img{
  width:42px;
  height:42px;
  object-fit:cover;
  border-radius:7px;
  background:#eee6df;
}

.checkout-summary__item-copy{
  min-width:0;
}

.checkout-summary__item-copy>span{
  display:block;
  margin-bottom:2px;
  color:#a24a2a;
  font-size:7.5px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.checkout-summary__item-copy strong{
  display:block;
  overflow:hidden;
  color:#302720;
  font-size:11.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.checkout-summary__item-copy small{
  display:block;
  margin-top:2px;
  color:#8a7e75;
  font-size:9px;
}

.checkout-summary__item>b{
  color:#2f261f;
  font-size:10.5px;
  white-space:nowrap;
}

.checkout-summary__item.is-addon img{
  opacity:.9;
}

.checkout-summary__item--gift{
  margin-inline:-6px;
  padding-inline:6px;
  background:#fff8f3;
  border-radius:7px;
}

.checkout-summary__item--gift .checkout-summary__item-copy>span{
  color:#cf5428;
}

.checkout-summary__delivery{
  padding:10px 14px 9px;
  border-top:1px solid #eee6df;
  background:#faf7f4;
}

.checkout-summary__delivery-bar{
  height:4px;
  overflow:hidden;
  margin-bottom:5px;
  border-radius:99px;
  background:#ece3dc;
}

.checkout-summary__delivery-bar i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#e75a2c;
}

.checkout-summary__delivery>span{
  color:#766a62;
  font-size:9px;
}

.checkout-summary__delivery b{
  color:#9f4323;
}

.checkout-summary__totals{
  padding:9px 14px;
}

.checkout-summary__totals>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:2px 0;
  color:#71665f;
  font-size:10.5px;
}

.checkout-summary__totals b{
  color:#322821;
  font-size:10.5px;
}

.checkout-summary__totals .is-total{
  margin-top:6px;
  padding-top:8px;
  border-top:1px solid #eae1da;
  color:#241c18;
  font-size:14px;
  font-weight:800;
}

.checkout-summary__totals .is-total b{
  font-size:16px;
}

.checkout-summary__facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border-top:1px solid #eee6df;
  background:#fbf9f7;
}

.checkout-summary__facts span{
  display:flex;
  align-items:center;
  gap:5px;
  padding:9px 11px;
  color:#766a62;
  font-size:9px;
}

.checkout-summary__facts span+span{
  border-left:1px solid #eee6df;
}

.checkout-summary__facts svg{
  width:15px;
  height:15px;
  flex:0 0 15px;
  fill:none;
  stroke:#8b4327;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---------------- RESPONSIVE ---------------- */
@media(max-width:980px){
  .checkout-grid{
    grid-template-columns:minmax(0,1fr) 320px !important;
  }

  .checkout-gift-benefit{
    grid-template-columns:24px 1fr !important;
  }

  .checkout-gift-benefit__status{
    grid-column:2;
    justify-self:start;
  }
}

@media(max-width:760px){
  .checkout-hero>.container{
    display:block;
  }

  .checkout-hero p{
    margin-top:7px;
    text-align:left;
  }

  .checkout-gift-benefits__grid{
    grid-template-columns:1fr !important;
  }

  .checkout-gift-benefit+.checkout-gift-benefit{
    border-left:0 !important;
    border-top:1px solid #e5dbd3;
  }

  .checkout-grid{
    grid-template-columns:1fr !important;
  }

  .checkout-summary{
    position:static;
    grid-row:1;
  }

  .checkout-summary__items{
    max-height:260px;
  }

  .checkout-fields--2{
    grid-template-columns:1fr;
  }

  .checkout-form__section{
    padding:14px;
  }

  .checkout-address-details{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .checkout-birthday-box{
    grid-template-columns:1fr;
  }

  .checkout-birthday-warning,
  .checkout-birthday-message{
    grid-column:auto;
  }
}

@media(max-width:480px){
  .checkout-breadcrumbs{
    padding-top:10px !important;
  }

  .checkout-hero{
    padding:11px 0 10px;
  }

  .checkout-hero h1{
    font-size:30px;
  }

  .checkout-gift-benefits{
    padding-bottom:10px !important;
  }

  .checkout-gift-benefits__head{
    margin-bottom:6px !important;
  }

  .checkout-gift-benefits__head h2{
    font-size:14px !important;
  }

  .checkout-gift-benefit{
    padding:9px 10px !important;
  }

  .checkout-section{
    padding-top:4px;
  }

  .checkout-form{
    gap:9px;
  }

  .checkout-form__section{
    padding:12px;
    border-radius:9px;
  }

  .checkout-address-details{
    grid-template-columns:repeat(3,1fr);
    gap:5px;
  }

  .checkout-address-details .checkout-field label{
    font-size:9px;
  }

  .checkout-address-details .checkout-field input{
    padding-inline:7px;
  }

  .privacy-check{
    padding:8px;
  }

  .checkout-summary__items{
    max-height:none;
  }

  .cart-content{
    padding-inline:13px !important;
  }

  .cart-drawer .cart-summary{
    padding-inline:13px !important;
  }
}

/* ---------------- READABILITY ---------------- */
/* Основной интерфейс должен читаться без увеличения масштаба браузера. */
.cart-content__caption{font-size:13px !important}
.cart-item__top strong,.cart-addon strong{font-size:14.5px !important;line-height:1.28 !important}
.cart-item__top small,.cart-addon small{font-size:12px !important}
.cart-item__bottom>strong{font-size:14px !important}
.qty-controls span{font-size:13px !important}
.cart-addons__head strong{font-size:14px !important}
.cart-addons__head span{font-size:11.5px !important;line-height:1.35 !important}
.cart-addon__add{font-size:11.5px !important}
.cart-summary__line{font-size:13px !important}
.cart-summary__line strong{font-size:13px !important}
.cart-delivery{font-size:11.5px !important;line-height:1.35 !important}
.cart-drawer .cart-summary>small{font-size:10.5px !important;line-height:1.35 !important}

.checkout-hero p{font-size:14px !important;line-height:1.4 !important}
.checkout-form__section-head p{font-size:12px !important;line-height:1.4 !important}
.checkout-field label{font-size:12px !important}
.checkout-field label>em{font-size:10px !important}
.field-hint,.field-error{font-size:10.5px !important;line-height:1.35 !important}
.privacy-check span{font-size:11.5px !important;line-height:1.45 !important}
.checkout-payment strong{font-size:14px !important}
.checkout-payment span{font-size:11.5px !important;line-height:1.4 !important}
.checkout-summary__item-copy strong{font-size:12.5px !important}
.checkout-summary__item-copy small{font-size:10.5px !important}
.checkout-summary__item>b{font-size:11.5px !important}
.checkout-summary__delivery>span{font-size:10.5px !important}
.checkout-summary__totals>div{font-size:11.5px !important}
.checkout-summary__totals b{font-size:11.5px !important}
.checkout-summary__facts span{font-size:10.5px !important;line-height:1.3 !important}
