/* =====================================================================
   parfumite.eu — „Отказ от договор“ (публична страница и секция в профила)
   Стъпва върху цветовете и шрифтовете от css/theme.css (--plum, --violet…).
   Идея: изявлението е писмо — изречения с празни места за попълване,
   под тях продуктите за избор и накрая бутонът „Потвърждавам отказа“.
   ===================================================================== */

.otk{ padding-top:6px; padding-bottom:72px; }

.otk-crumbs{ font-size:13px; color:var(--muted); margin:18px 0 22px; }
.otk-crumbs a{ color:var(--muted); }
.otk-crumbs span{ margin:0 7px; opacity:.6; }

.otk-hero{ margin:0 0 34px; }
.otk-hero h1{ font-family:var(--display); font-weight:800; font-size:clamp(32px,4.6vw,52px); line-height:1.04;
  letter-spacing:-.025em; color:var(--plum); margin:0 0 14px; }
.otk-hero p{ font-size:17px; line-height:1.55; color:var(--ink-2); max-width:54ch; margin:0; }

.otk-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:56px; align-items:start; }
.otk-main{ max-width:760px; min-width:0; }

/* ---------- листът ---------- */
.otk-sheet{ display:block; background:#fff; border:1px solid var(--line-2); border-radius:22px;
  box-shadow:var(--shadow-sm); padding:32px 34px 30px; margin:0 0 18px; }
.otk-sheet__head{ display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin:0 0 22px; }
.otk-sheet__h{ font-family:var(--display); font-weight:800; font-size:23px; line-height:1.2; letter-spacing:-.01em;
  color:var(--ink); margin:0 0 4px; }
.otk-sheet__sub{ color:var(--muted); font-size:14.5px; margin:0 0 18px; }
.otk-sheet__head .otk-sheet__sub{ margin-bottom:0; }
.otk-sheet > .otk-sheet__h{ margin-bottom:16px; }
.otk-sheet > .otk-sheet__h + .otk-sheet__sub{ margin-top:-10px; }

/* ---------- изреченията с полета ---------- */
.otk-letter{ font-size:20px; line-height:1.85; color:var(--ink); margin:0 0 18px; max-width:34em; }
.otk-inline{ font:inherit; font-weight:700; color:var(--plum); background:transparent; border:0;
  border-bottom:2px dotted var(--lilac); border-radius:6px 6px 0 0; padding:0 6px 1px; margin:0 2px;
  width:11em; max-width:100%; height:1.55em; line-height:1.3; field-sizing:content; min-width:8.5em;
  transition:background .15s, border-color .15s; }
