/* Smartspitze customer account pages */

.customer-account-login,
.customer-account-create,
.customer-account-forgotpassword,
.customer-account-createpassword,
.account {
  --ss-brand: #0f3d91;
  --ss-brand-hover: #2f8cff;
  --ss-accent: #ffd200;
  --ss-border: #e3e8f1;
  --ss-soft: #f7f9fc;
  --ss-text: #202a36;
  --ss-muted: #4b5563;
}

.customer-account-login .page-main,
.customer-account-create .page-main,
.customer-account-forgotpassword .page-main,
.customer-account-createpassword .page-main,
.account .page-main {
  max-width: 1220px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.customer-account-login .page-title-wrapper,
.customer-account-create .page-title-wrapper,
.customer-account-forgotpassword .page-title-wrapper,
.customer-account-createpassword .page-title-wrapper,
.account .page-title-wrapper {
  margin: 0 0 18px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--ss-border);
  border-top: 4px solid var(--ss-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 48, 91, .07);
}

.customer-account-login .page-title,
.customer-account-create .page-title,
.customer-account-forgotpassword .page-title,
.customer-account-createpassword .page-title,
.account .page-title {
  margin: 0 !important;
  color: var(--ss-text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.customer-account-login .login-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  margin: 0 0 30px !important;
}

.customer-account-login .login-container:before,
.customer-account-login .login-container:after {
  content: none !important;
  display: none !important;
}

.customer-account-login .login-container .block,
.customer-account-create .form-create-account,
.customer-account-forgotpassword .form.password.forget,
.customer-account-createpassword .form.password.reset {
  min-width: 0;
  border: 1px solid var(--ss-border);
  border-top: 4px solid var(--ss-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 48, 91, .07);
}

.customer-account-login .login-container .block {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  padding: 24px !important;
  box-sizing: border-box;
}

.customer-account-login .login-container .block-new-customer {
  border-top-color: var(--ss-brand);
}

.customer-account-login .login-container .block-title,
.customer-account-create .fieldset .legend,
.customer-account-forgotpassword .fieldset .legend,
.customer-account-createpassword .fieldset .legend,
.account .block .block-title,
.account .block-title {
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #edf1f7;
}

.customer-account-login .login-container .block-title strong,
.customer-account-create .fieldset .legend span,
.customer-account-forgotpassword .fieldset .legend span,
.customer-account-createpassword .fieldset .legend span,
.account .block .block-title strong,
.account .block-title strong {
  color: var(--ss-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.customer-account-login .login-container .block-content,
.customer-account-create .form-create-account,
.customer-account-forgotpassword .form.password.forget,
.customer-account-createpassword .form.password.reset,
.account .box-content {
  color: var(--ss-muted);
  font-size: 14px;
  line-height: 1.6;
}

.customer-account-create .form-create-account,
.customer-account-forgotpassword .form.password.forget,
.customer-account-createpassword .form.password.reset {
  max-width: 900px;
  margin: 0 auto 30px !important;
  padding: 24px !important;
}

.customer-account-create .form-create-account {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  align-items: start;
}

.customer-account-create .form-create-account:before,
.customer-account-create .form-create-account:after {
  content: none !important;
  display: none !important;
}

.customer-account-create .form-create-account .fieldset,
.customer-account-forgotpassword .form.password.forget .fieldset,
.customer-account-createpassword .form.password.reset .fieldset,
.customer-account-login .login-container .fieldset {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
}

.customer-account-create .form-create-account .fieldset + .fieldset {
  margin-top: 10px !important;
  padding-top: 18px !important;
  border-top: 1px solid #edf1f7 !important;
}

.customer-account-create .form-create-account .fieldset {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
}

.customer-account-create .form-create-account .fieldset.additional_info,
.customer-account-create .form-create-account .actions-toolbar {
  grid-column: 1 / -1;
}

.customer-account-create .fieldset.create.info,
.customer-account-create .fieldset.create.account {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  align-items: start;
}

.customer-account-create .fieldset.create.info > br,
.customer-account-create .fieldset.create.account > br {
  display: none !important;
}

.customer-account-create .fieldset.create.info .legend,
.customer-account-create .fieldset.create.account .legend,
.customer-account-create .fieldset.create.info .field.choice,
.customer-account-create .fieldset.create.account .field.choice,
.customer-account-create .fieldset.create.info .field.choice.newsletter {
  grid-column: 1 / -1;
}

.customer-account-create .fieldset.create.account > .field.required:not(.password):not(.confirmation) {
  grid-column: 1 / -1;
}

.customer-account-create .field:not(.choice),
.customer-account-login .field:not(.choice),
.customer-account-forgotpassword .field:not(.choice),
.customer-account-createpassword .field:not(.choice),
.account .form .field:not(.choice) {
  margin: 0 0 14px !important;
}

.customer-account-create .form-create-account .field,
.customer-account-create .form-create-account .control {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  box-sizing: border-box;
}

.customer-account-create .form-create-account .field:not(.choice) > .control {
  width: 100% !important;
}

.customer-account-create .field:not(.choice) > .label,
.customer-account-login .field:not(.choice) > .label,
.customer-account-forgotpassword .field:not(.choice) > .label,
.customer-account-createpassword .field:not(.choice) > .label,
.account .form .field:not(.choice) > .label {
  display: block !important;
  margin: 0 0 6px !important;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.customer-account-create input[type="text"],
.customer-account-create input[type="email"],
.customer-account-create input[type="password"],
.customer-account-login .login-container input[type="email"],
.customer-account-login .login-container input[type="password"],
.customer-account-forgotpassword input[type="email"],
.customer-account-createpassword input[type="password"],
.account .form input[type="text"],
.account .form input[type="email"],
.account .form input[type="password"],
.account .form input[type="tel"],
.account .form select,
.account .form textarea {
  width: 100% !important;
  min-height: 44px;
  padding: 0 13px !important;
  border: 1px solid #d8e1ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ss-text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none !important;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.account .form textarea {
  min-height: 110px;
  padding-top: 12px !important;
}

.customer-account-create input:focus,
.customer-account-login .login-container input:focus,
.customer-account-forgotpassword input:focus,
.customer-account-createpassword input:focus,
.account .form input:focus,
.account .form select:focus,
.account .form textarea:focus {
  border-color: rgba(13, 67, 150, .45) !important;
  box-shadow: 0 0 0 3px rgba(13, 67, 150, .12) !important;
  outline: 0;
}

.customer-account-create .field.choice,
.customer-account-login .field.choice,
.account .field.choice {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 !important;
  color: var(--ss-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.customer-account-create .field.choice input,
.customer-account-login .field.choice input,
.account .field.choice input {
  flex: 0 0 auto;
  margin: 3px 0 0 !important;
}

.customer-account-login .actions-toolbar,
.customer-account-create .actions-toolbar,
.customer-account-forgotpassword .actions-toolbar,
.customer-account-createpassword .actions-toolbar,
.account .actions-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px !important;
}

.customer-account-login .actions-toolbar .primary,
.customer-account-create .actions-toolbar .primary,
.customer-account-forgotpassword .actions-toolbar .primary,
.customer-account-createpassword .actions-toolbar .primary,
.account .actions-toolbar .primary,
.customer-account-login .actions-toolbar .secondary,
.customer-account-create .actions-toolbar .secondary,
.customer-account-forgotpassword .actions-toolbar .secondary,
.customer-account-createpassword .actions-toolbar .secondary,
.account .actions-toolbar .secondary {
  float: none !important;
  margin: 0 !important;
}

.customer-account-login .action.primary,
.customer-account-create .action.primary,
.customer-account-forgotpassword .action.primary,
.customer-account-createpassword .action.primary,
.account .action.primary,
.customer-account-login .login-container .action.create {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px !important;
  border: 1px solid var(--ss-brand) !important;
  border-radius: 999px !important;
  background: var(--ss-brand) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.customer-account-login .action.primary:hover,
.customer-account-create .action.primary:hover,
.customer-account-forgotpassword .action.primary:hover,
.customer-account-createpassword .action.primary:hover,
.account .action.primary:hover,
.customer-account-login .login-container .action.create:hover,
.customer-account-login .action.primary:focus,
.customer-account-create .action.primary:focus,
.customer-account-forgotpassword .action.primary:focus,
.customer-account-createpassword .action.primary:focus,
.account .action.primary:focus,
.customer-account-login .login-container .action.create:focus {
  border-color: var(--ss-brand-hover) !important;
  background: var(--ss-brand-hover) !important;
  color: #fff !important;
}

.customer-account-login .actions-toolbar .secondary a,
.customer-account-create .actions-toolbar .secondary a,
.customer-account-forgotpassword .actions-toolbar .secondary a,
.customer-account-createpassword .actions-toolbar .secondary a,
.account .actions-toolbar .secondary a,
.account a.action:not(.primary) {
  color: var(--ss-brand) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.customer-account-create .password-strength-meter,
.customer-account-createpassword .password-strength-meter {
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  background: var(--ss-soft);
  color: var(--ss-muted);
  font-size: 12px;
  font-weight: 800;
}

.account .alocolumns,
.account .columns {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  margin: 0 !important;
}

.account .sidebar-main,
.account .sidebar-additional,
.account .column.main {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  padding: 0 !important;
}

.account .sidebar-additional {
  display: none !important;
}

.account .block-collapsible-nav {
  margin: 0 !important;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 48, 91, .07);
  overflow: hidden;
}

.account .block-collapsible-nav-title {
  display: none;
}

.account .block-collapsible-nav .content {
  display: block !important;
  padding: 10px;
}

.account .block-collapsible-nav .items,
.account .block-collapsible-nav .nav {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.account .block-collapsible-nav .item {
  margin: 0 !important;
}

.account .block-collapsible-nav .item a,
.account .block-collapsible-nav .item strong {
  display: flex !important;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px !important;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #425166 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none !important;
}

.account .block-collapsible-nav .item.current strong,
.account .block-collapsible-nav .item.current a,
.account .block-collapsible-nav .item a:hover,
.account .block-collapsible-nav .item a:focus {
  border-color: rgba(13, 67, 150, .18);
  background: #eef4ff;
  color: var(--ss-brand) !important;
}

.account .column.main > .block,
.account .block-dashboard-info,
.account .block-dashboard-addresses,
.account .block-addresses-default,
.account .block-addresses-list,
.account .form-address-edit,
.account .form-edit-account,
.account .form-newsletter-manage,
.account .table-wrapper {
  margin: 0 0 18px !important;
  padding: 20px !important;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 48, 91, .07);
}

.account .box {
  padding: 15px;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  background: #f8fafc;
}

.account .box-title {
  display: block;
  margin: 0 0 8px;
  color: var(--ss-text);
  font-size: 15px;
  font-weight: 800;
}

.account .table-wrapper {
  overflow-x: auto;
}

.account table.data.table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
}

.account table.data.table th,
.account table.data.table td {
  padding: 13px 14px !important;
  border-bottom: 1px solid #edf1f7 !important;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.account table.data.table th {
  background: var(--ss-soft);
  color: var(--ss-text);
  font-weight: 800;
}

.account table.data.table tr:last-child td {
  border-bottom: 0 !important;
}

.account .smartspitze-account-documents__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account .smartspitze-account-documents__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--ss-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ss-text) !important;
  text-decoration: none !important;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.account .smartspitze-account-documents__item:hover,
.account .smartspitze-account-documents__item:focus {
  border-color: rgba(13, 67, 150, .22);
  background: #eef4ff;
  color: var(--ss-text) !important;
  transform: translateY(-1px);
}

.account .smartspitze-account-documents__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--ss-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.account .smartspitze-account-documents__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.account .smartspitze-account-documents__text strong {
  color: var(--ss-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.account .smartspitze-account-documents__text span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.account .smartspitze-invoice-download {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px !important;
  border: 1px solid var(--ss-brand) !important;
  border-radius: 8px;
  background: var(--ss-brand) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.account .smartspitze-invoice-download:hover,
.account .smartspitze-invoice-download:focus {
  border-color: var(--ss-brand-hover) !important;
  background: var(--ss-brand-hover) !important;
  color: #fff !important;
}

.account .smartspitze-invoice-empty {
  display: inline-flex;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.account .smartspitze-orders-history .col.invoice {
  min-width: 150px;
}

@media (max-width: 991px) {
  .customer-account-login .login-container,
  .account .alocolumns,
  .account .columns {
    grid-template-columns: 1fr;
  }

  .account .sidebar-main {
    order: -1;
  }

  .account .block-collapsible-nav .content {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .account .block-collapsible-nav .items,
  .account .block-collapsible-nav .nav {
    display: contents;
  }
}

@media (max-width: 767px) {
  .customer-account-login .page-title-wrapper,
  .customer-account-create .page-title-wrapper,
  .customer-account-forgotpassword .page-title-wrapper,
  .customer-account-createpassword .page-title-wrapper,
  .account .page-title-wrapper,
  .customer-account-login .login-container .block,
  .customer-account-create .form-create-account,
  .customer-account-forgotpassword .form.password.forget,
  .customer-account-createpassword .form.password.reset,
  .account .column.main > .block,
  .account .block-dashboard-info,
  .account .block-dashboard-addresses,
  .account .block-addresses-default,
  .account .block-addresses-list,
  .account .form-address-edit,
  .account .form-edit-account,
  .account .form-newsletter-manage,
  .account .table-wrapper {
    padding: 16px !important;
  }

  .customer-account-login .page-title,
  .customer-account-create .page-title,
  .customer-account-forgotpassword .page-title,
  .customer-account-createpassword .page-title,
  .account .page-title {
    font-size: 22px;
  }

  .customer-account-create .fieldset.create.info,
  .customer-account-create .fieldset.create.account {
    grid-template-columns: 1fr;
  }

  .customer-account-login .actions-toolbar,
  .customer-account-create .actions-toolbar,
  .customer-account-forgotpassword .actions-toolbar,
  .customer-account-createpassword .actions-toolbar,
  .account .actions-toolbar {
    align-items: stretch;
  }

  .customer-account-login .actions-toolbar .primary,
  .customer-account-create .actions-toolbar .primary,
  .customer-account-forgotpassword .actions-toolbar .primary,
  .customer-account-createpassword .actions-toolbar .primary,
  .account .actions-toolbar .primary,
  .customer-account-login .action.primary,
  .customer-account-create .action.primary,
  .customer-account-forgotpassword .action.primary,
  .customer-account-createpassword .action.primary,
  .account .action.primary,
  .customer-account-login .login-container .action.create {
    width: 100%;
  }

  .account .block-collapsible-nav .content {
    grid-template-columns: 1fr;
  }

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

  .account .smartspitze-invoice-download {
    width: 100%;
  }
}
