/* =========================
   Account / Login / Register
   Samostatný súbor pre prihlásenie, registráciu a zákaznícky účet
========================= */

.account-page {
  background: linear-gradient(180deg, #fff 0%, #fcfaf9 100%);
}

.account-page--auth {
  min-height: 520px;
}

.account-auth,
.auth-page {
  padding-top: 42px;
  padding-bottom: 58px;
}

.account-auth__layout,
.auth-layout {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.86fr;
  gap: 28px;
  align-items: stretch;
}

.account-card,
.auth-card,
.account-side__box,
.auth-side__box {
  position: relative;
  background: #fff;
  border: 1px solid #efe5da;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 12px 30px rgba(47, 39, 34, 0.055);
  overflow: hidden;
}


.account-card h1,
.auth-card h1 {
  margin: 6px 0 12px;
  font-size: 32px;
  line-height: 1.12;
  color: #2a2320;
}

.account-card__lead,
.auth-card__lead {
  margin: 0 0 26px;
  max-width: 560px;
  color: #645950;
  font-size: 17px;
  line-height: 1.7;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-field,
.auth-card .form-field {
  gap: 8px;
}

.account-field label,
.auth-card .form-field label {
  color: #574d46;
  font-size: 14px;
  font-weight: 700;
}

.account-address-form-grid {
  display: grid;
  gap: 22px;
}

.account-address-form-card {
  padding: 22px;
  border: 1px solid #efe5da;
  border-radius: 20px;
  background: #fffdfb;
}

.account-address-form-card h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.account-checkbox--standalone {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 0;
  color: #5d534c;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.account-checkbox--standalone input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.account-address-form-card .account-checkbox--standalone {
  margin-top: 24px;
}

.account-company-fields,
.account-delivery-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #efe5da;
}


.account-field input,
.account-field textarea,
.account-field select,
.auth-card .form-field input,
.auth-card .form-field textarea,
.auth-card .form-field select,
.account-content-card .form-field input,
.account-content-card .form-field textarea,
.account-content-card .form-field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #e7ddd2;
  border-radius: 14px;
  padding: 0 15px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  outline: 0;
  box-shadow: 0 4px 12px rgba(47, 39, 34, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-text-fill-color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

.account-field textarea,
.auth-card .form-field textarea,
.account-content-card .form-field textarea {
  min-height: 120px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.account-field input::placeholder,
.account-field textarea::placeholder,
.auth-card .form-field input::placeholder,
.auth-card .form-field textarea::placeholder,
.account-content-card .form-field input::placeholder,
.account-content-card .form-field textarea::placeholder {
  color: #b8afa7;
  -webkit-text-fill-color: #b8afa7;
  opacity: 1;
}

.account-field input:focus,
.account-field textarea:focus,
.account-field select:focus,
.auth-card .form-field input:focus,
.auth-card .form-field textarea:focus,
.auth-card .form-field select:focus,
.account-content-card .form-field input:focus,
.account-content-card .form-field textarea:focus,
.account-content-card .form-field select:focus {
  border-color: #d8cab9;
  box-shadow: 0 0 0 4px rgba(181, 138, 84, 0.10);
  background: #fffdfb;
}

.phone-field {
  display: flex;
  gap: 10px;
  width: 100%;
}

.phone-field input {
  flex: 1;
  min-width: 0;
}

.account-content-card .form-field input.is-error,
.account-content-card .form-field textarea.is-error,
.account-content-card .form-field select.is-error {
  border-color: #b94a48 !important;
  box-shadow: inset 0 0 0 1px #b94a48 !important;
}

.account-content-card .form-field .phone-field select.is-error {
  border-color: #b94a48 !important;
  box-shadow: inset 0 0 0 1px #b94a48 !important;

  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 14px 14px !important;
}

.account-card__meta,
.auth-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 24px;
}

.account-checkbox,
.auth-card__meta .checkbox-line {
  margin-top: 0;
}

.account-checkbox input,
.auth-card__meta .checkbox-line input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.account-card__button,
.auth-card__button,
.account-side__button,
.auth-side__box .btn {
  width: 100%;
}

.account-password-rules {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.account-password-rules li {
  position: relative;
  padding-left: 19px;
  color: #9a9087;
  font-size: 13px;
  line-height: 1.45;
}

.account-password-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfc7bf;
}

.account-password-rules li.is-ok {
  color: #2f7a46;
}

.account-password-rules li.is-ok::before {
  background: #2f7a46;
}

.account-password-rules li.is-error {
  color: #b94a48;
}

.account-password-rules li.is-error::before {
  background: #b94a48;
}

.account-side,
.auth-side {
  min-width: 0;
}

.account-side__box,
.auth-side__box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(217, 107, 151, 0.10) 0%, rgba(217, 107, 151, 0) 34%),
    linear-gradient(180deg, #fff 0%, #fcfaf9 100%);
}

.account-side__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.account-side__box h2,
.auth-side__box h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  line-height: 1.12;
  color: #2a2320;
}

