/* ==========================================================================
   TheCBD.ru — Личный кабинет покупателя (/personal/, /personal/orders/)
   и Партнёрская программа (/personal/partners/)
   Figma: 7566:16793, 7566:18399, 7623:5486, 7566:19392, 7567:20173,
          7567:21916, 7618:14728, 7682:8436, 7683:9612, 7618:16654,
          7618:17192, 7618:17700, 7618:19420
   ========================================================================== */

.cbd-lk-page {
  background: #ffffff;
  color: #202c25;
  padding-top: 32px;
  padding-bottom: 80px;
}

/* 1. Верхняя панель ЛК: профиль + переключатель Покупатель / Партнёр */
.cbd-lk-topbar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.cbd-lk-user {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbd-lk-user__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbd-lk-user__name {
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #202c25;
}

.cbd-lk-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6efe2;
  color: #3f892c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cbd-lk-role-pill--partner {
  background: #e0f4f5;
  color: #1f8a96;
}

.cbd-lk-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #202c25;
}

.cbd-lk-balance small {
  font-size: 12px;
  font-weight: 500;
  color: #5b685f;
}

/* Переключатель режима кабинета */
.cbd-lk-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #f2f4f2;
  border-radius: 12px;
}

.cbd-lk-mode-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #202c25;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cbd-lk-mode-switch__btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.cbd-lk-mode-switch__btn.is-active {
  background: #3f892c;
  color: #ffffff;
}

.cbd-lk-mode-switch__btn.is-active--partner {
  background: linear-gradient(90deg, #2ca9b7 0%, #52b7c3 100%);
  color: #ffffff;
}

/* 2. Партнёрский бирюзовый дашборд-баннер (Figma 7618:14728) */
.cbd-partner-banner {
  background: linear-gradient(100deg, #3daebc 0%, #55c0cc 55%, #238e9b 100%);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: #ffffff;
}

.cbd-partner-banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 210px 150px minmax(0, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.cbd-partner-banner__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.cbd-partner-banner__info p {
  margin: 0;
}

.cbd-partner-banner__card {
  background: #ffffff;
  color: #202c25;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.cbd-partner-banner__card--mint {
  background: #eef7eb;
}

.cbd-partner-banner__card--pink {
  background: #fdf2f0;
}

.cbd-partner-banner__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5b685f;
}

.cbd-partner-banner__val {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  color: #202c25;
}

.cbd-partner-banner__val small {
  font-size: 12px;
  font-weight: 500;
  color: #5b685f;
}

.cbd-partner-banner__sub {
  font-size: 11px;
  color: #5b685f;
}

.cbd-partner-banner__withdraw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #61aeb8;
  color: #ffffff;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cbd-partner-banner__withdraw-btn:hover {
  background: #4d9ba5;
}

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

.cbd-burn-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cbd-burn-item__sum {
  font-size: 14px;
  font-weight: 700;
  color: #202c25;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cbd-burn-item__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e55c44;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cbd-burn-item__date {
  font-size: 10px;
  color: #6b7280;
}

/* 3. Основная 2-колоночная сетка ЛК: Сайдбар 280px + Контент */
.cbd-lk-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Боковое меню */
.cbd-lk-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-lk-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cbd-lk-nav__sep {
  height: 1px;
  background: #eef1ee;
  margin: 8px 0;
}

.cbd-lk-nav__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #f8faf8;
  color: #202c25;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cbd-lk-nav__btn:hover {
  background: #edf4eb;
}

.cbd-lk-nav__btn.is-active {
  background: #3f892c;
  color: #ffffff;
}

.cbd-lk-nav__btn.is-active img {
  filter: brightness(0) invert(1);
}

.cbd-lk-nav__btn--partner.is-active {
  background: linear-gradient(90deg, #2ca9b7 0%, #52b7c3 100%);
  color: #ffffff;
}

.cbd-lk-nav__btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Персональный менеджер в сайдбаре партнёрки */
.cbd-lk-manager {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #eef1ee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cbd-lk-manager__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbd-lk-manager__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  flex-shrink: 0;
}

.cbd-lk-manager__name {
  font-size: 13px;
  font-weight: 600;
  color: #202c25;
}

.cbd-lk-manager__role {
  font-size: 11px;
  color: #6b7280;
}

.cbd-lk-manager__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #202c25;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cbd-lk-manager__btn:hover {
  border-color: #2ca9b7;
  background: #f4fbfc;
}

