/* OIL STORE — the r43 window «Вход» / «Регистрация» / «Восстановление пароля» of the new cart and of the checkout form (п.208 review,
   22.10.2026: moved unchanged from oilstore_cart.css; the markup — checkout/oilstore_auth_window.tpl, the script — oilstore_auth.js).
   Loaded after the stylesheet of the page; the window lives in <body>, outside the page, so it has its own tokens (those of the cart). */
#oilstore-auth {
  --ink: #333333; --ink-hover: #474747; --text: #2b2b2b; --muted: #6b6f73;
  --line: #d6d6d3; --line-soft: #e8e8e5; --ground: #f5f5f3; --card: #ffffff;
  --yellow: #ffc72c; --yellow-pale: #fff2cf;
  --ok: #2f7d4f; --ok-pale: #e9f4ec; --info: #34566f; --info-pale: #eaf1f6;
  --warn: #8a5a00; --err: #b42318; --err-pale: #fdecea;
  --brand-red: #e30613; --brand-red-hover: #c8101e;
  --sale: #f70909; --was: #9aa2a8;   /* discounts: the theme's .price-new / .oct-discount-item red and the carousels' .price-old grey */
  --r-card: 23px; --r-ctrl: 12px;
}
#oilstore-auth [hidden] { display: none !important; }
#oilstore-auth { color: var(--text); font: 400 15px/1.5 "OpenSansRegular", "Open Sans", Arial, sans-serif; }
#oilstore-auth, #oilstore-auth *, #oilstore-auth *::before, #oilstore-auth *::after { box-sizing: border-box; }
#oilstore-auth h2 { margin: 0; color: var(--ink); font-family: "OpenSansBold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 19px; line-height: 1.3; text-wrap: balance; }
#oilstore-auth :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#oilstore-auth .oc-muted { color: var(--muted); }
#oilstore-auth .oc-small { font-size: 13px; }
#oilstore-auth .oc-notice { margin: 0; border: 0; border-radius: 14px; padding: 10px 12px; font-size: 13px; background: var(--yellow-pale); color: var(--ink); }
#oilstore-auth .oc-notice-danger, #oilstore-auth .oc-notice-warning { background: var(--err-pale); color: #7a1a12; }
#oilstore-auth .oc-notice-success { background: var(--ok-pale); color: var(--ok); }
#oilstore-auth .oc-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-ctrl); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: "OpenSansSemibold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 15px; cursor: pointer; text-decoration: none; }
#oilstore-auth .oc-btn:hover { background: var(--ink-hover); color: #fff; text-decoration: none; }
#oilstore-auth .oc-btn:disabled { opacity: .45; cursor: not-allowed; }
#oilstore-auth .oc-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
#oilstore-auth .oc-btn-ghost:hover { background: var(--card); color: var(--ink); border-color: #aaa9a5; }
/* 23.10.2026: the keyboard ring of a light button lies over its border — one line, not the border and the ring 2 px apart */
#oilstore-auth .oc-btn-ghost:focus-visible { outline-offset: -1px; }
#oilstore-auth #oilstore-auth-title:focus { outline: none; }   /* the title focused by the script (a screen without fields), not a control */
#oilstore-auth .oc-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
#oilstore-auth .oc-block { width: 100%; }
#oilstore-auth .oc-linkbtn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 13px; }
/* the window «Вход» / «Регистрация» / «Восстановление пароля» (r43 «.modal.auth», «.f»). oilstore_auth.js builds it (.oc-js) and moves
   it into <body>: the theme's wrapper (#oct-bluring-box, z-index 1000 on the phone) would hold it under its own fixed buttons; z-index
   10100 — above every layer of the theme (the highest: the phone notice .headervagno, 10050), under the cookie banner only.
   Without the script the same forms stand on the page in a card. */