.otk-inline--wide{ width:15em; min-width:11em; }
.otk-inline::placeholder{ color:var(--muted); font-weight:500; opacity:1; }
.otk-inline:hover{ background:var(--bg-soft); }
.otk-inline:focus{ outline:none; background:var(--lilac-soft); border-bottom:2px solid var(--violet); }
.otk-inline.is-bad{ border-bottom:2px solid #e11d48; background:#fff1f2; }

/* ---------- продуктите ---------- */
.otk-items{ display:grid; gap:10px; margin:4px 0 24px; }
.otk-item{ position:relative; background:#fff; border:1.5px solid var(--line-2); border-radius:16px;
  transition:border-color .15s, background .15s; }
.otk-item__pick{ display:grid; grid-template-columns:64px minmax(0,1fr) 28px; gap:16px; align-items:center;
  padding:12px 16px 12px 12px; cursor:pointer; }
.otk-item__pick input{ position:absolute; opacity:0; width:1px; height:1px; }
.otk-item__img{ width:64px; height:64px; border-radius:12px; background:var(--bg-soft); display:block; overflow:hidden; }
.otk-item__img img{ width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; display:block; }
.otk-item__body{ min-width:0; }
.otk-item__name{ display:block; font-weight:700; font-size:15px; line-height:1.35; color:var(--ink); }
.otk-item__meta{ display:block; font-size:13.5px; color:var(--muted); margin-top:2px; }
.otk-item__mark{ width:28px; height:28px; border-radius:50%; border:2px solid var(--line-2); background:#fff;
  display:grid; place-items:center; transition:.15s; }
.otk-item__mark::after{ content:""; width:11px; height:6px; border-left:2.5px solid #fff; border-bottom:2.5px solid #fff;
  transform:rotate(-45deg) translate(1px,-1px); opacity:0; }
.otk-item__qty{ display:none; padding:0 16px 14px 92px; font-size:14.5px; color:var(--ink-2); }
.otk-item__qty input{ width:64px; height:36px; margin:0 6px; text-align:center; font:inherit; font-weight:700; color:var(--plum);
  border:1.5px solid var(--line-2); border-radius:10px; background:#fff; }
.otk-item__qty input:focus{ outline:none; border-color:var(--violet); box-shadow:var(--ring); }

.otk-item:hover{ border-color:var(--lilac); }
.otk-item.is-on, .otk-item:has(.otk-item__pick input:checked){ border-color:var(--violet); background:var(--bg-soft); }
.otk-item.is-on .otk-item__mark, .otk-item:has(.otk-item__pick input:checked) .otk-item__mark{ background:var(--grad); border-color:transparent; }
.otk-item.is-on .otk-item__mark::after, .otk-item:has(.otk-item__pick input:checked) .otk-item__mark::after{ opacity:1; }
.otk-item.is-on .otk-item__qty, .otk-item:has(.otk-item__pick input:checked) .otk-item__qty{ display:block; }
.otk-item__pick input:focus-visible ~ .otk-item__mark{ box-shadow:var(--ring); border-color:var(--violet); }

.otk-item.is-used{ display:grid; grid-template-columns:64px minmax(0,1fr); gap:16px; align-items:center;
  padding:12px 16px 12px 12px; background:var(--bg-soft); border-style:dashed; }
.otk-item.is-used .otk-item__img{ opacity:.55; }
.otk-item.is-used .otk-item__name{ color:var(--ink-2); font-weight:600; }
.otk-item.is-used:hover{ border-color:var(--line-2); }

/* ---------- лентата на срока: едно деление = един ден ---------- */
.otk-term{ text-align:right; flex:none; }
.otk-term__txt b{ display:block; font-family:var(--display); font-weight:700; font-size:15px; color:var(--plum); line-height:1.3; }
.otk-term__txt span{ display:block; font-size:12.5px; color:var(--muted); }
.otk-term__bar{ display:flex; gap:3px; justify-content:flex-end; align-items:flex-end; height:22px; margin-top:8px; }
.otk-term__bar i{ width:5px; height:15px; border-radius:3px; background:var(--violet); }
.otk-term__bar i.is-gone{ background:var(--line-2); }
.otk-term__bar i.is-today{ height:22px; background:var(--pink); }
.otk-term.is-last .otk-term__txt b{ color:var(--pink-600); }
.otk-term.is-over .otk-term__txt b{ color:#b91c1c; }
.otk-term.is-over .otk-term__bar i{ background:var(--line-2); }

/* ---------- бележка ---------- */
.otk-note{ display:block; margin:0 0 22px; }
.otk-note > span{ display:block; font-size:13.5px; font-weight:700; color:var(--ink-2); margin-bottom:7px; }
.otk-note textarea{ display:block; width:100%; font:inherit; font-size:15px; line-height:1.5; color:var(--ink);
  border:1.5px solid var(--line-2); border-radius:14px; padding:12px 14px; resize:vertical; min-height:84px; background:#fff; }
.otk-note textarea:focus{ outline:none; border-color:var(--violet); box-shadow:var(--ring); }
.otk-note textarea.is-bad{ border-color:#e11d48; background:#fff1f2; }
.otk-note--main textarea{ min-height:110px; font-size:16px; }

/* ---------- потвърждаване ---------- */
.otk-confirm{ display:flex; justify-content:space-between; align-items:center; gap:22px;
  border-top:1px dashed var(--line-2); padding-top:22px; }
.otk-confirm__sum{ margin:0; font-size:15px; line-height:1.45; color:var(--ink-2); }
.otk-confirm__sum b{ color:var(--plum); }
.otk-confirm__sum.is-bad{ color:#b91c1c; font-weight:700; }
.otk-confirm__btn{ flex:none; min-width:236px; }
.otk-confirm__btn:focus-visible, .otk-done__acts .pf-btn:focus-visible{ outline:3px solid rgba(124,58,237,.45); outline-offset:3px; }

/* ---------- съобщения ---------- */
.otk-msg{ border:1px solid transparent; border-radius:14px; padding:12px 16px; font-size:14.5px; line-height:1.5;
  background:var(--lilac-soft); color:var(--ink); margin:0 0 16px; }
.otk-msg--err{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }
.otk-msg--warn{ background:#fff7ed; border-color:#fed7aa; color:#7c2d12; }
.otk-msg--ok{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.otk-msg a{ font-weight:700; text-decoration:underline; }

/* ---------- списък с поръчки ---------- */
.otk-orders{ display:grid; gap:10px; }
.otk-order{ display:flex; justify-content:space-between; align-items:center; gap:18px; padding:14px 18px;
  border:1.5px solid var(--line-2); border-radius:16px; color:var(--ink) !important; text-decoration:none; transition:.15s; }
.otk-order:hover{ border-color:var(--violet); background:var(--bg-soft); }
.otk-order b{ display:block; font-size:15.5px; }
.otk-order small{ display:block; font-size:13px; color:var(--muted); }
.otk-sheet--mine{ margin-bottom:18px; }

.otk-back{ font-size:14px; color:var(--muted); margin:14px 6px 0; }
.otk-back a{ font-weight:700; }

/* ---------- „Какво следва“ ---------- */
.otk-side{ position:sticky; top:22px; }
.otk-side__h{ font-family:var(--display); font-weight:800; font-size:18px; color:var(--ink); margin:6px 0 16px; }
.otk-steps{ list-style:none; margin:0 0 20px; padding:0; counter-reset:otk; }
.otk-steps li{ counter-increment:otk; position:relative; padding:0 0 18px 46px; }
.otk-steps li::before{ content:counter(otk); position:absolute; left:0; top:-5px; font-family:var(--display); font-weight:800;
  font-size:30px; line-height:1; color:var(--lilac); }
.otk-steps b{ display:block; font-size:15px; color:var(--ink); margin-bottom:2px; }
.otk-steps span{ display:block; font-size:14px; line-height:1.5; color:var(--ink-2); }
.otk-side__note{ font-size:13.5px; line-height:1.55; color:var(--ink-2); border-top:1px solid var(--line); padding-top:14px; margin:0 0 14px; }
.otk-side__note a{ font-weight:700; }

/* ---------- потвърждение на екрана ---------- */
.otk-done__mark{ width:54px; height:54px; border-radius:50%; background:var(--grad); color:#fff; display:grid; place-items:center; margin:0 0 16px; }
.otk-done__mark svg{ width:28px; height:28px; }
.otk-facts{ margin:6px 0 18px; display:grid; gap:6px; }
.otk-facts div{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; font-size:15px; }
.otk-facts dt{ color:var(--muted); }
.otk-facts dd{ margin:0; font-weight:700; color:var(--ink); }
.otk-lines{ list-style:none; margin:0 0 18px; padding:0; }
.otk-lines li{ display:flex; justify-content:space-between; gap:18px; padding:11px 0; border-top:1px solid var(--line); font-size:15px; }
.otk-lines b{ white-space:nowrap; }
.otk-lines__sum{ border-top:2px solid var(--plum) !important; font-weight:800; }
.otk-quote{ background:var(--bg-soft); border-radius:14px; padding:14px 16px; font-size:15px; line-height:1.55; margin:0 0 14px; }
.otk-quote b{ display:block; font-size:13px; color:var(--ink-2); margin-bottom:4px; }
.otk-done__acts{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }

/* ---------- в профила ---------- */
.otk-profile .otk-msg{ margin-bottom:0; }
.otk-profile .pf-authcard__sub:last-child{ margin-bottom:0; }
.otk-sent{ cursor:default; }
.otk-sent small{ display:block; max-width:46ch; }
.otk-st--done{ color:#047857; background:#ecfdf5; }
.otk-st--cancelled{ color:#6b7280; background:#f3f4f6; }

.otk-hp{ position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; }
.otk-sr{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- тесни екрани ---------- */
@media (max-width:980px){
  .otk-grid{ grid-template-columns:1fr; gap:34px; }
  .otk-side{ position:static; max-width:760px; }
}
@media (max-width:640px){
  .otk-hero{ margin-bottom:24px; }
  .otk-hero p{ font-size:16px; }
  .otk-sheet{ padding:24px 18px 22px; border-radius:18px; }
  .otk-sheet__head{ flex-direction:column; gap:14px; }
  .otk-term{ text-align:left; }
  .otk-term__bar{ justify-content:flex-start; }
  .otk-letter{ font-size:18px; line-height:1.7; }
  .otk-inline, .otk-inline--wide{ display:block; width:100%; min-width:0; height:46px; margin:8px 0; padding:0 12px;
    border:1.5px solid var(--line-2); border-radius:12px; field-sizing:fixed; }
  .otk-inline:focus{ border:1.5px solid var(--violet); }
  .otk-p{ display:none; }   /* на тесен екран полетата са на отделен ред — препинателният знак след тях виси */
  .otk-inline.is-bad{ border:1.5px solid #e11d48; }
  .otk-item__pick{ grid-template-columns:52px minmax(0,1fr) 26px; gap:12px; padding:10px 12px 10px 10px; }
  .otk-item__img{ width:52px; height:52px; }
  .otk-item__qty{ padding:0 12px 12px 12px; }
  .otk-item.is-used{ grid-template-columns:52px minmax(0,1fr); }
  .otk-confirm{ flex-direction:column; align-items:stretch; gap:14px; }
  .otk-confirm__btn{ width:100%; min-width:0; }
  .otk-order{ flex-direction:column; align-items:flex-start; }
  .otk-facts div{ grid-template-columns:1fr; gap:0; }
}

@media (prefers-reduced-motion:reduce){
  .otk-item, .otk-item__mark, .otk-inline, .otk-order{ transition:none; }
}

/* ---------- печат на потвърждението ---------- */
@media print{
  .pf-topbar, .pf-header, .pf-footer, .pf-nav-scrim, .otk-crumbs, .otk-done__acts, .otk-back, #pfCookie, .pf-cc{ display:none !important; }
  .otk-grid{ display:block; }
  .otk-sheet{ border:0; box-shadow:none; padding:0; }
  .otk-done__mark{ display:none; }
  .otk-side{ position:static; margin-top:24px; }
}
