/* Нота Парфюм — личный кабинет и оформление заказа: спокойные белые карточки на бумажном фоне, без рамок и эффектов.
   Подключается после site.css и переопределяет только то, что нужно. */
:root { --cr: 20px; }

/* ——— общие карточки ——— */
.cb-card, .ck-card, .ck-step { background: #fff; border-radius: var(--cr); padding: clamp(18px, 2.4vw, 28px); }
.cb-h, .ck-h { font: 600 15px/1.25 var(--ff-t); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 16px; }
.cb-sub { color: var(--ink-2); }
.cb-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cb-hd .cb-h { margin-bottom: 12px; }
.cb-more { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--ff-t); color: var(--ink-2); } .cb-more:hover { color: var(--ink); }
.cb-more .i { width: 14px; height: 14px; }
.cb-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; } .cb-empty p { color: var(--ink-2); max-width: 46ch; }

/* ——— кабинет: меню слева, содержимое справа ——— */
.cb { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.cb-side { position: sticky; top: calc(var(--hh) + 18px); display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; border-radius: var(--cr); }
.cb-me { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--paper); border-radius: 14px; min-width: 0; }
.cb-me .av { width: 44px; height: 44px; font-size: 1.15rem; flex: none; }
.cb-me-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cb-me-t b { font: 600 14.5px/1.2 var(--ff-t); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-me-t span { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-nav { display: flex; flex-direction: column; gap: 2px; }
.cb-nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 12px; font: 600 14px/1 var(--ff-t); color: var(--ink-2); transition: background .2s, color .2s; }
.cb-nav a:hover { background: var(--paper); color: var(--ink); }
.cb-nav a.on { background: var(--ink); color: var(--paper); }
.cb-nav a em { margin-left: auto; font: 600 12px/1 var(--ff-t); font-style: normal; padding: 4px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.cb-nav a.on em { background: rgba(244, 240, 233, .18); color: var(--paper); }
.cb-out { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 12px; font: 600 14px/1 var(--ff-t); color: var(--ink-3); } .cb-out:hover { background: var(--paper); color: var(--ink); }
.cb-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* плитки обзора */
.cb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cb-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border-radius: var(--cr); transition: background .2s; }
.cb-tile:hover { background: var(--paper-2); }
.cb-tile i { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.cb-tile i .i { width: 18px; height: 18px; }
.cb-tile b { font: 300 2rem/1 var(--ff-d); white-space: nowrap; }
.cb-tile span { font-size: 13px; color: var(--ink-2); }

/* быстрые ссылки */
.cb-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cb-links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: var(--cr); transition: background .2s; }
.cb-links a:hover { background: var(--paper-2); }
.cb-links a > i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--paper); }
.cb-links a > i .i { width: 18px; height: 18px; }
.cb-links a > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cb-links b { font: 600 14.5px/1.2 var(--ff-t); } .cb-links small { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.cb-links a > .i { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* заказы */
.cb .acc-orders { gap: 16px; }
.cb .ao { border: 0; border-radius: var(--cr); background: #fff; padding: clamp(18px, 2.4vw, 26px); }
.cb .cb-card .ao { padding: 0; background: none; border-radius: 0; }
.cb .ao header { align-items: center; gap: 6px 14px; margin-bottom: 18px; }
.cb .ao header b { font: 600 16px/1.2 var(--ff-t); } .cb .ao header > span { color: var(--ink-3); font-size: 13px; }
.cb .ao-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cb .ao header .st, .cb .ao header .pc, .cb .ao header .pc + .st { margin-left: 0; }
.cb .ao .st, .cb .ao .pc { padding: 7px 12px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 10.5px; }
.cb .ao .st-done, .cb .ao .pc-ok { background: var(--ok); color: #fff; } .cb .ao .st-work { background: var(--brass); color: #fff; } .cb .ao .st-cancel, .cb .ao .pc-bad { color: var(--bad); }
.cb .ao > ul { gap: 0; margin-top: 4px; }
.cb .ao > ul > li { align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); } .cb .ao > ul > li:last-child { border-bottom: 1px solid var(--line); }
.cb .ao-d { margin: 12px 0 0; }
.cb .ao footer { margin-top: 16px; padding-top: 0; border-top: 0; }
.cb .ao footer > span { flex: 1 1 100%; font-size: 13px; color: var(--ink-3); }
.cb .ao footer > b { font: 600 17px/1 var(--ff-t); }
.cb .ao-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.cb .tl { margin: 0 0 18px; }
.cb .tl li i { background: var(--paper); border-color: var(--paper); }
.cb .tl li.on i { background: var(--ink); border-color: var(--ink); } .cb .tl li.cur i { background: var(--brass); border-color: var(--brass); }

/* профиль */
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cb-col { display: flex; flex-direction: column; gap: 16px; }
.cb-f { display: flex; flex-direction: column; gap: 12px; max-width: none; margin: 0; }
.cb-f > .cb-h, .cb-f .cb-h { margin-bottom: 4px; }
.cb-f form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cb-f label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.cb-f input:not([type=checkbox]), .cb-f textarea { width: 100%; padding: 13px 14px; border: 1px solid transparent; background: var(--paper); border-radius: 12px; outline: none; resize: vertical; transition: border-color .2s, background .2s; }
.cb-f input:not([type=checkbox]):focus, .cb-f textarea:focus { border-color: var(--ink); background: #fff; }
.cb-f label.chk { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; } .cb-f .chk input { width: 18px; height: 18px; padding: 0; margin-top: 1px; flex: none; accent-color: var(--ink); }
.cb-f .btn { align-self: flex-start; }
.cb .big-n { margin-bottom: 10px; }
.cb .acc-links li { padding: 12px 0; }
.cb .acc-act { margin-top: 4px; }

/* ——— оформление заказа ——— */
.cart-g { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 24px; }
.cart-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ck-card .cl:first-child { border-top: 0; padding-top: 0; } .ck-card .cl:last-child { border-bottom: 0; padding-bottom: 0; }
.ck-card .cl-m { border-radius: 12px; }
.ord { margin: 0; padding: 0; border-top: 0; gap: 16px; }
.ord .ck-step { display: flex; flex-direction: column; gap: 12px; }
.ord .ck-step h4 { margin: 0 0 4px; font: 600 15px/1.25 var(--ff-t); letter-spacing: 0; text-transform: none; color: var(--ink); }
.ord .ck-step h4 i { width: 24px; height: 24px; font: 700 12px/24px var(--ff-t); }
.ck-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ord .ck-step input:not([type=radio]):not([type=checkbox]), .ord .ck-step textarea { border: 1px solid transparent; background: var(--paper); border-radius: 12px; padding: 14px; }
.ord .ck-step input:not([type=radio]):not([type=checkbox]):focus, .ord .ck-step textarea:focus { border-color: var(--ink); background: #fff; }
.ord .ck-ship, .ord .ck-city { background: var(--paper); border-radius: 12px; }
.ord .ck-list { border: 1px solid var(--line); border-radius: 12px; }
.ord .pmeth { border-radius: 14px; }
.cart-s { position: sticky; top: calc(var(--hh) + 18px); }
.ck-side { display: flex; flex-direction: column; gap: 0; }
.ck-side .free { margin-bottom: 8px; padding: 0; background: none; }
.ck-side .sum { border-top: 0; }
.ck-side .sum > div:first-child { padding-top: 4px; }
.ck-side .ck-tot { margin: 0; padding: 0; border: 0; }
.ck-side .ck-promo { margin: 4px 0 18px; } .ck-side .ck-promo .promo, .ck-side .ck-promo .promo-ok { margin-top: 0; }
.ck-side .ck-agree { margin: 0 0 16px; }
.ck-side .ck-agree input { width: 18px; height: 18px; padding: 0; margin-top: 1px; flex: none; accent-color: var(--ink); }
.ck-side .ck-agree a { text-decoration: underline; color: var(--ink); }
.ck-side .btn { width: 100%; }
.ck-side .call { margin-top: 14px; }

@media (max-width: 960px) {
  .cb { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cb > *, .cb-nav { min-width: 0; max-width: 100%; }
  .cb-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; }
  .cb-me { flex: 1 1 100%; }
  .cb-nav { flex-direction: row; flex: 1 1 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; } .cb-nav::-webkit-scrollbar { display: none; }
  .cb-nav a { flex: none; height: 42px; padding: 0 14px; background: var(--paper); } .cb-nav a.on { background: var(--ink); }
  .cb-out { order: 3; height: 40px; }
  .cb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-links { grid-template-columns: 1fr; }
  .cb-grid { grid-template-columns: 1fr; }
  .cart-g { grid-template-columns: minmax(0, 1fr); }
  .cart-s { position: static; }
}
@media (max-width: 640px) {
  .ck-row { grid-template-columns: 1fr; }
  .cb .ao footer { flex-direction: column; align-items: stretch; } .cb .ao-btns { margin-left: 0; } .cb .ao-btns .btn-o { flex: 1; justify-content: center; }
  .cb .ao-chips { margin-left: 0; flex: 1 1 100%; }
}

/* ссылки «написать менеджеру» под способами оплаты */
.ck-contact { margin-top: 2px; } .ck-contact a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* две кнопки оплаты СБП через менеджера: Telegram и ВКонтакте */
.ck-side [hidden] { display: none !important; }
.ck-side .btn-vk { margin-top: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.ck-side .btn-vk:hover { background: var(--ink); color: var(--paper); }
.ck-side .btn .i { flex: none; }
