/* ==========================================================================
   TheCBD.ru — /basket/ Checkout Page Styles (Figma 7564:15759, 7634:5938, 7659:11394)
   ========================================================================== */

.cbd-basket-page {
  background: var(--color-bg-page, #ffffff);
  padding-bottom: 80px;
}

/* Breadcrumbs & Page Title (Figma 7564:15761) */
.cbd-basket-crumbs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-top: 48px;
  font-size: 12px;
  font-weight: 500;
  line-height: 28px;
}

.cbd-basket-crumbs a {
  color: #aeaeae;
  text-decoration: none;
  transition: color var(--transition-fast, 150ms ease);
}

.cbd-basket-crumbs a:hover {
  color: var(--color-brand-primary, #317627);
}

.cbd-basket-crumbs__sep {
  color: rgba(25, 25, 25, 0.25);
}

.cbd-basket-crumbs__current {
  color: #191919;
}

.cbd-basket-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 48px;
}

.cbd-basket-head__title {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary, #202c25);
}

.cbd-basket-head__count {
  font-size: 15px;
  font-weight: 500;
  line-height: 28px;
  color: #aeaeae;
}

/* Two-Column Checkout Grid (Figma 7564:16218: 847px + 20px + 413px = 1280px) */
.cbd-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 413px;
  gap: 20px;
  align-items: start;
}

.cbd-checkout-left {
  display: flex;
  flex-direction: column;
  gap: 60px;
  min-width: 0;
}

.cbd-checkout-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 15px;
  padding: 21px 18px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cbd-checkout-card--items {
  padding: 21px 18px 21px 22px;
  gap: 0;
}

.cbd-checkout-card__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #000000;
}

/* Section 1: Cart Items */
.cbd-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 31px;
}

/* Section 2: Upsell "Вам также может подойти" (Figma 7564:16283) */
.cbd-upsell-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.cbd-upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cbd-upsell-grid .cbd-product-card {
  flex: none;
  width: 100%;
  min-width: 0;
}

