/* Modal styles */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-header {
  padding: unset !important;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none !important;
}

.modal-content {
  background-color: #fefefe;
  margin: auto 0;
  padding: 40px 60px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  position: absolute;
  padding: 40px 60px;
  width: 90%;
  max-width: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 992px) {
  .modal-content {
    width: 70%;
  }
}
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 45px;
  }
}
@media (max-width: 576px) {
  .modal-content {
    padding: 20px 30px;
    width: 80%;
  }
}

.modal-content-big {
  background-color: #fefefe;
  margin: auto 0;
  padding: 20px 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  background-color: #fff;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  outline: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  padding-bottom: 100px;
  margin: 30px 0 30px 0;
}

.modal-contact {
  padding: 40px 20px;
}

.modal-scroll {
  overflow-y: scroll !important;
}

/* @media (min-width: 610px) {
  .modal-content-big {
    padding: 30px 40px;
  }
}
@media (min-width: 767px) {
  .modal-content-big {
    padding: 40px 60px;
  }
} */

@media (max-width: 992px) {
  .modal-content-big {
    width: 70%;
  }
}
@media (max-width: 768px) {
  .modal-content-big {
    padding: 30px 45px;
  }
}
@media (max-width: 576px) {
  .modal-content-big {
    padding: 20px 30px;
    width: 80%;
  }
}

.modal-content-form {
  background-color: #fefefe;
  margin: auto 0;
  padding: 40px 20px;
  border: 1px solid #888;
  /* width: 42%; */
  /* max-width: 600px; */
  position: absolute;
  top: 50%;
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  width: 500px;
  border-radius: 20px;
}

/* .registration-modal {
  padding-top: 350px;
  overflow-y: auto !important;

  @media screen and (min-width: 1500px) {
    padding-top: 250px;
  }
  @media screen and (min-width: 1800px) {
    padding-top: 100px;
  }
}

.review-modal {
  padding-top: 350px;
  overflow-y: auto !important;

  @media screen and (min-width: 1500px) {
    padding-top: 250px;
  }
  @media screen and (min-width: 1800px) {
    padding-top: 100px;
  }
} */

.close {
  color: black;
  float: right;
  font-size: 28px;
  font-weight: bold;
  opacity: unset !important;
}
.city__block-right {
  position: relative;
}
.city__block-close {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.city-close {
  position: absolute;
  top: 18px;
  right: 18px;
}
.city__block-close > img {
  height: 24px;
  width: 24px;
}
@media (max-width: 841px) {
  .city__block-close > img {
    height: 22px;
    width: 22px;
  }
}
@media (max-width: 599px) {
  .city__block-close > img {
    height: 20px;
    width: 20px;
  }
}

.close:hover,
.close:focus {
  text-decoration: none;
  cursor: pointer;
  opacity: unset !important;
}

input#remember-password {
  border: var(--border);
}

.control-password_container {
  position: relative;
}

.toggle-password-btn-login,
.toggle-password-btn-registration {
  position: absolute;
  top: 14px;
  right: 20px;
}

.toggle-password-btn-login:hover,
.toggle-password-btn-registration:hover {
  cursor: pointer;
}

.modal-password {
  margin-bottom: 31px;
  display: flex;
  justify-content: space-between;
}

.custom-modal-checkbox {
  display: flex;
  gap: 10px;
}

#toggle-registration,
#toggle-sign-in {
  background-color: white !important;
  margin-bottom: unset !important;
  border: var(--border);
  color: var(--color-main);
}

#toggle-registration:hover,
#toggle-sign-in:hover {
  cursor: pointer;
}

.control-password_container {
  margin-bottom: 30px;
}

