/* Личный кабинет / вход / заказы — тема chay2026 */

.ch26-cabinet {
  max-width: 980px;
  margin: 0 auto 40px;
}

.ch26-cabinet > h1,
.ch26-content > h1 {
  margin-bottom: 18px;
}

.ch26-cabinet-hint {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--soft, #f0f1ec);
  border-left: 3px solid var(--green, #2f6b3d);
  color: #3a3a3a;
  font-size: 14px;
  line-height: 1.45;
}

/* —— Auth —— */
.ch26-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  align-items: start;
  margin: 8px 0 32px;
}

@media (max-width: 820px) {
  .ch26-auth {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ch26-auth-card {
  background: var(--hero, #f6f7f3);
  border: 1px solid var(--line, #eceee8);
  padding: 22px 24px 26px;
}

.ch26-auth-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink, #1c1c1c);
}

.ch26-auth-card .ch26-auth-lead {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted, #8a8a8a);
  line-height: 1.4;
}

.ch26-auth-field {
  margin-bottom: 14px;
}

.ch26-auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2a2a2a;
}

.ch26-auth-field .req {
  color: #c0392b;
}

.ch26-auth-field input[type="text"],
.ch26-auth-field input[type="email"],
.ch26-auth-field input[type="password"],
.ch26-profile input[type="text"],
.ch26-profile input[type="email"],
.ch26-profile input[type="password"],
.ch26-profile input.round3,
.ch26-profile textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d6d6d6;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink, #1c1c1c);
}

.ch26-auth-field input:focus,
.ch26-profile input:focus,
.ch26-profile textarea:focus {
  outline: none;
  border-color: var(--green, #2f6b3d);
  box-shadow: 0 0 0 2px rgba(47, 107, 61, 0.15);
}

.ch26-auth-field .help,
.ch26-auth-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted, #8a8a8a);
  line-height: 1.4;
}

.ch26-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.ch26-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.ch26-btn-primary {
  background: var(--green, #2f6b3d);
  color: #fff;
}

.ch26-btn-primary:hover {
  background: var(--green-dark, #255732);
  color: #fff;
}

.ch26-btn-secondary {
  background: transparent;
  color: var(--green, #2f6b3d);
  border: 1px solid var(--green, #2f6b3d);
}

.ch26-btn-secondary:hover {
  background: rgba(47, 107, 61, 0.08);
}

.ch26-btn-link {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: auto;
  color: var(--green, #2f6b3d);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.ch26-btn-link:hover {
  color: var(--green-dark, #255732);
}

.ch26-auth-forgot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #eceee8);
}

.ch26-auth-msg {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.ch26-auth-msg.is-error {
  background: #fceaea;
  color: #8a2a2a;
}

.ch26-auth-msg.is-ok {
  background: #e7efe8;
  color: #255732;
}

/* —— Logout / account nav —— */
.ch26-cabinet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--hero, #f6f7f3);
  border: 1px solid var(--line, #eceee8);
}

.ch26-cabinet-nav .ch26-cabinet-user {
  flex: 1 1 200px;
  font-size: 14px;
  color: #3a3a3a;
}

.ch26-cabinet-nav .ch26-cabinet-user b {
  color: var(--ink, #1c1c1c);
}

.ch26-cabinet-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--green, #2f6b3d);
  text-decoration: none;
}

.ch26-cabinet-nav a:hover {
  text-decoration: underline;
}

.ch26-cabinet-nav a.is-danger {
  color: #8a5a3a;
  font-weight: 500;
}

/* —— Orders ExtJS grid —— */
.ch26-cabinet #office-minishop2-grid {
  min-height: 320px;
  margin-bottom: 24px;
}

.ch26-cabinet .x-panel,
.ch26-cabinet .x-grid-panel {
  border-color: #e4e5e0 !important;
  font-family: "Golos Text", sans-serif !important;
}

.ch26-cabinet .x-panel-header,
.ch26-cabinet .x-toolbar {
  background: var(--soft, #f0f1ec) !important;
  border-color: #e4e5e0 !important;
}

.ch26-cabinet .x-grid3-hd-row td {
  background: #f6f7f3 !important;
  color: #1c1c1c !important;
  font-weight: 700 !important;
}

.ch26-cabinet .x-btn button,
.ch26-cabinet .x-btn-text {
  font-family: inherit !important;
}

.ch26-cabinet .fa-repeat:before,
.ch26-cabinet .x-action-col-icon.fa-repeat {
  color: var(--green, #2f6b3d) !important;
}

#office-preloader {
  padding: 40px;
  text-align: center;
  color: var(--muted, #8a8a8a);
}

#office-preloader:before {
  content: "Загрузка заказов…";
}

/* —— Profile —— */
.ch26-profile #add_address,
.ch26-profile .std {
  max-width: 640px;
}

.ch26-profile .alert-warning {
  background: var(--soft, #f0f1ec);
  border: 0;
  border-left: 3px solid var(--green, #2f6b3d);
  padding: 12px 14px;
  color: #3a3a3a;
}

.ch26-profile input[type="submit"],
.ch26-profile .button,
.ch26-profile button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: var(--green, #2f6b3d);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ch26-profile input[type="submit"]:hover,
.ch26-profile .button:hover {
  background: var(--green-dark, #255732);
}

/* Hide legacy PrestaShop leftovers if any remain */
.ch26-cabinet .keep-header .icon-login,
.ch26-cabinet .keep-header .icon-register,
.ch26-cabinet .under-header {
  display: none;
}
