/* Customer account. Every rule is scoped to .tf-lk* so storefront components keep their own styles. */
.tf-lk{padding-top:16px;padding-bottom:64px}
.tf-lk [hidden],.tf-lk-dialog [hidden],.tf-lk-toast[hidden]{display:none!important}
.tf-lk-eyebrow{margin:0;color:var(--tf-muted);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.tf-lk-label{display:block}
.tf-lk-required{color:var(--tf-red);margin-left:2px}
.tf-lk-hint{margin:0;color:var(--tf-muted);font-size:13px;font-weight:400;line-height:1.5}
/* «?» hints of the profile form, as on tefal.ru. */
.tf-lk-caption{display:flex;align-items:center;gap:8px}
.tf-lk-caption label{display:contents}
.tf-lk-tip{position:relative;display:inline-flex}
.tf-lk-tip__button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid #d1d5db;border-radius:50%;background:#fff;color:var(--tf-ink);font:400 14px/1 var(--tf-font);cursor:pointer}
.tf-lk-tip__text{position:absolute;left:50%;bottom:calc(100% + 8px);z-index:5;width:max-content;max-width:260px;padding:8px 12px;border-radius:6px;background:var(--tf-white);color:var(--tf-ink);box-shadow:0 2px 8px rgb(0 0 0 / 15%);font-size:13px;line-height:1.4;transform:translateX(-50%);visibility:hidden;opacity:0;transition:opacity .15s}
.tf-lk-tip.is-open .tf-lk-tip__text,.tf-lk-tip:focus-within .tf-lk-tip__text{visibility:visible;opacity:1}
@media (hover:hover){
.tf-lk-tip:hover .tf-lk-tip__text{visibility:visible;opacity:1}}
.tf-lk-message{margin:0;padding:10px 12px;border-radius:var(--tf-radius);font-size:14px;line-height:1.5}
.tf-lk-message--error{color:#b30717;background:#fff1f2}
.tf-lk-message--success{color:var(--tf-green);background:#eef7f1}

/* Guest landing */
.tf-lk-guest{max-width:640px;margin:16px auto 0;padding:24px 0 32px;text-align:center}
.tf-lk-guest-icon{display:grid;place-items:center;width:84px;height:84px;margin:0 auto 20px;border-radius:50%;background:var(--tf-surface);color:var(--tf-red)}
.tf-lk-guest-icon .tf-icon{width:40px;height:40px}
.tf-lk-guest h1{margin:12px 0 16px;font-size:36px;line-height:1.2;font-weight:600}
.tf-lk-guest p:not(.tf-lk-eyebrow){margin:0 auto 28px;max-width:520px;color:var(--tf-muted);line-height:1.7}
.tf-lk-guest .tf-icon{width:20px;height:20px}
.tf-lk-back{display:block;margin-top:18px;color:var(--tf-muted)!important;font-size:14px;text-decoration:underline}

/* Signed-in layout */
.tf-lk-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:48px;align-items:start}
.tf-lk-identity{padding:0 12px 24px;overflow-wrap:anywhere}
.tf-lk-identity strong{display:block;margin-bottom:4px;font-size:20px;font-weight:500;line-height:1.3}
.tf-lk-identity span{color:var(--tf-muted);font-size:14px}
.tf-lk-nav{display:flex;flex-direction:column;gap:4px}
.tf-lk-nav-item{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;border-bottom:1px solid var(--tf-border);color:var(--tf-ink)!important;font-size:14px;text-decoration:none}
.tf-lk-nav-item:is(:focus-visible),.tf-lk-nav-item.is-active{background:var(--tf-red);border-color:transparent;border-radius:var(--tf-radius);color:#fff!important}
@media (hover:hover){
.tf-lk-nav-item:is(:hover,:focus-visible){background:var(--tf-red);border-color:transparent;border-radius:var(--tf-radius);color:#fff!important}}
.tf-lk-nav-item .tf-icon,.tf-lk-logout .tf-icon{width:22px;height:22px;flex:none}
.tf-lk-logout{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;border:0;background:none;color:var(--tf-muted);font:inherit;font-size:14px;cursor:pointer;text-align:left}
@media (hover:hover){
.tf-lk-logout:hover{color:var(--tf-red)}}
.tf-lk-content{min-width:0}
.tf-lk-content>h1{margin:0 0 28px;font-size:32px;line-height:1.2;font-weight:600}

/* Home */
.tf-lk-banner{display:block;width:100%;height:auto;margin:0 0 20px;border-radius:var(--tf-radius)}
.tf-lk-welcome{max-width:720px;line-height:1.7}
.tf-lk-welcome p{margin:0 0 12px}
.tf-lk-welcome-lead{font-size:20px}
.tf-lk-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:32px 0 40px}
.tf-lk-shortcut{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:140px;padding:20px 12px;border:1px solid var(--tf-red);border-radius:0 16px 0 16px;color:var(--tf-ink)!important;font-size:14px;text-align:center;text-decoration:none;transition:background-color .15s,color .15s}
.tf-lk-shortcut .tf-icon{width:34px;height:34px;color:var(--tf-red)}
.tf-lk-shortcut:is(:focus-visible){background:var(--tf-red);color:#fff!important}
@media (hover:hover){
.tf-lk-shortcut:is(:hover,:focus-visible){background:var(--tf-red);color:#fff!important}}
.tf-lk-shortcut:is(:focus-visible) .tf-icon{color:inherit}
@media (hover:hover){
.tf-lk-shortcut:is(:hover,:focus-visible) .tf-icon{color:inherit}}
.tf-lk-loyalty{display:flex;align-items:center;gap:32px;padding:32px;border-radius:var(--tf-radius);background:var(--tf-surface)}
.tf-lk-loyalty-symbol{display:grid;place-items:center;flex:none;width:96px;height:96px;border-radius:50%;background:#fff;color:var(--tf-red)}
.tf-lk-loyalty-symbol .tf-icon{width:46px;height:46px}
.tf-lk-loyalty h2{margin:8px 0 10px;font-size:22px;line-height:1.3;font-weight:600}
.tf-lk-loyalty p:not(.tf-lk-eyebrow){margin:0 0 12px;max-width:520px;color:var(--tf-muted)}

/* Profile */
.tf-lk-profile{display:grid;gap:18px;max-width:460px}
.tf-lk-gender{display:flex;gap:28px;margin:0;padding:0;border:0}
.tf-lk-gender legend{margin-bottom:10px;padding:0;font-size:14px;font-weight:500}
.tf-lk-gender label{display:flex;align-items:center;gap:8px;font-size:15px;cursor:pointer}
.tf-lk-gender input,.tf-lk-check input{width:18px;height:18px;margin:0;accent-color:var(--tf-red)}
.tf-lk-profile .tf-input:disabled{background:var(--tf-surface);color:var(--tf-muted)}
.tf-lk-form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px}

/* Orders, favorites, placeholders */
.tf-lk-empty{border:1px solid var(--tf-border);border-radius:var(--tf-radius)}
.tf-lk-empty h2{margin:0 0 12px;font-size:20px;font-weight:500}
.tf-lk-orders{display:grid;gap:16px}
.tf-lk-order{border:1px solid var(--tf-border);border-radius:var(--tf-radius)}
.tf-lk-order summary{display:flex;align-items:center;gap:20px;padding:20px 24px;cursor:pointer;list-style:none}
.tf-lk-order summary::-webkit-details-marker{display:none}
.tf-lk-order-title{flex:1;display:flex;flex-direction:column}
.tf-lk-order-title span{color:var(--tf-muted);font-size:13px}
.tf-lk-status{padding:4px 10px;border-radius:var(--tf-radius);background:var(--tf-surface);font-size:13px}
.tf-lk-order-sum{white-space:nowrap}
.tf-lk-order-detail{padding:0 24px 16px}
.tf-lk-order-detail>p{margin:0 0 8px;color:var(--tf-muted);font-size:14px}
.tf-lk-order-line{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid var(--tf-border);font-size:14px}
.tf-lk-order-line small{display:block;margin-top:4px;color:var(--tf-muted)}
.tf-lk-order-line strong{white-space:nowrap;font-weight:500}
.tf-lk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.tf-lk-placeholder{padding:40px 24px;border-radius:var(--tf-radius);background:var(--tf-surface);text-align:center}
.tf-lk-placeholder>.tf-icon{width:56px;height:56px;color:var(--tf-red)}
.tf-lk-placeholder h2{margin:10px 0 14px;font-size:24px;font-weight:600}
.tf-lk-placeholder p:not(.tf-lk-eyebrow){max-width:520px;margin:0 auto 24px;color:var(--tf-muted)}

/* Sign-in dialog: builds on the storefront .tf-dialog. Sized to fit without scrolling from ~540px of viewport height;
   on shorter screens (phones in landscape) the dialog scrolls instead of being cut off. */
.tf-dialog.tf-lk-dialog{width:min(440px,calc(100% - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto}
.tf-dialog.tf-lk-dialog.is-register{width:min(800px,calc(100% - 24px))}
.tf-lk-dialog .tf-lk-dialog-close{position:absolute;top:6px;right:6px;z-index:1}
.tf-lk-dialog-close .tf-icon{width:22px;height:22px}
.tf-lk-dialog-layout{display:flex}
.tf-lk-dialog-main{flex:1;min-width:0;padding:28px 28px 20px}
.tf-lk-tabs{display:flex;justify-content:center;gap:8px;margin:0 36px 16px}
.tf-lk-tabs button{padding:8px 16px;border:1px solid var(--tf-border);border-radius:var(--tf-radius);background:#fff;color:var(--tf-ink);font:600 14px/1.2 var(--tf-font);cursor:pointer}
.tf-lk-tabs button[aria-selected=true]{background:var(--tf-red);border-color:var(--tf-red);color:#fff}
.tf-lk-dialog .tf-lk-dialog-title{margin:0 0 16px;font-size:18px;line-height:1.3;font-weight:600;text-align:center}
.tf-lk-form{display:grid;gap:12px}
.tf-lk-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* Phone and e-mail share a row when both fit; with e-mail hidden (sign-in) the phone takes the full width. */
.tf-lk-row--contacts{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.tf-lk-dialog .tf-field{gap:4px;font-size:13px}
.tf-lk-dialog .tf-input{min-height:42px;padding:8px 12px;font-size:15px}
.tf-lk-checks{display:grid;gap:8px}
.tf-lk-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.4;cursor:pointer}
.tf-lk-check input{flex:none;margin-top:1px}
.tf-lk-check small{display:block;margin-top:2px;color:var(--tf-muted);font-size:12px}
.tf-lk-check a{color:var(--tf-red)}
.tf-lk-dialog .tf-lk-submit{width:100%;min-width:0;min-height:46px;margin:0}
.tf-lk-dialog .tf-lk-dialog-note{font-size:12px;text-align:center}
.tf-lk-code-caption{margin:0;text-align:center;line-height:1.5}
.tf-lk-code-caption strong{white-space:nowrap}
.tf-lk-demo-code{padding:10px;border:1px dashed var(--tf-border);border-radius:var(--tf-radius);background:var(--tf-surface);color:var(--tf-muted);font-size:13px;text-align:center}
.tf-lk-demo-code strong{display:block;margin:2px 0;color:var(--tf-ink);font-size:24px;letter-spacing:.2em}
.tf-lk-demo-code small{display:block;font-size:12px}
.tf-lk-code-actions{display:flex;justify-content:space-between;gap:12px}
.tf-lk-code-actions .tf-text-button{font-size:13px}
.tf-lk-code-actions .tf-text-button:disabled{color:var(--tf-muted)!important;cursor:default;text-decoration:none}
.tf-lk-benefits{flex:0 0 34%;padding:64px 24px 24px;border-left:1px solid var(--tf-border);background:var(--tf-surface)}
.tf-lk-benefits h3{margin:0 0 16px;font-size:17px;line-height:1.35}
.tf-lk-benefits ul{margin:0;padding-left:18px}
.tf-lk-benefits li{margin-bottom:12px;font-size:14px;line-height:1.5}
.tf-lk-benefits li::marker{color:var(--tf-red)}
.tf-lk-benefits strong{color:var(--tf-red);font-weight:500}

/* Header account menu. The wrapper replaces a direct child of .tf-header-actions, so the header's
   child-combinator rules (hidden below 768px, 40px wide up to 959px) are repeated for it here. */
.tf-lk-menu{position:relative;display:flex;flex-shrink:0}
.tf-lk-dropdown{display:none;position:absolute;top:100%;z-index:110;margin-top:6px}
.tf-lk-dropdown::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
@media (hover:hover) and (pointer:fine){.tf-lk-menu:hover>.tf-lk-dropdown{display:block}}
.tf-lk-menu.is-open>.tf-lk-dropdown,.tf-lk-menu:has(:focus-visible)>.tf-lk-dropdown{display:block}
.tf-lk-dropdown--guest{left:50%;transform:translateX(-50%);border-radius:var(--tf-radius);background:#e8e8e8;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.tf-lk-dropdown--guest button{display:block;padding:6px 12px;border:0;background:none;color:#4a4a4a;font:400 13px/1.3 var(--tf-font);white-space:nowrap;cursor:pointer}
@media (hover:hover){
.tf-lk-dropdown--guest button:hover{color:var(--tf-red)}}
.tf-lk-dropdown--customer{right:-8px;width:240px;padding:8px;border-radius:var(--tf-radius);background:#f1f1f1;box-shadow:0 8px 30px rgba(0,0,0,.15)}
.tf-lk-dropdown--customer a,.tf-lk-dropdown--customer button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;border:0;border-bottom:1px solid #fff;background:none;color:#292929;font:400 12px/1.3 var(--tf-font);text-transform:uppercase;text-align:left;text-decoration:none;cursor:pointer}
.tf-site .tf-lk-menu .tf-lk-dropdown--customer a:is(:focus-visible){background:var(--tf-red);border-color:transparent;border-radius:var(--tf-radius);color:#fff!important}
@media (hover:hover){
.tf-site .tf-lk-menu .tf-lk-dropdown--customer a:is(:hover,:focus-visible){background:var(--tf-red);border-color:transparent;border-radius:var(--tf-radius);color:#fff!important}}
.tf-lk-dropdown--customer .tf-icon{width:20px;height:20px;flex:none;stroke-width:1.2}
/* 1.2 at 20 px draws the same 1 px line as the 22 px header icons. */
.tf-lk-dropdown--customer button{border-bottom:0;color:#8a8a8a;font-size:11px}
@media (hover:hover){
.tf-lk-dropdown--customer button:hover{color:var(--tf-red)}}
@media (max-width:767px){.tf-lk-menu{display:none}}
@media (min-width:768px) and (max-width:959px){.tf-site .tf-header--compact .tf-lk-menu>.tf-icon-button{width:40px;padding:8px}}

.tf-lk-toast{position:fixed;left:50%;bottom:24px;z-index:1000;max-width:calc(100% - 32px);padding:14px 20px;border-radius:var(--tf-radius);background:var(--tf-ink);color:#fff;font-size:14px;transform:translateX(-50%);box-shadow:0 4px 16px rgba(0,0,0,.2)}
.tf-lk :focus-visible,.tf-lk-dialog :focus-visible{outline:2px solid var(--tf-focus);outline-offset:2px}

@media (max-width:1023px){
  .tf-lk-layout{grid-template-columns:220px minmax(0,1fr);gap:28px}
  .tf-lk-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-lk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .tf-lk{padding-bottom:40px}
  .tf-lk-caption{position:relative}
  .tf-lk-tip{position:static}
  .tf-lk-tip__text{left:0;max-width:min(260px,100%);transform:none}
  .tf-lk-guest h1{font-size:28px}
  .tf-lk-layout{display:block}
  .tf-lk-sidebar{margin-bottom:24px}
  .tf-lk-identity{padding:0 0 14px}
  .tf-lk-nav{flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:8px;border-bottom:1px solid var(--tf-border)}
  .tf-lk-nav-item,.tf-lk-logout{flex:none;min-height:40px;padding:8px 12px;border:1px solid var(--tf-border);border-radius:var(--tf-radius);font-size:13px;white-space:nowrap}
  .tf-lk-content>h1{font-size:24px;margin-bottom:20px}
  .tf-lk-shortcut{min-height:110px}
  .tf-lk-loyalty{flex-direction:column;align-items:flex-start;gap:16px;padding:20px}
  .tf-lk-loyalty-symbol{width:56px;height:56px}
  .tf-lk-loyalty-symbol .tf-icon{width:28px;height:28px}
  .tf-lk-order summary{flex-wrap:wrap;gap:10px;padding:16px}
  .tf-lk-order-detail{padding:0 16px 12px}
  .tf-dialog.tf-lk-dialog,.tf-dialog.tf-lk-dialog.is-register{width:min(440px,calc(100% - 24px))}
  .tf-lk-benefits{display:none!important}
  .tf-lk-dialog-main{padding:20px 16px 16px}
  .tf-lk-tabs{margin-bottom:12px}
  .tf-lk-dialog .tf-lk-dialog-title{margin-bottom:12px;font-size:17px}
  .tf-lk-form,.tf-lk-row{gap:10px}
  .tf-lk-dialog .tf-input{min-height:40px}
  .tf-lk-dialog .tf-lk-submit{min-height:44px}
}
/* Short viewports (small laptops with browser bars): tighter vertical rhythm, same layout. */
@media (min-width:768px) and (max-height:620px){
  .tf-lk-dialog-main{padding-top:20px;padding-bottom:14px}
  .tf-lk-tabs,.tf-lk-dialog .tf-lk-dialog-title{margin-bottom:10px}
  .tf-lk-form,.tf-lk-row{gap:8px}
  .tf-lk-dialog .tf-input{min-height:38px}
  .tf-lk-benefits{padding-top:48px}
}
@media (prefers-reduced-motion:reduce){.tf-lk-shortcut{transition:none}}

/* The guest phone verification tab must fit beside the existing sign-in choices. */
.tf-lk-tabs{flex-wrap:wrap}