.modal-header-code {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-image-container {
  display: flex;
  justify-content: center;
}

.modal-info {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.modal-info > span {
  max-width: 355px;
}
.modal-enter-code {
  font-weight: 600 !important;
  margin-bottom: 20px !important;
}
.modal-tel {
  color: var(--color-main);
}

.modal-confirm-btn {
  padding: 10px;
  height: 50px;
  background: var(--color-main);
  color: white;
  margin-bottom: 20px;
  width: 100%;
  border: none;
  display: block;
  transition: var(--transition);
}

.modal-confirm-btn:hover {
  color: white;
  transition: var(--transition);
  background: var(--hover-add);
}

.code-modal-text {
  display: flex;
  justify-content: center;
}

a.modal-link {
  color: var(--color-main) !important;
}

a.modal-send-again {
  margin-bottom: 30px;
}

a.modal-link:hover {
  color: var(--color-main);
}

.modal-text-h1 {
  font-family: 'Inter';
  font-size: 26px;
  font-weight: 700;
  line-height: 31px;
}

.confirm-modal-text {
  margin-bottom: 30px;
}

.modal-decorate-line {
  width: 190px;
  height: 1px;
  background-color: #dee0e5;
}

.google-login {
  background-color: white !important;
  border: var(--border);
  color: #000;
  height: 100%;
  padding: 15px 0;
  font-size: 16px !important;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  display: block;
}
@media (max-width: 576px) {
  .google-login > span {
    display: none;
  }
}
.modal-back-btn {
  background-color: white !important;
  margin-bottom: unset !important;
  border: var(--border);
  color: var(--color-main);
  height: 100%;
  padding: 15px 0;
  font-size: 16px !important;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  display: block;
  margin-top: 10px;
}
.toggle-password-icon {
  width: 20px;
  height: 20px;
}

.error-phone {
  display: none;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  text-align: center;
  margin-top: 6px;
  color: #f84147;
  margin-bottom: 0;
  padding-bottom: 10px;
}
.empty-phone {
  display: none;
  font-size: 18px;
  line-height: 26px;
  font-weight: 400;
  text-align: center;
  margin-top: 6px;
  color: #f84147;
  margin-bottom: 0;
  padding-bottom: 10px;
}

/* .text-center.google-registration_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
} */

#codeModal input[type='number']:focus {
  border-color: var(--color-main) !important;
}

.forgotPassModal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(50%, 50%);
  z-index: 10000;
}

.emailPassModal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(50%, 50%);
  z-index: 10000;
}

.back-btn-modal {
  background-color: white !important;
  margin-bottom: unset !important;
  border: var(--border);
  color: var(--color-main);
}
.modal-text {
  text-align: center;
}

/* ── Quick order modal ───────────────────────────────────────── */
.quick-order-modal .quick-order-modal__content {
  width: 100%;
  max-width: 600px;
  max-height: 595px;
  padding: 28px 32px 32px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.quick-order-modal__header {
  margin-bottom: 24px;
}

.quick-order-modal__title {
  font-family: 'Inter';
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.quick-order-modal__close {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s;
}

.quick-order-modal__close:hover {
  opacity: 1;
}

.quick-order-modal__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.quick-order-modal__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #b5b5b5;
  font-family: 'Inter';
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.quick-order-modal__step.is-active {
  background: #1f1a17;
  color: #fff;
}

.quick-order-modal__step svg {
  display: block;
}

.quick-order-modal__step-line {
  width: 46px;
  height: 1px;
  background: #e0e0e0;
}

.quick-order-modal__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: 'Inter';
  font-size: 14px;
  font-weight: 500;
  color: #1f1a17;
}

.quick-order-modal__section-title svg {
  color: #1f1a17;
  flex-shrink: 0;
}

.quick-order-modal__form {
  display: block;
}

.quick-order-modal__field {
  margin-bottom: 16px;
}

.quick-order-modal__field .control-label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Inter';
  font-size: 13px;
  font-weight: 400;
  color: #6b6b6b;
}

.quick-order-modal__field .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter';
  font-size: 14px;
  color: #1f1a17;
  box-shadow: none;
  transition: border-color 0.15s;
}

.quick-order-modal__field .form-control:focus {
  border-color: #1f1a17;
  outline: none;
}

.quick-order-modal__submit {
  margin-top: 6px;
  height: 48px;
  border-radius: 10px;
  background: #1f1a17;
  font-family: 'Inter';
  font-size: 14px;
  font-weight: 500;
}

.quick-order-modal__submit:hover {
  background: #000;
}