#oilstore-auth .oc-modal { background: var(--card); border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
#oilstore-auth:not(.oc-open) .oc-modal { border: 1px solid var(--line-soft); }
#oilstore-auth.oc-js { display: none; }
#oilstore-auth.oc-js.oc-open { display: grid; position: fixed; inset: 0; z-index: 10100; background: rgba(0, 0, 0, .35); place-items: center; padding: 16px; }
#oilstore-auth.oc-js .oc-modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; border: 0; }
#oilstore-auth .oc-mhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#oilstore-auth .oc-x { width: 40px; height: 40px; flex: none; border: 0; background: var(--ground); border-radius: 12px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0; }
#oilstore-auth .oc-x:hover { background: var(--line-soft); }
#oilstore-auth .oc-messages { display: grid; gap: 8px; margin: 0; }
#oilstore-auth .oc-screen { display: grid; gap: 14px; }
#oilstore-auth.oc-js .oc-nojs-title { display: none; }
#oilstore-auth .oc-nojs-title { font-size: 17px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
#oilstore-auth .oc-form { display: grid; gap: 14px; margin: 0; }
#oilstore-auth .oc-f { min-width: 0; }
#oilstore-auth .oc-f > label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; font-weight: normal; }
#oilstore-auth .oc-f input { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--card); font: inherit; font-size: 15px; color: var(--text); box-shadow: none; }
#oilstore-auth .oc-f input:focus { border-color: #777; outline: none; box-shadow: 0 0 0 3px rgba(51, 51, 51, .12); }
#oilstore-auth .oc-req { color: var(--err); }
#oilstore-auth .oc-authlinks { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
#oilstore-auth .oc-authlinks .oc-linkbtn, #oilstore-auth .oc-authnote .oc-linkbtn { font-size: 14px; }
#oilstore-auth .oc-authnote { margin: 0; }
#oilstore-auth .oc-regnote { margin: -6px 0 0; line-height: 1.45; }   /* under «Зарегистрироваться»: the documents open in a new tab */
#oilstore-auth .oc-regnote a { color: var(--ink); text-decoration: underline; }
/* 25.10.2026: «Показать пароль» under the two password fields (a link-like button with a finger-size height), its status line for a
   screen reader only, and the robot check chosen in the settings — the markup of its extension (Bootstrap classes of the theme) put
   into the look of the form's fields; its legend is hidden (the label of the field names it) */
#oilstore-auth .oc-pwshow { justify-self: start; min-height: 32px; margin: -10px 0 -6px; font-size: 14px; }
#oilstore-auth .oc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#oilstore-auth .oc-captcha { min-width: 0; }
#oilstore-auth .oc-captcha fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
#oilstore-auth .oc-captcha legend { display: none; }
#oilstore-auth .oc-captcha .form-group { margin: 0; }
#oilstore-auth .oc-captcha [class*="col-"] { float: none; width: auto; padding: 0; }
#oilstore-auth .oc-captcha .control-label { display: block; margin: 0 0 4px; padding: 0; font-size: 13px; color: var(--muted); font-weight: normal; text-align: left; }
#oilstore-auth .oc-captcha .required .control-label:before { content: none; }   /* the theme's «* » before the label: after it, as on the other fields */
#oilstore-auth .oc-captcha .required .control-label:after { content: " *"; color: var(--err); }
#oilstore-auth .oc-captcha input[type="text"] { display: block; width: 100%; height: auto; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--card); font: inherit; font-size: 15px; color: var(--text); box-shadow: none; }
#oilstore-auth .oc-captcha input[type="text"]:focus { border-color: #777; outline: none; box-shadow: 0 0 0 3px rgba(51, 51, 51, .12); }
#oilstore-auth .oc-captcha img { display: block; max-width: 100%; height: auto; margin-top: 8px; border-radius: 6px; }
#oilstore-auth .oc-captcha .text-danger { margin-top: 4px; font-size: 13px; color: var(--err); }
/* the page account/register (25.10.2026): the same card as the window, alone on the page, of the window's width */
#oilstore-auth.oc-page { max-width: 460px; margin: 8px auto 40px; }
#oilstore-auth.oc-page .oc-modal { padding: 24px; }
#oilstore-auth .oc-page-title { margin: 0; color: var(--ink); font-family: "OpenSansBold", "Open Sans", Arial, sans-serif; font-weight: normal; font-size: 24px; line-height: 1.25; text-transform: none; letter-spacing: normal; text-wrap: balance; }   /* the theme's h1 is upper case */
#oilstore-auth.oc-page .oc-authnote a, #oilstore-auth.oc-page .oc-authlinks a { color: var(--ink); text-decoration: underline; font-size: 14px; }
#oilstore-auth .oc-pagetext { margin: 0; color: var(--text); }   /* the text of the page account/logout (25.10.2026) */
@media (max-width: 600px) {
  #oilstore-auth { font-size: 14px; }
  #oilstore-auth.oc-page { margin: 4px auto 28px; }
  #oilstore-auth.oc-page .oc-modal { padding: 0; border: 0; border-radius: 0; }   /* the theme's white panel is the card on a phone: the fields get its width */
  #oilstore-auth .oc-page-title { font-size: 21px; }
  #oilstore-auth.oc-js.oc-open { align-items: end; padding: 0; }   /* r43: a sheet from the bottom on the phone */
  #oilstore-auth.oc-js .oc-modal { width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: no-preference) { #oilstore-auth .oc-btn { transition: background-color .15s, border-color .15s; } }
