/* Loader */
#pageLoader {
  position: fixed;
  inset: 0;
  background: #fcfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .2s ease;
}
.mobile-header {
  display: none;
}
:root {
  --dock-h: 80px;

  /* colors */
  --bg: #fcfcfc;
  --accent: #FF9412;
  --accent-soft: #fffbf8;
  --accent-border: #FFE1CE;
  --muted: #C6C6C6;
  --muted-2: #7A7A7A;
  --white: #fff;
}
#pageLoader .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0);
  border-top-color: #ff8a00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#pageLoader[aria-hidden="true"] {
  display: none;
}

body {
  background-color: #fcfcfc;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
 
main{max-width:920px;margin:24px auto;padding:0 16px;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;}


h1{font-size:38px;margin:24px 0 24px; color: #000; font-weight: 600;}

/* Кнопка "Сохранить" — три состояния */
#saveSettingsBtn {
  border: none;
  font-weight: 400;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

/* НЕАКТИВНА: серый фон, белый текст */
#saveSettingsBtn.btn-disabled,
#saveSettingsBtn[disabled] {
  background-color: #b9b9b9;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
  filter: none;
}

/* АКТИВНА: оранжевый фон, белый текст */
#saveSettingsBtn.btn-active {
  background-color: #ff8a00;
  color: #ffffff;
  cursor: pointer;
}

/* СОХРАНЕНИЕ: белый фон, оранжевый текст */
#saveSettingsBtn.btn-saving {
  background-color: #ffffff;
  color: #ff8a00;
  cursor: wait;
  outline: 2px solid #ff8a00;
}

/* Форма настроек: label сверху, input ниже */
.settings-form .form-row {
  margin-bottom: 14px;
}

.settings-form .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

.settings-form .form-row input,
.settings-form .form-row select {
  display: block;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 3px 5px 0 rgba(136, 136, 136, 0.08);
}

.settings-form .form-row input:focus,
.settings-form .form-row select:focus {
  border-color: #ff8a00;
}

/* Кастомная стрелка у select и её сдвиг от правого края */
.settings-form .form-row select {
  /* выключаем системную стрелку */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* внутренняя отступ справа, чтобы текст не наезжал на стрелку
  padding-right: 44px; */

  /* наша стрелка */
  /* background-image: url("data:image/svg+xml,%3Csvg width='16' height='8' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l5 6 5-6' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; */

  /* вот здесь регулируешь, насколько ЛЕВЕЕ от правого края стоит стрелка */
  /* background-position: right 20px center;  */
  /* было бы 12px, стало 20px левее */
  /* background-size: 14px 10px; */
}

/* скрыть стрелку IE/старый Edge */
.settings-form .form-row select::-ms-expand {
  display: none;
}

/* === visibility-section (1:1 из profile.css) === */
.visibility-section {
  margin-top: 0px;
  padding: 0;
  background: none;
}
.visibility-section h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}
.visibility-item {
  display: flex;
  align-items: center;
  /* margin-bottom: 10px; */
}
.visibility-value {
  margin-left: 10px;
  font-size: 18px;
}
/* Переключатель*/
.switch {
  position: relative;
  display: inline-block;
  min-width: 48.6px;   /* было 54px */
  height: 27.8px;     /* было 30.6px */
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 27.54px;  /* было 30.6px (равно высоте для «пилюли») */
}

.slider:before {
  position: absolute;
  content: "";
  height: 21.06px;     /* было 23.4px */
  width: 21.06px;      /* было 23.4px */
  left: 3.24px;        /* было 3.6px */
  bottom: 3.24px;      /* было 3.6px */
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider { background-color: #FF9412; }

input:checked + .slider:before {
  transform: translateX(21.06px); /* было 23.4px (сдвиг равен диаметру круглой кнопки) */
}

/* ===================== MOBILE (<=760px) ===================== */
@media (max-width: 760px) {

  /* прячем ПК-хедер */
  header.header {
    display: none;
  }



  /* MOBILE HEADER (минимальный набор стилей, как на main-store/profile) */
  .mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: var(--white, #fff);
    border-bottom: 1px solid #e9e0d9;
    z-index: 4500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .mobile-logo {
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #ff8a00;
    font-size: 20px;
  }

  .mobile-header__right {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .mh-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #ffd7b1;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
  }

  .mh-btn svg {
    width: 22px;
    height: 22px;
    stroke: #ff8a00;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* чтобы контент не залезал под фикс-хедер */
  main {
    margin-top: 62px;
    padding: 0 12px;
  }

  /* типографика */
  h1 {
    font-size: 26px;
    margin: 14px 0 16px;
  }

  /* инпуты/селекты на всю ширину */
  .settings-form .form-row input,
  .settings-form .form-row select {
    max-width: 100%;
    border-radius: 12px;
  }

  /* блок видимости: аккуратнее */
  .visibility-item {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .visibility-value {
    font-size: 16px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* кнопка сохранить: удобная на мобиле */
  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #saveSettingsBtn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 1400px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.visibility-item[hidden] {
  display: none !important;
}
#logoutBtn {
  width: 40px;
  height: 40px;
}
.form-row--secondary {
  margin-top: 10px;
}
#btns-no-style {
  border: none;
  background: none;
  padding: 0;margin: 0;
  display: flex; align-items: center;gap: 10px;
}
#resetPasswordBtn {
  border: 1px solid #b9b9b9;
  background: #fff;
  color: #b9b9b9;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#resetPasswordBtn:hover {
  background: #cbcbcb;
  color: #fff;
}

#resetPasswordBtn:active {
  background: #cbcbcb;
  color: #fff;
}