.account-side__box p,
.auth-side__box p {
  margin: 0;
  color: #645950;
  font-size: 17px;
  line-height: 1.7;
}

.account-benefits {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.account-benefits li {
  position: relative;
  padding-left: 28px;
  color: #5d534c;
  font-size: 15px;
  line-height: 1.45;
}

.account-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbe7ef;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.account-side__button,
.auth-side__box .btn {
  margin-top: auto;
}

.account-message {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.account-message--error {
  background: #fff4f4;
  border: 1px solid #efcaca;
  color: #a14a4a;
}

.account-message--success {
  background: #f4fbf5;
  border: 1px solid #cfe7d2;
  color: #2f7a46;
}

.account-page .btn-secondary,
.auth-page .btn-secondary {
  background: #fff;
  color: #2f2722;
  border: 1px solid #e7ddd2;
}

.account-page .btn-secondary:hover,
.auth-page .btn-secondary:hover {
  background: #fcfaf9;
  border-color: #d8cab9;
}

/* =========================
   Registration
========================= */

.account-card--register {
  grid-column: 1 / -1;
}

.account-register__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-register__grid .form-field--full {
  grid-column: 1 / -1;
}

/* =========================
   Logged account area
========================= */

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 42px 0 58px;
}

.account-sidebar,
.account-content-card,
.account-mini-card {
  background: #fff;
  border: 1px solid #efe5da;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(47, 39, 34, 0.045);
}

.account-sidebar {
  padding: 16px;
}

.account-menu {
  display: grid;
  gap: 6px;
}

.account-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #5d534c;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.account-menu a:hover,
.account-menu a.is-active {
  background: #fcfaf9;
  color: #2f2722;
}

.account-menu a.is-active {
  border: 1px solid #eadfd2;
}

.account-content {
  min-width: 0;
}

.account-content-card {
  padding: 28px;
}

.account-content-card h1,
.account-content-card h2 {
  margin: 0 0 16px;
  font-family: 'Playfair Display', serif;
  color: #2a2320;
  line-height: 1.15;
}

.account-content-card h1 {
  font-size: 32px;
}

.account-content-card h2 {
  font-size: 26px;
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.account-mini-card {
  padding: 22px;
}

.account-mini-card strong {
  display: block;
  margin-bottom: 8px;
  color: #2a2320;
  font-size: 18px;
}

.account-mini-card span {
  color: #6a5d53;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================
   Account rewards / loyalty points
========================= */

.account-rewards-card {
  position: relative;
  margin-top: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 107, 151, 0.12) 0%, rgba(217, 107, 151, 0) 36%),
    linear-gradient(180deg, #fff 0%, #fcfaf9 100%);
  border: 1px solid #efe5da;
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(47, 39, 34, 0.045);
  overflow: hidden;
}

.account-rewards-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
}

.account-rewards-card__main {
  min-width: 0;
}

.account-rewards-card__points {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 8px;
}

.account-rewards-card__points strong {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1;
  font-weight: 800;
  color: #2a2320;
}

.account-rewards-card__points span {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
}

.account-rewards-card p {
  margin: 0;
  max-width: 560px;
  color: #645950;
  font-size: 16px;
  line-height: 1.65;
}

.account-rewards-card__side {
  min-height: 112px;
  padding: 20px;
  border: 1px solid #eadfd2;
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(47, 39, 34, 0.04);
}

.account-rewards-card__side span {
  margin-bottom: 6px;
  color: #8b8178;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.account-rewards-card__side strong {
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

/* =========================
   Order note and earned points
========================= */

.account-order-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 18px;
}

.account-order-note,
.account-order-points {
  min-width: 0;
  padding: 18px;
  border: 1px solid #eadfd2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 39, 34, 0.035);
}

.account-order-note span,
.account-order-points span {
  display: block;
  margin-bottom: 8px;
  color: #8b8178;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.account-order-note p,
.account-order-points p {
  margin: 0;
  color: #5f554e;
  font-size: 15px;
  line-height: 1.6;
}

.account-order-note--empty p {
  color: #9a9087;
  font-style: italic;
}

.account-order-points {
  background:
    radial-gradient(circle at top right, rgba(217, 107, 151, 0.09) 0%, rgba(217, 107, 151, 0) 42%),
    #fff;
}

.account-order-points strong {
  display: block;
  margin-bottom: 6px;
  color: #2a2320;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
}

.account-order-points p {
  color: #7a7068;
  font-size: 14px;
}


/* =========================
   Responsive
========================= */

@media (hover: hover) and (pointer: fine) {
  .account-card:hover,
  .auth-card:hover,
  .account-side__box:hover,
  .auth-side__box:hover,
  .account-content-card:hover,
  .account-mini-card:hover {
    box-shadow: 0 16px 36px rgba(47, 39, 34, 0.075);
  }
}

@media (max-width: 980px) {
  .account-auth__layout,
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    padding: 12px;
  }

  .account-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-rewards-card {
    padding: 22px 18px;
  }

  .account-rewards-card__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account-rewards-card__side {
    min-height: auto;
  }

  .account-rewards-card__points {
    flex-wrap: wrap;
  }
  
  .account-order-info-grid {
    grid-template-columns: 1fr;
  }

  .account-order-points strong {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .account-auth,
  .auth-page {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  .account-card,
  .auth-card,
  .account-side__box,
  .auth-side__box,
  .account-content-card {
    border-radius: 20px;
    padding: 24px 18px;
  }

  .account-card h1,
  .auth-card h1,
  .account-content-card h1 {
    font-size: 28px;
  }

  .account-side__box h2,
  .auth-side__box h2 {
    font-size: 26px;
  }

  .account-card__lead,
  .auth-card__lead,
  .account-side__box p,
  .auth-side__box p {
    font-size: 16px;
    line-height: 1.65;
  }

  .account-card__meta,
  .auth-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  
  .account-address-form-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .account-address-form-card h2 {
    font-size: 22px;
  }

  .account-field input,
  .account-field textarea,
  .account-field select,
  .auth-card .form-field input,
  .auth-card .form-field textarea,
  .auth-card .form-field select,
  .account-content-card .form-field input,
  .account-content-card .form-field textarea,
  .account-content-card .form-field select {
    min-height: 50px;
    font-size: 16px;
  }
  
  .phone-field {
    gap: 8px;
  }

  .phone-field select {
    flex-basis: 105px;
    width: 105px;
    font-size: 14px;
    padding-left: 9px;
    padding-right: 28px;
    background-position: right 9px center;
  }

  .account-register__grid {
    grid-template-columns: 1fr;
  }

  .account-menu {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Account shared layout extensions
========================= */

.account-sidebar__title {
  margin: 0 0 14px;
  padding: 0 12px 12px;
  border-bottom: 1px solid #f0e7dd;
  color: #2a2320;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.15;
}

.account-menu__link {
  gap: 12px;
}

.account-menu__icon {
  color: #b8afa7;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.account-menu a.is-active .account-menu__icon,
.account-menu a:hover .account-menu__icon {
  color: var(--gold);
}

.account-content-card--intro {
  margin-bottom: 24px;
}

.account-page-lead {
  margin: 0 0 22px;
  max-width: 720px;
  color: #645950;
  font-size: 17px;
  line-height: 1.7;
}

.account-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.account-section-card {
  margin-top: 24px;
}

.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.account-section-head--top {
  align-items: flex-start;
  margin-bottom: 26px;
}

.account-section-head h1,
.account-section-head h2 {
  margin-bottom: 0;
}

.account-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.account-actions-row .btn,
.account-form-actions .btn {
  width: auto;
  min-width: 180px;
}

.account-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.account-mini-card {
  position: relative;
  display: block;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.account-mini-card--link:hover {
  transform: translateY(-2px);
  border-color: #eadfd2;
  box-shadow: 0 14px 30px rgba(47, 39, 34, 0.07);
}

.account-mini-card__icon {
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid #eadfd2;
  background: #fcfaf9;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.account-order-summary,
.account-detail-grid,
.account-address-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.account-order-summary > div,
.account-detail-box,
.account-address-card {
  border: 1px solid #efe5da;
  border-radius: 18px;
  background: #fffdfb;
  padding: 18px;
}

.account-order-summary span,
.account-detail-box span {
  display: block;
  margin-bottom: 6px;
  color: #8d8278;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-order-summary strong,
.account-detail-box strong {
  color: #2a2320;
  font-size: 17px;
}

.account-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.account-detail-box p {
  margin: 8px 0 0;
  color: #6a5d53;
  font-size: 15px;
  line-height: 1.55;
}

.account-company-info {
  display: grid;
  gap: 5px;
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid #efe5da;
}

.account-company-info span {
  display: block;
  color: #6a5d53;
  font-size: 14px;
  line-height: 1.45;
}

.account-company-info strong {
  color: #2a2320;
  font-weight: 700;
}

/* =========================
   Account order payment QR
========================= */

.account-detail-box--payment {
  grid-column: auto;
}

.account-payment-actions {
  margin-top: 16px;
}

.account-payment-actions .btn {
  width: 100%;
}

.account-payment-divider {
  position: relative;
  margin: 22px 0 18px;
  text-align: center;
}

.account-payment-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #eadfd2;
}

.account-payment-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: #8b8178;
  font-size: 13px;
  font-weight: 700;
}

.account-payment-qr {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #eadfd2;
  border-radius: 18px;
  background: #fff;
}

.account-payment-qr__image {
  width: 128px;
  height: 128px;
  padding: 8px;
  border: 1px solid #eee6de;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(47, 39, 34, 0.045);
}

.account-payment-qr__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-payment-qr__info,
.account-bank-details {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.account-bank-details {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #eadfd2;
  border-radius: 18px;
  background: #fff;
}

.account-payment-qr__info div,
.account-bank-details div {
  min-width: 0;
}

.account-payment-qr__info span,
.account-bank-details span {
  display: block;
  margin-bottom: 2px;
  color: #8b8178;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-payment-qr__info strong,
.account-bank-details strong {
  display: block;
  color: #2a2320;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.account-status--new {
  background: #eef4ff;
  border-color: #d8e5ff;
  color: #4168a8;
}

.account-status--preparing {
  background: #f8f2e9;
  border-color: #eadbc6;
  color: #9b7647;
}

.account-status--waiting {
  background: #fff3e8;
  border-color: #f4dcc3;
  color: #b96e2e;
}

.account-status--shipped {
  background: #edf8f0;
  border-color: #d3e9d8;
  color: #2f7a46;
}

.account-status--cancelled {
  background: #fff1f1;
  border-color: #efcaca;
  color: #b34b4b;
}

.account-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.account-table th,
.account-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0e7dd;
  text-align: left;
  vertical-align: middle;
  color: #5d534c;
  font-size: 15px;
}

.account-table th {
  color: #8d8278;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.account-table td strong {
  color: #2a2320;
}

.account-table__action {
  text-align: right !important;
}

.account-products {
  margin-top: 10px;
}

.account-products h2 {
  margin-bottom: 18px;
}

.account-product-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #f0e7dd;
}

.account-product-row__image {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background-color: #faf7f5;
  background-size: cover;
  background-position: center;
}

.account-product-row__content strong {
  display: block;
  margin-bottom: 4px;
  color: #2a2320;
  font-size: 17px;
}

.account-product-row__content span,
.account-product-row__content p {
  color: #6a5d53;
  font-size: 14px;
  line-height: 1.5;
}

.account-product-row__content p {
  margin: 8px 0 0;
}

.account-product-row__price {
  color: #2a2320;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.account-total-box {
  width: min(360px, 100%);
  margin-left: auto;
  margin-top: 22px;
  border: 1px solid #efe5da;
  border-radius: 18px;
  background: #fffdfb;
  padding: 16px;
}

.account-total-box > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  color: #6a5d53;
  font-size: 15px;
}

.account-total-box strong {
  color: #2a2320;
}

.account-total-box__final {
  margin-top: 6px;
  padding-top: 14px !important;
  border-top: 1px solid #eadfd2;
  color: #2a2320 !important;
  font-size: 18px !important;
  font-weight: 700;
}

.account-form--wide {
  max-width: 820px;
}

.account-form--narrow {
  max-width: 520px;
}

.account-form--compact {
  gap: 14px;
}

.account-form-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-field input[readonly] {
  background: #faf7f5;
  color: #847970;
  cursor: not-allowed;
}

.account-address-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.account-address-card h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.account-address-copy {
  margin: 0 0 2px;
}

/* =========================
   Password field toggle
========================= */

.account-password {
  position: relative;
}

.account-password input {
  padding-right: 52px;
}

.account-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8b8178;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.account-password__toggle:hover {
  background: #fcfaf9;
  color: #2f2722;
}

.account-password__toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(181, 138, 84, 0.16);
}

.account-password__icon {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.account-password__icon--hide {
  display: none;
}

.account-password.is-visible .account-password__icon--show {
  display: none;
}

.account-password.is-visible .account-password__icon--hide {
  display: block;
}

@media (hover: none) {
  .account-password__toggle:hover {
    background: transparent;
    color: #8b8178;
  }
}

@media (max-width: 1100px) {
  .account-order-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .account-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-dashboard-grid,
  .account-address-grid,
  .account-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-table {
    min-width: 0;
  }

  .account-table thead {
    display: none;
  }

  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }

  .account-table tr {
    padding: 14px 0;
    border-bottom: 1px solid #f0e7dd;
  }

  .account-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .account-table td::before {
    content: attr(data-label);
    color: #8d8278;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .account-table__action {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .account-table__action::before {
    display: none;
  }

  .account-product-row {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
  }

  .account-product-row__image {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .account-product-row__price {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .account-page-lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .account-order-summary {
    grid-template-columns: 1fr;
  }

  .account-actions-row .btn,
  .account-form-actions .btn {
    width: 100%;
  }

  .account-total-box {
    width: 100%;
  }
  
  .account-payment-qr {
    grid-template-columns: 1fr;
  }

  .account-payment-qr__image {
    width: 150px;
    height: 150px;
  }
  
  .account-content-card .form-field .phone-field {
    gap: 8px;
  }

  .account-content-card .form-field .phone-field select {
    flex-basis: 105px;
    width: 105px;
    font-size: 14px;
    padding-left: 9px;
    padding-right: 30px;
    background-position: right 10px center;
  }
}


.account-content-card .form-field .phone-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  flex: 0 0 120px;
  width: 120px;
  min-height: 50px;

  border: 1px solid #e7ddd2;
  border-radius: 14px;

  padding: 0 36px 0 12px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;

  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px 14px;
}

.account-content-card .form-field .phone-field select:focus {
  background-color: #fffdfb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px 14px;
}

.account-content-card .form-field select.account-select-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 42px;

  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

.account-content-card .form-field select.account-select-arrow.is-error {
  border-color: #b94a48 !important;
  box-shadow: inset 0 0 0 1px #b94a48 !important;

  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 14px 14px !important;
}


/* =========================
   Register form fixes
========================= */

.account-card .phone-field {
  display: flex;
  gap: 10px;
  width: 100%;
}

.account-card .phone-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  flex: 0 0 120px;
  width: 120px;
  min-height: 50px;

  border: 1px solid #e7ddd2;
  border-radius: 14px;

  padding: 0 36px 0 12px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;

  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a6f67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 14px 14px;
}

.account-card .phone-field input {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* Checkbox v registrácii */
.account-card .account-checkbox--terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
  cursor: pointer;
}

.account-card .account-checkbox--terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;

  margin: 2px 0 0;
  padding: 0;

  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;

  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: var(--accent);
}

.account-card .account-checkbox--terms span {
  color: #5d534c;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

/* Error border aj pre registráciu */
.account-card .form-field input.is-error,
.account-card .form-field textarea.is-error,
.account-card .form-field select.is-error {
  border-color: #b94a48 !important;
  box-shadow: inset 0 0 0 1px #b94a48 !important;
}

/* Telefón na mobile */
@media (max-width: 640px) {
  .account-card .phone-field {
    gap: 8px;
  }

  .account-card .phone-field select {
    flex-basis: 105px;
    width: 105px;
    font-size: 14px;
    padding-left: 9px;
    padding-right: 30px;
    background-position: right 10px center;
  }
}

.account-form-consent {
  margin: 14px 0 0;
  color: #7a7068;
  font-size: 13px;
  line-height: 1.55;
}

.account-form-consent a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.account-register__button {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 34px !important;
  align-items: center;
  justify-content: center;
}

.account-hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
