/* V6.26 – veřejný profil prodejce: nastavení účtu a karta v detailu. */

.nap-seller-settings,
.nap-seller-settings * {
  box-sizing: border-box;
}

.nap-seller-settings {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #e0dfda;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf2 0%, #fff 68%);
  color: #09090a;
}

.nap-seller-settings[hidden] {
  display: none !important;
}

.nap-seller-settings-heading,
.nap-seller-settings-header {
  display: grid;
  gap: 5px;
}

.nap-seller-settings h3,
.nap-seller-settings h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.nap-seller-settings p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.nap-seller-settings-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: .94rem;
  font-weight: 850;
}

.nap-seller-settings input[type="text"],
.nap-seller-settings input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: #09090a;
  font: inherit;
  font-size: 16px;
  line-height: 1.25;
}

.nap-seller-settings input[type="text"]::placeholder,
.nap-seller-settings input[type="search"]::placeholder {
  color: #818181;
  opacity: 1;
}

.nap-seller-settings input[type="text"]:focus-visible,
.nap-seller-settings input[type="search"]:focus-visible {
  border-color: #09090a;
  outline: 3px solid rgba(255, 227, 61, .72);
  outline-offset: 1px;
}

.nap-seller-settings input[type="text"]:disabled,
.nap-seller-settings input[type="search"]:disabled {
  color: #777;
  background: #f1f0ec;
  cursor: not-allowed;
}

.nap-seller-settings-help,
.nap-seller-settings-counter {
  color: #737373;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.nap-seller-settings-counter {
  justify-self: end;
}

.nap-seller-settings-toggle,
.nap-seller-settings-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid #deddd8;
  border-radius: 13px;
  background: #f7f6f2;
  cursor: pointer;
}

.nap-seller-settings-toggle > span,
.nap-seller-settings-switch > span {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.nap-seller-settings input[type="checkbox"] {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  margin: 0;
  border: 2px solid #a8a8a5;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: #d8d7d2;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.nap-seller-settings input[type="checkbox"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  content: '';
  transition: transform .16s ease;
}

.nap-seller-settings input[type="checkbox"]:checked {
  border-color: #09090a;
  background: #ffe33d;
}

.nap-seller-settings input[type="checkbox"]:checked::after {
  background: #09090a;
  transform: translateX(22px);
}

.nap-seller-settings input[type="checkbox"]:focus-visible {
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.nap-seller-settings input[type="checkbox"]:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.nap-seller-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nap-seller-settings-save,
.nap-seller-settings-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.nap-seller-settings-save {
  border: 1px solid #09090a;
  background: #09090a;
  color: #ffe33d;
}

.nap-seller-settings-open {
  border: 1px solid #d1d0cb;
  background: #fff;
  color: #09090a;
}

.nap-seller-settings-save:hover,
.nap-seller-settings-open:hover {
  filter: brightness(.95);
}

.nap-seller-settings-save:focus-visible,
.nap-seller-settings-open:focus-visible {
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.nap-seller-settings-save:disabled,
.nap-seller-settings-open[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.nap-seller-settings-status {
  min-height: 21px;
  margin: 0;
  color: #555;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.nap-seller-settings-status:empty {
  display: none;
}

.nap-seller-settings-status.is-success,
.nap-seller-settings-status.success {
  padding: 10px 12px;
  border-radius: 11px;
  background: #e9f8f1;
  color: #087653;
}

.nap-seller-settings-status.is-error,
.nap-seller-settings-status.error {
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff0ef;
  color: #a3291f;
}

/* Třídy vykreslované modulem účtu V6.26. */
.nap-dashboard-panel[data-nap-seller-profile-panel] {
  color: #09090a;
}

.nap-seller-profile-heading {
  margin-bottom: 16px;
}

.nap-seller-profile-form {
  display: grid;
  gap: 16px;
}

.nap-seller-profile-name {
  min-width: 0;
}

.nap-seller-profile-name input {
  min-height: 50px;
  font-size: 16px;
}

.nap-seller-profile-name small {
  color: #737373;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.nap-seller-profile-switch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid #deddd8;
  border-radius: 13px;
  background: #f7f6f2;
  cursor: pointer;
}

.nap-seller-profile-switch > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nap-seller-profile-switch strong {
  font-size: 15px;
  line-height: 1.35;
}

.nap-seller-profile-switch small {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.nap-seller-profile-privacy {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-left: 4px solid #ffe33d;
  border-radius: 0 12px 12px 0;
  background: #f7f6f2;
}

.nap-seller-profile-privacy strong {
  font-size: 15px;
  line-height: 1.35;
}

.nap-seller-profile-privacy p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.nap-seller-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nap-seller-profile-save,
.nap-seller-profile-open,
.nap-seller-profile-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.nap-seller-profile-save:focus-visible,
.nap-seller-profile-open:focus-visible,
.nap-seller-profile-retry:focus-visible {
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.nap-seller-profile-status {
  margin: 0;
  padding: 11px 13px;
  border-radius: 11px;
  color: #195fae;
  background: #edf5ff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.nap-seller-profile-status.is-success {
  color: #087653;
  background: #e9f8f1;
}

.nap-seller-profile-status.is-error {
  color: #a3291f;
  background: #fff0ef;
}

.nap-seller-profile-retry {
  justify-self: start;
}

/* Karta je záměrně samostatná: neovlivní ostatní odkazy ani karty webu. */
.nap-seller-card,
.nap-seller-card * {
  box-sizing: border-box;
}

.nap-seller-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  margin: 0 0 1.8rem;
  padding: 13px 14px;
  border: 1px solid #deddd8;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7f6f2 0%, #fff 74%);
  color: #0b0b0c;
  text-decoration: none;
}

.listing-meta + .nap-seller-card {
  margin-top: -1rem;
}

a.nap-seller-card {
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

a.nap-seller-card:hover {
  border-color: #bcbab3;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

a.nap-seller-card:hover .nap-seller-card-name {
  text-decoration: underline;
}

a.nap-seller-card:focus-visible {
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.nap-seller-card-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #ffe33d;
  color: #09090a;
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.nap-seller-card-body,
.nap-seller-card-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nap-seller-card-label,
.nap-seller-card-kicker {
  color: #777;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nap-seller-card-name {
  display: inline;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #0b0b0c;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.28;
  text-decoration: none;
  text-underline-offset: 3px;
}

.nap-seller-card-name:hover {
  text-decoration: underline;
}

.nap-seller-card-name:focus-visible {
  border-radius: 3px;
  outline: 3px solid #397ee8;
  outline-offset: 3px;
}

.nap-seller-card-count {
  color: #656565;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.nap-seller-card-arrow {
  display: grid;
  place-items: center;
  justify-self: end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #09090a;
  color: #ffe33d;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

@media (max-width: 600px) {
  .nap-seller-settings {
    gap: 14px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
  }

  .nap-seller-settings-toggle,
  .nap-seller-settings-switch {
    gap: 10px;
    padding: 10px 11px;
  }

  .nap-seller-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nap-seller-settings-save,
  .nap-seller-settings-open {
    width: 100%;
    min-height: 48px;
  }

  .nap-seller-card {
    grid-template-columns: 46px minmax(0, 1fr) 36px;
    gap: 11px;
    padding: 12px;
    border-radius: 14px;
  }

  .nap-seller-card-avatar {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .nap-seller-card-name { font-size: 16px; }
  .nap-seller-card-count { font-size: 14px; }

  .nap-seller-card-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nap-seller-settings input[type="checkbox"],
  .nap-seller-settings input[type="checkbox"]::after,
  a.nap-seller-card {
    transition: none;
  }
}