/* 4. Основная карточка контента ЛК */
.cbd-lk-panel {
  background: #ffffff;
  border: 1px solid #e6ece4;
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
}

.cbd-lk-pane[hidden] {
  display: none !important;
}

.cbd-lk-pane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cbd-lk-pane__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #202c25;
}

.cbd-lk-pane__sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: #5b685f;
}

/* Фильтры-пилюли (Все заказы / Активные / Полученные / Ждут отзыва) */
.cbd-lk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cbd-lk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #dce4d9;
  border-radius: 999px;
  background: #ffffff;
  color: #3f892c;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cbd-lk-pill:hover {
  background: #f2f7f0;
}

.cbd-lk-pill.is-active {
  background: #3f892c;
  border-color: #3f892c;
  color: #ffffff;
}

/* Карточка заказа (Figma 7566:16793) */
.cbd-order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbd-order-card {
  padding: 20px 0;
  border-top: 1px solid #eef1ee;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbd-order-card[hidden] {
  display: none !important;
}

.cbd-order-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cbd-order-card__id {
  font-size: 15px;
  font-weight: 700;
  color: #202c25;
}

.cbd-order-card__meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.cbd-order-card__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cbd-lk-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.cbd-lk-badge--paid {
  background: #3f892c;
  color: #ffffff;
}

.cbd-lk-badge--unpaid {
  background: #f5e6e4;
  color: #c84b31;
}

.cbd-lk-badge--status {
  background: #e6efe2;
  color: #317627;
}

.cbd-lk-badge--pending {
  background: #fef3c7;
  color: #92400e;
}

.cbd-order-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #202c25;
  margin-left: 4px;
}

.cbd-order-card__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cbd-order-card__thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cbd-order-card__thumb {
  width: 44px;
  height: 48px;
  border-radius: 8px;
  background: #f8faf8;
  border: 1px solid #eef1ee;
  object-fit: contain;
  padding: 3px;
}

.cbd-order-card__items-text {
  font-size: 12px;
  line-height: 1.45;
  color: #5b685f;
}

.cbd-order-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cbd-lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #202c25;
  background: #ffffff;
  color: #202c25;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cbd-lk-btn:hover {
  background: #f5f7f5;
}

.cbd-lk-btn--primary {
  background: #3f892c;
  border-color: #3f892c;
  color: #ffffff;
}

.cbd-lk-btn--primary:hover {
  background: #317021;
  border-color: #317021;
}

.cbd-lk-btn--partner {
  background: #5caab4;
  border-color: #5caab4;
  color: #ffffff;
}

.cbd-lk-btn--partner:hover {
  background: #48949e;
  border-color: #48949e;
}

.cbd-lk-btn--muted {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

.cbd-lk-btn--soft {
  background: #f3f4f6;
  border-color: transparent;
  color: #202c25;
}

.cbd-lk-btn--soft:hover {
  background: #e5e7eb;
}

/* 5. Детали заказа (Figma 7566:18399 / 7623:5486) */
.cbd-lk-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b685f;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.cbd-lk-back:hover {
  color: #3f892c;
}

.cbd-order-detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  margin: 20px 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eef1ee;
}

.cbd-order-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.cbd-order-kv__k {
  color: #6b7280;
}

.cbd-order-kv__v {
  color: #202c25;
  font-weight: 600;
}

.cbd-order-timeline {
  background: #eef5ec;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.cbd-order-timeline__row {
  display: flex;
  gap: 14px;
}

.cbd-order-timeline__date {
  font-weight: 700;
  color: #202c25;
  white-space: nowrap;
}

.cbd-order-timeline__row.is-current .cbd-order-timeline__date,
.cbd-order-timeline__row.is-current .cbd-order-timeline__label {
  color: #3f892c;
  font-weight: 600;
}

.cbd-order-item-row {
  padding: 18px 0;
  border-top: 1px solid #eef1ee;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cbd-order-item-row__main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.cbd-order-item-row__docs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #eef5ec;
  border-radius: 8px;
  font-size: 12px;
  color: #202c25;
}

