:root {
  --smarty-account-ink: #122230;
  --smarty-account-muted: #496274;
  --smarty-account-line: #c8d7e0;
  --smarty-account-panel: #ffffff;
  --smarty-account-soft: #eef5f7;
  --smarty-account-accent: #0b7a75;
  --smarty-account-accent-dark: #085f5b;
  --smarty-account-shadow: 0 24px 48px rgba(12, 26, 42, 0.12);
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) #left-column {
  display: none !important;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) #content-wrapper {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) #main .page-content.card,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) #main .page-content.card-block {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.page-authentication.page-customer-account #main .page-content.card.card-block,
.page-registration.page-customer-account #main .page-content.card.card-block {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .page-footer {
  margin-top: 28px;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--smarty-account-line);
  background: #fff;
  color: var(--smarty-account-ink);
  box-shadow: none;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn:hover,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn:focus-visible {
  color: var(--smarty-account-accent-dark);
  border-color: var(--smarty-account-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.16);
}

.smarty-account-shell,
.smarty-account-section,
.smarty-account-dashboard {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(11, 122, 117, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(11, 122, 117, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  box-shadow: var(--smarty-account-shadow);
}

.smarty-account-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
  align-items: stretch;
}

.smarty-account-auth__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px 12px 4px;
}

.smarty-account-auth__eyebrow,
.smarty-account-section__eyebrow,
.smarty-account-dashboard__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 122, 117, 0.1);
  color: var(--smarty-account-accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smarty-account-auth__intro h1,
.smarty-account-section__head h1,
.smarty-account-dashboard__hero h1 {
  margin: 16px 0 0;
  color: var(--smarty-account-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.smarty-account-auth__lead,
.smarty-account-section__head p,
.smarty-account-dashboard__hero p {
  margin: 16px 0 0;
  max-width: 40rem;
  color: var(--smarty-account-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.smarty-account-auth__list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.smarty-account-auth__list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  color: var(--smarty-account-ink);
  line-height: 1.6;
}

.smarty-account-auth__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--smarty-account-accent);
  box-shadow: 0 0 0 4px rgba(11, 122, 117, 0.14);
}

.smarty-account-auth__cta,
.smarty-account-auth__panel-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  color: var(--smarty-account-muted);
}

.smarty-account-auth__cta-link,
.smarty-account-auth__panel-note a,
.smarty-account-inline-link,
.smarty-account-dashboard__secondary a,
.smarty-order-history-table__actions a,
.smarty-order-card__actions a,
.smarty-address-action,
.forgot-password a {
  color: var(--smarty-account-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.smarty-account-auth__cta-link:hover,
.smarty-account-auth__panel-note a:hover,
.smarty-account-inline-link:hover,
.smarty-account-dashboard__secondary a:hover,
.smarty-order-history-table__actions a:hover,
.smarty-order-card__actions a:hover,
.smarty-address-action:hover,
.forgot-password a:hover {
  text-decoration: underline;
}

.smarty-account-auth__panel,
.smarty-address-page-form,
.smarty-address-inline-editor {
  padding: 24px;
  border: 1px solid rgba(18, 34, 48, 0.08);
  border-radius: 22px;
  background: var(--smarty-account-panel);
  box-shadow: 0 14px 32px rgba(12, 26, 42, 0.08);
}

.smarty-account-auth__panel-head h2 {
  margin: 0;
  color: var(--smarty-account-ink);
  font-size: 1.45rem;
  line-height: 1.2;
}

.smarty-account-auth__panel-head p {
  margin: 10px 0 0;
  color: var(--smarty-account-muted);
  line-height: 1.6;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-group.row {
  display: block;
  margin: 0 0 18px;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-label,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .js-input-column,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-comment {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--smarty-account-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-label--empty,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-comment {
  display: none;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-select,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .bootstrap-filestyle .form-control,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .bootstrap-filestyle label.btn {
  min-height: 50px;
  border: 1px solid var(--smarty-account-line);
  border-radius: 14px;
  box-shadow: none;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) textarea.form-control {
  min-height: 160px;
  padding-top: 14px;
  resize: vertical;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-select {
  padding: 0 15px;
  color: var(--smarty-account-ink);
  background: #fff;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control::placeholder {
  color: #6d8696;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control:focus,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-control-select:focus,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn:focus-visible,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .bootstrap-filestyle .form-control:focus,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .bootstrap-filestyle label.btn:focus-visible,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn:focus-visible,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .smarty-address-action:focus-visible {
  outline: 0;
  border-color: var(--smarty-account-accent);
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.16);
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .form-control {
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .input-group-btn {
  display: flex;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: var(--smarty-account-accent);
  color: #ffffff !important;
  font-weight: 700;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn:hover,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn:focus-visible {
  background: var(--smarty-account-accent-dark);
  color: #ffffff !important;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-group.has-error .form-control,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-group.has-error .form-control-select {
  border-color: #b42318;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .help-block {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.88rem;
  line-height: 1.5;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn.form-control-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--smarty-account-accent);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(11, 122, 117, 0.24);
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn span,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn i,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn .material-icons,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn span,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn i,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn .material-icons,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .smarty-address-action span,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .smarty-address-action i,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .smarty-address-action .material-icons,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn span,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn i,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .input-group .btn .material-icons {
  color: inherit !important;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn:hover,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn.form-control-submit:hover {
  background: var(--smarty-account-accent-dark);
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .custom-checkbox > span:first-of-type,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .custom-radio {
  flex: 0 0 auto;
  margin-top: 2px;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .custom-checkbox label,
:is(.page-customer-account, .page-history, .page-addresses, .page-address) .radio-inline {
  margin: 0;
  color: var(--smarty-account-ink);
  line-height: 1.6;
}

:is(.page-customer-account, .page-history, .page-addresses, .page-address) .forgot-password {
  margin-top: 14px;
}

.smarty-register-form__body {
  display: grid;
  gap: 18px;
}

.smarty-register-form__privacy {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--smarty-account-soft);
  color: var(--smarty-account-muted);
}

.smarty-register-form__privacy p {
  margin: 0;
  line-height: 1.6;
}

.smarty-account-dashboard__hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.smarty-account-dashboard__logout {
  flex: 0 0 auto;
}

.smarty-account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.smarty-account-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(18, 34, 48, 0.08);
  border-radius: 20px;
  background: #ffffff;
  color: var(--smarty-account-ink);
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(12, 26, 42, 0.06);
}

.smarty-account-card:hover,
.smarty-account-card:focus-visible {
  transform: translateY(-2px);
  color: var(--smarty-account-ink);
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(12, 26, 42, 0.1);
}

.smarty-account-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(11, 122, 117, 0.1);
  color: var(--smarty-account-accent-dark);
}

.smarty-account-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.smarty-account-card span:last-child {
  color: var(--smarty-account-muted);
  line-height: 1.6;
}

.smarty-account-dashboard__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 34, 48, 0.08);
}

.smarty-account-section__head {
  margin-bottom: 24px;
}

.smarty-order-history-table__wrap {
  overflow-x: auto;
}

.smarty-order-history-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.smarty-order-history-table thead th {
  border: 0;
  padding: 14px 16px;
  color: var(--smarty-account-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smarty-order-history-table tbody tr {
  background: #fff;
}

.smarty-order-history-table tbody th,
.smarty-order-history-table tbody td {
  padding: 18px 16px;
  border-top: 1px solid rgba(18, 34, 48, 0.08);
  vertical-align: middle;
}

.smarty-order-history-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.smarty-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--status-color, var(--smarty-account-accent));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.smarty-status-pill.light {
  color: #122230;
}

.smarty-account-muted {
  color: var(--smarty-account-muted);
}

.smarty-order-history-cards,
.smarty-address-grid {
  gap: 18px;
}

.smarty-order-card {
  padding: 20px;
  border: 1px solid rgba(18, 34, 48, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(12, 26, 42, 0.06);
}

.smarty-order-card + .smarty-order-card {
  margin-top: 14px;
}

.smarty-order-card__head {
  display: grid;
  gap: 12px;
}

.smarty-order-card__head h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--smarty-account-ink);
}

.smarty-order-card__meta {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.smarty-order-card__meta dt {
  color: var(--smarty-account-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smarty-order-card__meta dd {
  margin: 4px 0 0;
  color: var(--smarty-account-ink);
  line-height: 1.5;
}

.smarty-order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.smarty-order-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 122, 117, 0.18);
  background: #f8fcfc;
}

.smarty-address-card {
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(18, 34, 48, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(12, 26, 42, 0.06);
}

.smarty-address-card h4 {
  margin: 0 0 12px;
  color: var(--smarty-account-ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.smarty-address-card address {
  margin: 0;
  color: var(--smarty-account-muted);
  font-style: normal;
  line-height: 1.7;
}

.smarty-address-card .address-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.smarty-address-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 34, 48, 0.08);
  background: #f8fbfc;
  color: var(--smarty-account-accent-dark) !important;
}

.smarty-address-action:hover,
.smarty-address-action:focus,
.smarty-address-action:active,
.smarty-address-action:focus-visible {
  background: #eef5f7;
  color: var(--smarty-account-accent-dark) !important;
  text-decoration: none;
}

.smarty-address-action.is-open {
  background: var(--smarty-account-accent);
  border-color: var(--smarty-account-accent);
  color: #ffffff !important;
}

.smarty-address-inline-slot {
  margin-top: 18px;
}

.smarty-address-inline-editor__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.smarty-address-inline-editor__head p {
  margin: 0;
  color: var(--smarty-account-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smarty-address-inline-editor__head h3 {
  margin: 6px 0 0;
  color: var(--smarty-account-ink);
  font-size: 1.1rem;
}

.smarty-address-inline-editor__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(18, 34, 48, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--smarty-account-ink);
  font-size: 1.3rem;
  line-height: 1;
}

.smarty-account-empty-state {
  padding: 28px;
  border: 1px dashed rgba(11, 122, 117, 0.3);
  border-radius: 20px;
  background: rgba(11, 122, 117, 0.04);
}

.smarty-account-empty-state h2 {
  margin: 0;
  color: var(--smarty-account-ink);
  font-size: 1.4rem;
  line-height: 1.2;
}

.smarty-account-empty-state p {
  margin: 12px 0 0;
  color: var(--smarty-account-muted);
  line-height: 1.7;
}

.smarty-account-empty-state .tvall-inner-btn {
  margin-top: 18px;
}

@media (max-width: 991px) {
  .smarty-account-auth,
  .smarty-account-dashboard__hero,
  .smarty-account-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .smarty-account-dashboard__hero {
    align-items: start;
  }
}

@media (max-width: 767px) {
  .smarty-account-shell,
  .smarty-account-section,
  .smarty-account-dashboard {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .smarty-account-auth__panel,
  .smarty-address-page-form,
  .smarty-address-inline-editor {
    padding: 18px;
    border-radius: 18px;
  }

  .smarty-account-auth__lead,
  .smarty-account-section__head p,
  .smarty-account-dashboard__hero p,
  .smarty-account-card span:last-child,
  .smarty-register-form__privacy p,
  .smarty-account-empty-state p {
    font-size: 0.96rem;
  }

  :is(.page-customer-account, .page-history, .page-addresses, .page-address) .form-footer {
    justify-content: stretch;
  }

  :is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn,
  :is(.page-customer-account, .page-history, .page-addresses, .page-address) .tvall-inner-btn.form-control-submit,
  :is(.page-customer-account, .page-history, .page-addresses, .page-address) .account-link.tvall-inner-btn {
    width: 100%;
  }

  .smarty-account-dashboard__secondary,
  .smarty-order-card__actions,
  .smarty-address-card .address-footer {
    flex-direction: column;
  }

  .smarty-order-card__actions a,
  .smarty-address-action {
    width: 100%;
    justify-content: center;
  }

  .page-authentication #smartychat-root,
  .page-registration #smartychat-root,
  .page-history #smartychat-root,
  .page-addresses #smartychat-root,
  .page-address #smartychat-root {
    display: none !important;
  }
}