.cbd-upsell-grid .cbd-product-card__media {
  background: var(--color-bg-surface, #fafbf8);
}

.cbd-upsell-grid .cbd-product-card__wish img {
  width: 20px;
  height: 20px;
}

.cbd-upsell-grid .cbd-product-card__wish.is-active {
  background: var(--color-brand-soft, #e6efe2);
}

.cbd-upsell-grid .cbd-btn-figma {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  font-size: 14px;
}

.cbd-upsell-grid .cbd-product-card__price-row {
  flex-wrap: wrap;
  row-gap: 6px;
  column-gap: 6px;
}

.cbd-upsell-grid .cbd-product-card__price {
  font-size: 20px;
}

.cbd-upsell-grid .cbd-cashback-btn {
  padding: 5px 8px;
  gap: 4px;
}

.cbd-upsell-grid .cbd-cashback-btn img {
  width: 14px;
  height: 14px;
}

/* Section 3: Buyer Tabs + Bonus Info Banner (Figma 7585:5415) */
.cbd-buyer-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbd-buyer-tabs {
  background: #f6f6f6;
  border-radius: 15px;
  padding: 4px 5px 3px 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 77px;
  align-items: center;
}

.cbd-buyer-tab {
  height: 70px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: #0a0a0a;
  cursor: pointer;
  padding: 12px 16px;
  transition: background var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease);
}

.cbd-buyer-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

.cbd-buyer-tab.is-active {
  background: var(--color-brand-accent, #3f892c);
  border-color: var(--color-brand-accent, #3f892c);
  color: #ffffff;
}

.cbd-buyer-note {
  min-height: 45px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--color-brand-tint, #ecf3ea);
  color: var(--color-brand-primary, #317627);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section 4: Customer & Recipient Form (Figma 7564:16562 & 7634:5938) */
.cbd-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 17px;
}

.cbd-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cbd-field--full {
  grid-column: 1 / -1;
}

.cbd-field__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #000000;
}

.cbd-field__input,
.cbd-field__textarea {
  width: 100%;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #202c25);
  outline: none;
  transition: border-color var(--transition-fast, 150ms ease);
}

.cbd-field__input {
  height: 40px;
  padding: 0 20px;
}

.cbd-field__input::placeholder,
.cbd-field__textarea::placeholder {
  color: #aeaeae;
}

.cbd-field__input:focus,
.cbd-field__textarea:focus,
.cbd-phone-box:focus-within {
  border-color: var(--color-brand-accent, #3f892c);
}

.cbd-field__textarea {
  min-height: 75px;
  padding: 12px 20px;
  resize: vertical;
}

.cbd-phone-box {
  height: 40px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--transition-fast, 150ms ease);
}

.cbd-phone-box__flag {
  width: 19px;
  height: 12px;
  background: #d9d9d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 1px;
}

.cbd-phone-box__flag img {
  width: 17.67px;
  height: 10.95px;
}

.cbd-phone-box__arrow {
  width: 9px;
  height: 8px;
  flex-shrink: 0;
}

.cbd-phone-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, #202c25);
}

.cbd-phone-box input::placeholder {
  color: #aeaeae;
}

.cbd-field.is-invalid .cbd-field__label {
  color: #ff0000;
}

.cbd-field.is-invalid .cbd-field__input,
.cbd-field.is-invalid .cbd-phone-box,
.cbd-field.is-invalid .cbd-field__textarea {
  border-color: #ff0000;
}

.cbd-field__error {
  display: none;
  font-size: 11px;
  font-weight: 500;
  color: #ff0000;
}

.cbd-field.is-invalid .cbd-field__error {
  display: block;
}

/* Recipient Switch Checkbox (Figma 7634:5840 / 7634:5966) */
.cbd-recipient-toggle {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.cbd-recipient-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.cbd-recipient-toggle__box {
  width: 23px;
  height: 23px;
  border: 2px solid var(--color-brand-accent, #3f892c);
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast, 150ms ease);
}

.cbd-recipient-toggle input:checked + .cbd-recipient-toggle__box {
  background: var(--color-brand-accent, #3f892c);
}

.cbd-recipient-toggle__box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity var(--transition-fast, 150ms ease);
}

.cbd-recipient-toggle input:checked + .cbd-recipient-toggle__box::after {
  opacity: 1;
}

.cbd-recipient-toggle__label {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #000000;
}

.cbd-recipient-section {
  display: none;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}

.cbd-recipient-section.is-open {
  display: flex;
}

.cbd-recipient-section__title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #000000;
}

/* Order Notifications Block (Figma 7618:13528) */
.cbd-notify-block {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.cbd-notify-block__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cbd-notify-block__label {
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

.cbd-notify-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.cbd-notify-channels {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cbd-notify-pill {
  width: auto;
  min-width: 88px;
  padding: 0 14px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #eeeeee;
  color: #000000;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease);
}

.cbd-notify-pill.is-active {
  background: var(--color-brand-accent, #3f892c);
  color: #ffffff;
}

.cbd-notify-enable {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #494949;
  white-space: nowrap;
}

.cbd-notify-enable input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cbd-notify-enable__box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #202c25;
  background: #ffffff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cbd-notify-enable__box img {
  width: 20px;
  height: 20px;
  display: none;
}

.cbd-notify-enable input:checked + .cbd-notify-enable__box {
  border-color: transparent;
}

.cbd-notify-enable input:checked + .cbd-notify-enable__box img {
  display: block;
}

.cbd-notify-input-row {
  display: flex;
  align-items: center;
  gap: 25px;
}

.cbd-notify-input-row .cbd-field__input {
  flex: 1 1 auto;
}

.cbd-tg-auth-btn {
  width: 233px;
  height: 40px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast, 150ms ease);
}

.cbd-tg-auth-btn:hover {
  opacity: 0.88;
}

.cbd-notify-hint {
  margin: 0;
  max-width: 539px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #030303;
}

/* Section 5: Delivery (Figma 7564:16524) */
.cbd-city-field-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cbd-city-box {
  height: 54px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
}

.cbd-city-box__pin {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cbd-city-box__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
}

.cbd-city-box__edit {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.cbd-city-box__edit img {
  width: 26px;
  height: 26px;
}

.cbd-city-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 10px;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(32, 44, 37, 0.08));
  padding: 6px;
  z-index: 15;
  flex-wrap: wrap;
  gap: 6px;
}

.cbd-city-suggestions.is-open {
  display: flex;
}

.cbd-city-suggestions button {
  border: 1px solid #e8e8e8;
  background: #fafbf8;
  color: #202c25;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.cbd-city-suggestions button:hover,
.cbd-city-suggestions button.is-active {
  background: var(--color-brand-accent, #3f892c);
  border-color: var(--color-brand-accent, #3f892c);
  color: #ffffff;
}

.cbd-delivery-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cbd-delivery-tab {
  height: 39px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #000000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease);
}

.cbd-delivery-tab:hover:not(.is-active) {
  background: #f6f6f6;
}

.cbd-delivery-tab.is-active {
  background: var(--color-brand-accent, #3f892c);
  color: #ffffff;
}

.cbd-carrier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.cbd-carrier-card {
  height: 100px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 9px 10px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition-fast, 150ms ease), background var(--transition-fast, 150ms ease);
}

.cbd-carrier-card:hover {
  border-color: var(--color-brand-accent, #3f892c);
}

.cbd-carrier-card.is-selected {
  border: 2px solid var(--color-brand-accent, #3f892c);
  padding: 8px 9px 9px;
  background: #fafdf9;
}

.cbd-carrier-card__logo {
  height: 22px;
  display: flex;
  align-items: center;
}

.cbd-carrier-card__logo img {
  max-height: 20px;
  width: auto;
}

.cbd-carrier-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: #000000;
}

.cbd-carrier-card__price {
  font-weight: 500;
  line-height: 1.2;
}

.cbd-carrier-card__eta {
  font-weight: 400;
  line-height: 1.2;
}

.cbd-pvz-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbd-carrier-grid--courier {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cbd-ozon-notice {
  background: #f1f7ef;
  border: 1px solid #d5e7d0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: #202c25;
}

.cbd-pvz-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--color-brand-accent, #3f892c);
  border-radius: 10px;
  background: #f7fbf6;
}

.cbd-pvz-selected-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cbd-pvz-selected-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}

.cbd-pvz-selected-card__addr {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #464646;
}

.cbd-pvz-selected-card__change {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid #d5e7d0;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-brand-accent, #3f892c);
  cursor: pointer;
  transition: background var(--transition-fast, 150ms ease), border-color var(--transition-fast, 150ms ease);
}

.cbd-pvz-selected-card__change:hover {
  background: #eff7ec;
  border-color: var(--color-brand-accent, #3f892c);
}

.cbd-pvz-picker-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cbd-pvz-search-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.cbd-pvz-search-row .cbd-field__input {
  flex: 1 1 auto;
  height: 40px;
}

.cbd-pvz-search-btn {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 8px;
  background: #979797;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast, 150ms ease);
}

.cbd-pvz-search-btn:hover {
  background: #777777;
}

.cbd-pvz-search-btn img {
  width: 19px;
  height: 19px;
}

.cbd-pvz-map {
  position: relative;
  height: 418px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  background: #eef2eb;
}

.cbd-pvz-map__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cbd-pvz-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cbd-pvz-pin__dot {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #3f892c;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbd-pvz-pin__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.cbd-pvz-pin:not(.is-selected) .cbd-pvz-pin__dot {
  background: #5b685f;
}

.cbd-pvz-pin__tag {
  background: #ffffff;
  color: #202c25;
  border: 1px solid #dce4d9;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cbd-pvz-pin.is-selected .cbd-pvz-pin__tag {
  background: #3f892c;
  border-color: #3f892c;
  color: #ffffff;
}

.cbd-courier-panel {
  display: none;
}

.cbd-courier-panel.is-open {
  display: block;
}

.cbd-delivery-more-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brand-accent, #3f892c);
  text-align: center;
  text-decoration: underline;
  align-self: center;
}

/* Section 6: Payment (Figma 7565:16716) */
.cbd-pay-list {
  display: flex;
  flex-direction: column;
}

.cbd-pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
  cursor: pointer;
}

.cbd-pay-option:first-child {
  padding-top: 0;
}

.cbd-pay-option:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cbd-pay-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cbd-pay-option__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cbd-pay-option__radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("/assets/basket/radio-inactive.svg");
}

.cbd-pay-option.is-selected .cbd-pay-option__radio {
  background-image: url("/assets/basket/radio-active.svg");
}

.cbd-pay-option__label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: #000000;
}

.cbd-pay-option.is-selected .cbd-pay-option__label {
  font-weight: 600;
}

.cbd-pay-option__logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.cbd-pay-cards-icon {
  position: relative;
  width: 52px;
  height: 35px;
  flex-shrink: 0;
}

.cbd-pay-cards-icon__back {
  position: absolute;
  top: 2px;
  left: 0;
  width: 30px;
  height: 23px;
  transform: rotate(-15deg);
}

.cbd-pay-cards-icon__front {
  position: absolute;
  top: 12px;
  left: 23px;
  width: 29px;
  height: 22px;
}

.cbd-pay-mir-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cbd-pay-mir-wrap img {
  width: 60px;
  height: 17px;
}

.cbd-pay-mir-wrap span {
  font-size: 16px;
  font-weight: 700;
  color: #57667b;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cbd-pay-split-logo {
  position: relative;
  width: 68px;
  height: 21px;
  flex-shrink: 0;
}

.cbd-pay-split-logo img {
  position: absolute;
  max-width: none;
}

.cbd-pay-split-logo__icon { left: 0; top: 0; width: 16.26px; height: 20.5px; }
.cbd-pay-split-logo__v1 { left: 20.36px; top: 2.28px; width: 8.7px; height: 15.86px; }
.cbd-pay-split-logo__v2 { left: 30.58px; top: 6.76px; width: 7.88px; height: 11.16px; }
.cbd-pay-split-logo__v3 { left: 39.67px; top: 6.76px; width: 8.6px; height: 11.38px; }
.cbd-pay-split-logo__v4 { left: 50.29px; top: 6.76px; width: 8.1px; height: 11.16px; }
.cbd-pay-split-logo__v5 { left: 59.8px; top: 6.76px; width: 8.02px; height: 11.16px; }

/* Right Column: Sticky Summary Card (Figma 7564:15464 & 7659:11394) */
.cbd-checkout-sidebar {
  position: sticky;
  top: 146px;
}

.cbd-summary-card {
  background: #ffffff;
  border: 1px solid var(--color-brand-accent, #3f892c);
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cbd-summary-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: #000000;
}

.cbd-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cbd-summary-row--top {
  align-items: flex-start;
}

.cbd-summary-row__key {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #000000;
  text-transform: uppercase;
}

.cbd-summary-row__val-green {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brand-accent, #3f892c);
  white-space: nowrap;
}

.cbd-summary-row__val-dark {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #191919;
  white-space: nowrap;
}

.cbd-summary-subrow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.cbd-summary-subrow__key {
  color: #000000;
  flex-shrink: 0;
}

.cbd-summary-subrow__val {
  color: #a3a3a3;
  text-align: right;
}

.cbd-summary-line-green {
  height: 1px;
  width: 100%;
  background: var(--color-brand-accent, #3f892c);
}

.cbd-summary-line-gray {
  height: 1px;
  width: 100%;
  background: #ededed;
}

.cbd-bonus-input-box {
  width: 162px;
  height: 32px;
  border: 1px dashed var(--color-brand-accent, #3f892c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #ffffff;
}

.cbd-bonus-input-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #191919;
}

.cbd-bonus-input-box input::placeholder,
.cbd-bonus-input-box input:read-only {
  color: #a3a3a3;
}

.cbd-bonus-pill {
  width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-brand-soft, #e6efe2);
  color: var(--color-brand-primary, #317627);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.cbd-bonus-pill--auth {
  background: rgba(104, 187, 185, 0.11);
  color: #478a94;
}

.cbd-summary-free-note {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: right;
  background: linear-gradient(173deg, #78b968 15%, #3c7c2c 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cbd-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cbd-summary-total__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #000000;
  text-transform: uppercase;
}

.cbd-summary-total__price {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-brand-primary, #317627);
  white-space: nowrap;
}

.cbd-summary-promo {
  height: 50px;
  border: 1px dashed var(--color-brand-accent, #3f892c);
  border-radius: 8px;
  padding: 0 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
}

.cbd-summary-promo__icon {
  width: 24px;
  height: 14px;
  flex-shrink: 0;
}

.cbd-summary-promo input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #000000;
  text-transform: uppercase;
}

.cbd-summary-promo input::placeholder {
  color: #797979;
}

.cbd-summary-promo__btn {
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbd-summary-promo__btn.is-applied img {
  width: 22px;
  height: 22px;
}

.cbd-summary-promo-note {
  margin: -10px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  color: #3c7c2c;
}

.cbd-summary-promo-note.is-error {
  color: #d63b3b;
}

.cbd-summary-promo-note:empty {
  display: none;
}

.cbd-summary-cta {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--color-brand-primary, #317627);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast, 150ms ease);
}

.cbd-summary-cta:hover {
  background: var(--color-brand-primary-hover, #275f1f);
}

.cbd-summary-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Consent 152-FZ inside Summary Card */
.cbd-checkout-consent {
  padding: 0;
  border: 1px solid transparent;
  gap: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
}

.cbd-checkout-consent.is-error {
  padding: 8px 10px;
}

.cbd-checkout-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.cbd-checkout-consent a {
  color: inherit;
  text-decoration: underline;
}

/* Success Modal */
.cbd-order-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cbd-order-modal.is-open {
  display: flex;
}

.cbd-order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.cbd-order-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.cbd-order-modal__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand-soft, #e6efe2);
  color: var(--color-brand-primary, #317627);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbd-order-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #202c25;
}

.cbd-order-modal__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b685f;
}

.cbd-order-modal__actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.cbd-order-modal__actions a,
.cbd-order-modal__actions button {
  flex: 1 1 0;
  height: 48px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.cbd-order-modal__btn-primary {
  background: var(--color-brand-primary, #317627);
  color: #ffffff;
  border: 0;
}

.cbd-order-modal__btn-outline {
  background: #ffffff;
  color: #202c25;
  border: 1px solid #d3d3d3;
}

/* ==========================================================================
   Responsive (Tablet <= 1100px, Mobile <= 767px)
   ========================================================================== */

@media (max-width: 1360px) and (min-width: 1101px) {
  .cbd-basket-page .cbd-container {
    padding-inline: 32px;
  }

  .cbd-checkout-grid {
    grid-template-columns: minmax(0, 1fr) 376px;
  }

  .cbd-summary-card {
    padding: 24px 22px;
  }
}

@media (max-width: 1100px) {
  .cbd-checkout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cbd-checkout-sidebar {
    position: static;
  }

  .cbd-checkout-left {
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .cbd-upsell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cbd-carrier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cbd-basket-page {
    padding-bottom: 96px;
  }

  .cbd-basket-crumbs {
    padding-top: 20px;
  }

  .cbd-basket-head {
    margin-top: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cbd-basket-head__title {
    font-size: 24px;
  }

  .cbd-checkout-card,
  .cbd-checkout-card--items {
    padding: 16px;
    gap: 20px;
  }

  .cbd-checkout-card__title,
  .cbd-recipient-section__title {
    font-size: 20px;
  }

  .cbd-upsell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cbd-upsell-grid .cbd-product-card {
    padding: 12px;
    gap: 8px;
  }

  .cbd-upsell-grid .cbd-product-card__media {
    height: 140px;
  }

  .cbd-upsell-grid .cbd-product-card__media > img {
    height: 130px;
  }

  .cbd-upsell-grid .cbd-product-card__title {
    font-size: 13px;
    min-height: 36px;
  }

  .cbd-upsell-grid .cbd-product-card__price {
    font-size: 16px;
  }

  .cbd-upsell-grid .cbd-product-card__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cbd-upsell-grid .cbd-cashback-btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  .cbd-cart-item .cbd-tooltip {
    left: auto !important;
    right: 0 !important;
  }

  .cbd-buyer-tabs {
    grid-template-columns: 1fr;
    padding: 6px;
  }

  .cbd-buyer-tab {
    height: 48px;
    font-size: 14px;
  }

  .cbd-buyer-note {
    font-size: 13px;
  }

  .cbd-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cbd-recipient-toggle {
    gap: 14px;
  }

  .cbd-recipient-toggle__label {
    font-size: 15px;
  }

  .cbd-notify-pill {
    flex: 1 1 calc(50% - 4px);
    width: auto;
  }

  .cbd-notify-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cbd-tg-auth-btn {
    width: 100%;
  }

  .cbd-delivery-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cbd-carrier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cbd-pvz-map {
    height: 260px;
  }

  .cbd-pay-option {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }

  .cbd-pay-option__label {
    font-size: 14px;
  }

  .cbd-summary-card {
    padding: 20px 16px;
    gap: 18px;
  }

  .cbd-summary-total__price {
    font-size: 24px;
  }

  .cbd-order-modal__actions {
    flex-direction: column;
  }
}