.cbd-order-item-row__docs a {
  color: #3f892c;
  font-weight: 600;
  text-decoration: none;
}

.cbd-order-totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eef1ee;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.cbd-order-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cbd-order-totals__row--green span:last-child {
  color: #3f892c;
  font-weight: 600;
}

.cbd-order-totals__row--sum {
  font-size: 16px;
  font-weight: 700;
  padding-top: 8px;
  border-top: 1px solid #eef1ee;
}

.cbd-order-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

/* 6. Мои отзывы (Figma 7566:19392) */
.cbd-my-review-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #eef1ee;
}

.cbd-my-review-row[hidden] {
  display: none !important;
}

.cbd-my-review-row__prod {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cbd-my-review-row__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbd-my-review-row__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 7. Мои баллы и кешбек (Figma 7567:20173) */
.cbd-cashback-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.cbd-cashback-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid #eef1ee;
  border-bottom: 1px solid #eef1ee;
}

.cbd-cashback-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #5b685f;
}

.cbd-cashback-rule__pct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e6efe2;
  color: #3f892c;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.cbd-tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cbd-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fafbf9;
  border: 1px solid #eef1ee;
}

.cbd-tx-row[hidden] {
  display: none !important;
}

.cbd-tx-row__title {
  font-size: 14px;
  font-weight: 600;
  color: #202c25;
}

.cbd-tx-row__meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.cbd-tx-row__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cbd-tx-row__delta--plus {
  background: #e6efe2;
  color: #317627;
}

.cbd-tx-row__delta--minus {
  background: #f5e6e4;
  color: #c84b31;
}

.cbd-lk-info-banner {
  padding: 18px 22px;
  border-radius: 12px;
  background: #3f892c;
  color: #ffffff;
}

.cbd-lk-info-banner__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.cbd-lk-info-banner__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

/* 8. Мой профиль (Figma 7567:21916) */
.cbd-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.cbd-profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbd-profile-field label {
  font-size: 12px;
  font-weight: 600;
  color: #202c25;
}

.cbd-profile-field input,
.cbd-profile-field select,
.cbd-profile-field textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dce4d9;
  border-radius: 10px;
  background: #ffffff;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 14px;
  color: #202c25;
}

.cbd-profile-field textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
}

.cbd-profile-field input:focus,
.cbd-profile-field select:focus,
.cbd-profile-field textarea:focus {
  outline: none;
  border-color: #3f892c;
}

.cbd-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.cbd-profile-delete {
  border: 0;
  background: transparent;
  color: #3f892c;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* 9. Партнёрский кабинет: Инструменты, Таблицы, Реквизиты, Вывод */
.cbd-partner-tools-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #eef1ee;
}

.cbd-promo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cbd-promo-code {
  display: inline-flex;
  align-items: center;
  height: 38px;
  min-width: 148px;
  padding: 0 14px;
  border: 1px solid #dce4d9;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #202c25;
}

.cbd-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2b8b78;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.cbd-copy-btn img {
  width: 38px;
  height: 38px;
  display: block;
}

.cbd-copy-btn:hover {
  opacity: 0.85;
}

.cbd-lk-btn img[src*="icon-arrow-right"] {
  transform: rotate(-90deg);
}

.cbd-promo-stat {
  font-size: 12px;
  color: #5b685f;
}

.cbd-promo-stat strong {
  font-size: 16px;
  color: #2ca9b7;
  margin-right: 4px;
}

.cbd-ref-link-box {
  padding: 20px;
  border: 1px solid #e6ece4;
  border-radius: 14px;
  background: #fafcfb;
  margin: 20px 0;
}

.cbd-lk-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.cbd-lk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cbd-lk-table th {
  text-align: left;
  padding: 12px 14px;
  background: #dff2f4;
  color: #202c25;
  font-weight: 600;
  white-space: nowrap;
}

.cbd-lk-table th:first-child {
  border-radius: 8px 0 0 8px;
}

.cbd-lk-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.cbd-lk-table td {
  padding: 14px;
  border-bottom: 1px solid #eef1ee;
  vertical-align: top;
  color: #202c25;
}