.quick-order-modal__step.is-done { background:#1f1a17; color:#fff; }
.quick-order-modal__pane { display:none; }
.quick-order-modal__pane.is-active { display:block; }

.quick-order-modal__methods { display:flex; flex-direction:column; gap:8px; }
.quick-order-modal__method { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid #e5e5e5; border-radius:8px; cursor:pointer; margin:0; transition:border-color .15s, background .15s; }
.quick-order-modal__method:hover { border-color:#1f1a17; }
.quick-order-modal__method input[type=radio] { accent-color:#1f1a17; margin:0; }
.quick-order-modal__method:has(input:checked) { border-color:#1f1a17; background:#fafafa; }
.quick-order-modal__method-name { font-family:'Inter'; font-size:14px; color:#1f1a17; }
.quick-order-modal__loading { padding:20px; text-align:center; color:#999; font-size:13px; }
.quick-order-modal__empty { padding:14px; text-align:center; color:#bbb; font-size:13px; }

.quick-order-modal__actions { display:flex; gap:10px; margin-top:18px; }
.quick-order-modal__actions button { flex:1; height:48px; border-radius:10px; font-family:'Inter'; font-size:14px; font-weight:500; }
.quick-order-modal__actions .modal-cancel-btn { background:#fff; color:#1f1a17; border:1px solid #e5e5e5; }
.quick-order-modal__actions .modal-cancel-btn:hover { border-color:#1f1a17; }
.quick-order-modal__actions .modal-confirm-btn { background:#1f1a17; color:#fff; border:none; }
.quick-order-modal__actions .modal-confirm-btn:hover { background:#000; }

.quick-order-modal__thank { text-align:center; padding:20px 10px; }
.quick-order-modal__thank-icon { display:inline-flex; width:72px; height:72px; border-radius:50%; background:#eef9f0; color:#2b8a3e; align-items:center; justify-content:center; margin-bottom:14px; }
.quick-order-modal__thank-title { font-family:'Inter'; font-size:18px; font-weight:600; margin:0 0 10px; color:#1f1a17; }
.quick-order-modal__thank-text { font-family:'Inter'; font-size:14px; line-height:1.5; color:#555; margin:0 0 20px; }
.quick-order-modal__thank .modal-confirm-btn { min-width:160px; height:46px; border-radius:10px; background:#1f1a17; color:#fff; border:none; font-family:'Inter'; font-size:14px; }

.quick-order-modal__error { margin-top:14px; padding:10px 14px; background:#fff3f3; color:#c00; border:1px solid #f5c2c2; border-radius:8px; font-size:13px; }

@media (max-width: 640px) {
  .quick-order-modal .quick-order-modal__content {
    width: 92%;
    max-height: calc(100vh - 40px);
    padding: 22px 20px 24px;
  }

  .quick-order-modal__step-line {
    width: 30px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Create-an-account modal — pixel-perfect Figma version (BobrCraft)
   Container .acc-reg-modal використовує .modal базу (display:none + overlay)
   ───────────────────────────────────────────────────────────────────────── */
.acc-reg-modal { z-index: 1050; }
.acc-reg-modal.in,
.acc-reg-modal[style*="display: block"] { display: block; }

.acc-reg-dialog {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 440px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
  padding: 22px 24px 26px;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

.acc-reg-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.acc-reg-title {
  margin: 0;
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
  color: #1a1a1a;
}
.acc-reg-close {
  width: 32px; height: 32px;
  background: transparent; border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #1a1a1a; cursor: pointer; border-radius: 8px;
  opacity: 1;
}
.acc-reg-close:hover { background: #f5f5f5; }
.acc-reg-close img { display: none; }

/* Social row */
.acc-reg-socials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.acc-reg-soc {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; border: 1px solid #e6e6e6; border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.acc-reg-soc:hover { border-color: #c9c9c9; background: #fafafa; }

/* Or divider */
.acc-reg-divider {
  position: relative; text-align: center;
  margin: 6px 0 14px; color: #b5b5b5; font-size: 12px;
}
.acc-reg-divider::before,
.acc-reg-divider::after {
  content: ''; position: absolute; top: 50%; height: 1px; width: calc(50% - 22px);
  background: #ececec;
}
.acc-reg-divider::before { left: 0; }
.acc-reg-divider::after  { right: 0; }
.acc-reg-divider span { position: relative; padding: 0 8px; background: #fff; }

/* Form */
.acc-reg-form { display: flex; flex-direction: column; gap: 12px; }
.acc-reg-row { display: flex; flex-direction: column; gap: 12px; }
.acc-reg-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.acc-reg-field { display: flex; flex-direction: column; }
.acc-reg-label {
  font-size: 13px; font-weight: 500; color: #1a1a1a;
  margin: 0 0 6px; letter-spacing: -.005em;
}
.acc-reg-input {
  height: 42px; width: 100%;
  padding: 0 14px;
  border: 1px solid #e6e6e6; border-radius: 10px;
  background: #fff; color: #1a1a1a;
  font-size: 13.5px; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.acc-reg-input::placeholder { color: #b5b5b5; }
.acc-reg-input:focus { border-color: #1a1a1a; }
.acc-reg-input.error { border-color: #e74c3c; }

.acc-reg-error {
  display: none; margin-top: 6px;
  font-size: 12px; color: #e74c3c;
}
.acc-reg-error.error { display: block; }

/* Phone with country selector */
.acc-reg-phone { position: relative; display: flex; align-items: center; }
.acc-reg-phone .acc-reg-input { padding-left: 50px; padding-right: 70px; }
.acc-reg-phone__code {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13.5px; color: #1a1a1a; font-weight: 500;
  pointer-events: none;
}
.acc-reg-phone__country {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 8px;
  background: transparent; border: 0; border-left: 1px solid #ececec;
  cursor: pointer; color: #6b6b6b;
}
.acc-reg-phone__flag { font-size: 18px; line-height: 1; }
.acc-reg-phone__caret { color: #6b6b6b; transition: transform .15s; }
.acc-reg-phone__country[aria-expanded="true"] .acc-reg-phone__caret { transform: rotate(180deg); }

.acc-reg-phone__list {
  position: absolute; top: calc(100% + 4px); right: 0;
  width: 220px; max-height: 240px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #ececec; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 5;
}
.acc-reg-phone__list[hidden] { display: none; }
.acc-reg-phone__list li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 6px;
  font-size: 13px; color: #1a1a1a; cursor: pointer;
}
.acc-reg-phone__list li:hover { background: #f5f5f5; }
.acc-reg-phone__list li em {
  margin-left: auto; font-style: normal; color: #8a8a8a; font-size: 12px;
}

/* Password */
.acc-reg-pass { position: relative; }
.acc-reg-pass .acc-reg-input { padding-right: 44px; }
.acc-reg-pass__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; border-radius: 6px;
}
.acc-reg-pass__toggle:hover { background: #f5f5f5; }
.acc-reg-pass__toggle img { width: 18px; height: auto; opacity: .65; }

/* Agree checkbox */
.acc-reg-agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 4px 0 6px;
  font-size: 12.5px; line-height: 1.5; color: #6b6b6b;
  cursor: pointer; user-select: none;
}
.acc-reg-agree__input {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.acc-reg-agree__box {
  flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px;
  border: 1.5px solid #cfcfcf; border-radius: 4px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.acc-reg-agree__box svg { opacity: 0; transition: opacity .12s; }
.acc-reg-agree__input:checked + .acc-reg-agree__box {
  background: #1a1a1a; border-color: #1a1a1a;
}
.acc-reg-agree__input:checked + .acc-reg-agree__box svg { opacity: 1; }
.acc-reg-link { color: #1a1a1a; text-decoration: underline; }
.acc-reg-link:hover { color: #444; }

/* Submit + footer */
.acc-reg-submit {
  height: 44px; border-radius: 10px;
  background: #2b1f1a; color: #fff; border: 0;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s;
  margin-top: 4px;
}
.acc-reg-submit:hover { background: #1a120f; }
.acc-reg-submit:disabled { opacity: .6; cursor: not-allowed; }

.acc-reg-foot {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 4px;
  font-size: 13px; color: #6b6b6b;
}
.acc-reg-foot__link { font-weight: 600; }

/* Mobile bottom-sheet style */
@media (max-width: 560px) {
  .acc-reg-dialog {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 22px;
    max-height: 92vh; overflow-y: auto;
  }
  .acc-reg-row--two { grid-template-columns: 1fr; }
  .acc-reg-phone__list { right: auto; left: 0; width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Email-verification modal — рендериться у #codeModal після реєстрації
   Використовує .acc-reg-dialog базу + локальні .acc-verify-* стилі
   ───────────────────────────────────────────────────────────────────────── */
.acc-verify-modal { z-index: 1051; }
.acc-verify-dialog { max-width: 400px; }

.acc-verify-form { display: flex; flex-direction: column; gap: 14px; }

.acc-verify-intro { display: flex; flex-direction: column; gap: 4px; }
.acc-verify-intro__title {
  font-size: 14px; font-weight: 600; color: #1a1a1a;
  letter-spacing: -.005em;
}
.acc-verify-intro__text,
.acc-verify-intro__email {
  font-size: 13px; color: #8a8a8a; line-height: 1.5;
}
.acc-verify-intro__email { color: #6b6b6b; }
.acc-verify-intro__target {
  display: inline-block;
  color: #6b6b6b; font-weight: 500;
  letter-spacing: .02em;
}

/* Phone/Email mode toggle on verify modal */
.acc-verify-modal[data-mode="email"] .acc-verify-only-phone { display: none !important; }
.acc-verify-modal[data-mode="phone"] .acc-verify-only-email { display: none !important; }

.acc-verify-code { letter-spacing: 1px; }

.acc-verify-hint {
  margin-top: 6px;
  font-size: 12px; color: #8a8a8a;
}

.acc-verify-resend {
  text-align: center;
  font-size: 12.5px; color: #8a8a8a; line-height: 1.5;
}
.acc-verify-resend__link {
  text-decoration: underline; cursor: pointer; margin: 0 2px;
}
.acc-verify-resend__link[disabled],
.acc-verify-resend__link.is-disabled {
  pointer-events: none; opacity: .55; text-decoration: none;
}

.acc-verify-submit { margin-top: 2px; }

.acc-verify-change {
  height: 44px; border-radius: 10px;
  background: #fff; color: #1a1a1a;
  border: 1px solid #e6e6e6;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.acc-verify-change:hover { border-color: #c9c9c9; background: #fafafa; }

@media (max-width: 560px) {
  .acc-verify-dialog {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 22px;
    max-height: 92vh; overflow-y: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Sign-in by email modal — рендериться у #loginModal
   Використовує .acc-reg-dialog базу + локальні .acc-login-* стилі
   ───────────────────────────────────────────────────────────────────────── */
.acc-login-modal { z-index: 1050; }
.acc-login-dialog { max-width: 420px; }

.acc-login-socials { grid-template-columns: repeat(4, 1fr); }
.acc-reg-soc.is-active { border-color: #1a1a1a; background: #f5f5f5; }

/* Email/Phone mode toggle — visibility driven by [data-mode] on #loginModal */
.acc-login-modal[data-mode="email"] .acc-login-only-phone { display: none !important; }
.acc-login-modal[data-mode="phone"] .acc-login-only-email { display: none !important; }

/* 4th social: phone icon when in email-mode, envelope icon when in phone-mode */
.acc-login-mode-toggle .acc-login-soc__email,
.acc-login-mode-toggle .acc-login-soc__phone { display: none; }
.acc-login-modal[data-mode="email"] .acc-login-mode-toggle .acc-login-soc__phone { display: inline-block; }
.acc-login-modal[data-mode="phone"] .acc-login-mode-toggle .acc-login-soc__email { display: inline-block; }
.acc-login-modal[data-mode="phone"] .acc-login-mode-toggle {
  border-color: #1a1a1a; background: #f5f5f5;
}

.acc-login-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 4px 0 6px;
}
.acc-login-remember { margin: 0; font-size: 13px; color: #1a1a1a; }
.acc-login-remember__text { color: #1a1a1a; }
.acc-login-forgot {
  font-size: 13px; color: #1a1a1a; font-weight: 500; text-decoration: underline;
  cursor: pointer; white-space: nowrap;
}
.acc-login-forgot:hover { color: #444; }

@media (max-width: 560px) {
  .acc-login-dialog {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 22px;
    max-height: 92vh; overflow-y: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Forgot-password modal — рендериться у #forgotPassModal
   ───────────────────────────────────────────────────────────────────────── */
.acc-forgot-modal { z-index: 1052; }
.acc-forgot-dialog { max-width: 400px; }

.acc-forgot-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

@media (max-width: 560px) {
  .acc-forgot-dialog {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 22px;
    max-height: 92vh; overflow-y: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   "Link sent" success modal — рендериться у #emailPassModal
   ───────────────────────────────────────────────────────────────────────── */
.acc-linksent-modal { z-index: 1053; }
.acc-linksent-dialog { max-width: 360px; }
.acc-linksent-submit { margin-top: 16px; }

@media (max-width: 560px) {
  .acc-linksent-dialog {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: none;
    width: 100%; max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 22px;
    max-height: 92vh; overflow-y: auto;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Reset-password page — standalone сторінка з модалкою-карткою по центру.
   Не використовує .modal overlay — це повна сторінка з фоном.
   ───────────────────────────────────────────────────────────────────────── */
.acc-reset-overlay {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
  padding: 40px 16px;
}
.acc-reset-dialog {
  position: static;
  transform: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.acc-reset-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.acc-reset-submit { margin-top: 4px; }

@media (max-width: 560px) {
  .acc-reset-overlay { padding: 24px 12px; }
  .acc-reset-dialog { padding: 18px 18px 22px; border-radius: 16px; }
}

/* Reset password — success card (rendered at /account/reset?success=1) */
.acc-reset-success {
  text-align: center;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; align-items: center;
}
.acc-reset-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #e7f7ee;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.acc-reset-success__title {
  margin: 0 0 6px;
  font-size: 18px; font-weight: 700; color: #1a1a1a; letter-spacing: -.01em;
}
.acc-reset-success__text {
  margin: 0 0 18px;
  font-size: 13px; color: #8a8a8a; line-height: 1.5;
}
.acc-reset-success__cta {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}

/* Reset password — expired link variant (rendered when code is invalid) */
.acc-reset-expired__icon { background: #fff5e0; }