/* Карточки реквизитов (Figma 7618:16654) */
.cbd-req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cbd-req-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 148px;
  border: 1.5px dashed #b9dcdf;
  border-radius: 14px;
  background: #f7fcfc;
  color: #2ca9b7;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cbd-req-card {
  border: 1px solid #e6ece4;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.cbd-req-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(90deg, #3daebc 0%, #55c0cc 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.cbd-req-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.cbd-req-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Вывод средств (Figma 7618:17192) */
.cbd-withdraw-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.cbd-withdraw-chip {
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #202c25;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cbd-withdraw-chip.is-active {
  background: #61aeb8;
  border-color: #61aeb8;
  color: #ffffff;
}

/* Пагинация таблиц партнёрского кабинета */
.cbd-lk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.cbd-lk-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5b685f;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.cbd-lk-pagination__page.is-active {
  font-weight: 700;
  color: #202c25;
}

.cbd-lk-pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #3daebc;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

/* Партнёрские правила и инструкции (Figma 7618:17700, 7618:19420) */
.cbd-partner-hero-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.cbd-partner-card {
  border: 1px solid #e6ece4;
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
}

.cbd-partner-card--teal {
  background: linear-gradient(135deg, #2ca9b7 0%, #52b7c3 100%);
  border-color: transparent;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cbd-partner-card__big {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cbd-partner-card__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2ca9b7;
}

.cbd-partner-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.cbd-partner-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cbd-partner-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #48b2bf;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.cbd-partner-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f4c6c0;
  background: #fff7f6;
  font-size: 12px;
  line-height: 1.5;
  color: #7c2d12;
}

.cbd-instr-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.cbd-instr-tab {
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e5e7eb;
  color: #202c25;
  font-family: var(--cbd-font-sans, 'Montserrat', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cbd-instr-tab.is-active {
  background: #5caab4;
  color: #ffffff;
}

.cbd-instr-pane[hidden] {
  display: none !important;
}

.cbd-instr-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.cbd-instr-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e6ece4;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
}

.cbd-instr-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #52b89a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.cbd-instr-ready {
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4cb4a7 0%, #66c289 100%);
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
}

.cbd-instr-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  text-align: center;
  padding: 24px;
}

.cbd-instr-video__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #61aeb8;
  color: #ffffff;
  font-size: 22px;
}

@media (max-width: 900px) {
  .cbd-partner-hero-cards,
  .cbd-partner-2col,
  .cbd-partner-3col,
  .cbd-instr-tabs {
    grid-template-columns: 1fr;
  }
}

/* Модалка «Оставить отзыв» */
.cbd-lk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cbd-lk-modal-backdrop[hidden] {
  display: none !important;
}

.cbd-lk-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.cbd-lk-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cbd-lk-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.cbd-lk-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.cbd-lk-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1300;
  padding: 12px 18px;
  border-radius: 10px;
  background: #193d2c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.cbd-lk-toast[hidden] {
  display: none !important;
}

/* ==========================================================================
   Адаптив: 1024px / 768px / 390px
   ========================================================================== */

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

  .cbd-cashback-top,
  .cbd-order-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cbd-lk-topbar,
  .cbd-lk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .cbd-lk-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .cbd-lk-nav::-webkit-scrollbar {
    display: none;
  }

  .cbd-lk-nav__sep {
    display: none;
  }

  .cbd-lk-nav__btn {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cbd-profile-grid,
  .cbd-cashback-rules,
  .cbd-partner-tools-row,
  .cbd-req-grid,
  .cbd-my-review-row {
    grid-template-columns: 1fr;
  }

  .cbd-order-item-row__main {
    grid-template-columns: 48px minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .cbd-lk-page {
    padding-top: 20px;
  }

  .cbd-lk-panel {
    padding: 18px 16px;
  }

  .cbd-partner-banner__grid,
  .cbd-withdraw-chips,
  .cbd-order-detail-actions {
    grid-template-columns: 1fr;
  }

  .cbd-burn-list {
    grid-template-columns: 1fr;
  }

  .cbd-lk-mode-switch {
    grid-template-columns: 1fr;
  }
}
