/* Error/Success messages */
.axkid-error-message,
.axkid-success-message {
  display: inline-block;
  padding: 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  margin: 0 16px 16px;
  white-space: pre-line;
}
@media screen and (min-width: 64rem) {
  .axkid-error-message,
  .axkid-success-message {
    padding: 12px 36px;
  }
}

.axkid-success-message {
  background-color: #feef19;
  color: #000;
  border-color: #feef19;
}

.axkid-error-message {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Form field */
.axkid-form-field {
  margin-bottom: 32px;
  color: #fff;
}
.axkid-form-field:last-child {
  margin-bottom: 0;
}
.axkid-form-field a, .axkid-form-field a:visited {
  color: inherit;
}
.axkid-form-field a {
  transition: color 0.2s ease-in-out;
}
.axkid-form-field a:hover {
  color: #feef19;
}
.axkid-form-field.text-right {
  text-align: right;
}
.axkid-form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 1px;
}
.axkid-form-field input[type=text], .axkid-form-field input[type=password] {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
  color: color-mix(in srgb, currentColor 75%, transparent);
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.axkid-form-field input[type=text]:focus, .axkid-form-field input[type=password]:focus {
  color: inherit;
  background-color: rgba(255, 255, 255, 0.3);
}

.axkid-fill-height-container {
  min-height: calc(100vh - 3rem - 65px);
}
@media screen and (min-width: 64rem) {
  .axkid-fill-height-container {
    min-height: calc(100vh - 3rem - 97px);
  }
}
body.admin-bar .axkid-fill-height-container {
  min-height: calc(100vh - 3rem - 65px - 46px);
}
@media screen and (min-width: 783px) {
  body.admin-bar .axkid-fill-height-container {
    min-height: calc(100vh - 3rem - 65px - 32px);
  }
}
@media screen and (min-width: 64rem) {
  body.admin-bar .axkid-fill-height-container {
    min-height: calc(100vh - 3rem - 97px - 32px);
  }
}

.axkid-customer-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  max-width: 100%;
}
.axkid-customer-form form {
  max-width: 500px;
  width: 100%;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 32px;
  background-color: #12193d;
  margin: 0 auto;
}
@media screen and (min-width: 64rem) {
  .axkid-customer-form form {
    max-width: 532px;
    padding: 48px;
  }
}
.axkid-customer-form h2 {
  margin-top: 0;
  margin-bottom: 32px;
  text-align: center;
}
.axkid-customer-form button {
  width: 100%;
  max-width: 200px;
  height: 3.25rem;
  border-radius: unset;
  border: unset;
  background-color: #feef19;
  transition: opacity 0.2s ease;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #000;
}
.axkid-customer-form button:hover {
  background-color: #feef19;
  color: #000;
  opacity: 0.8;
}

/* Dashboard page */
.axkid-customer-dashboard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 32px 0;
  margin: 0 auto;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard {
    padding: 48px 16px;
  }
}
@media screen and (min-width: 1280px) {
  .axkid-customer-dashboard {
    padding-top: 64px;
    padding-bottom: 64px;
    max-width: 1280px;
  }
}
@media screen and (min-width: 1440px) {
  .axkid-customer-dashboard {
    padding-top: 64px;
    padding-bottom: 64px;
    max-width: 1440px;
  }
}
.axkid-customer-dashboard__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.axkid-customer-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.axkid-customer-dashboard__title {
  padding: 0 16px;
  margin: 0 0 16px;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__title {
    padding: 0;
    margin: 0;
  }
}
.axkid-customer-dashboard__user {
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin: 0 0 16px;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__user {
    padding: 0;
    margin: 0;
  }
}
.axkid-customer-dashboard__user p {
  display: block;
  margin: 0;
}
.axkid-customer-dashboard__user p span {
  font-weight: 600;
}
.axkid-customer-dashboard__user a {
  display: none;
  padding: 20px 32px;
  margin-left: 16px;
  background: #f8f8f8;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease-in-out;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__user a {
    display: inline-block;
  }
}
.axkid-customer-dashboard__user a:hover {
  background-color: #cecece;
  color: inherit;
}
.axkid-customer-dashboard__menu {
  display: block;
  overflow: auto;
  width: 100%;
  padding: 0 16px;
  border-bottom: solid 2px #12193d;
  margin: 16px 0;
  background-color: #f8f8f8;
  color: #12193d;
  white-space: nowrap;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__menu {
    margin-top: 32px;
  }
}
.axkid-customer-dashboard__menu ul {
  display: flex;
  overflow: hidden;
  list-style: none;
  width: max-content;
  padding: 0;
  margin: 0;
}
.axkid-customer-dashboard__menu ul li {
  flex: 0 0 auto;
  display: inline-block;
}
.axkid-customer-dashboard__menu ul li a {
  opacity: 0.4;
  display: block;
  padding: 20px 10px;
  border-bottom: 5px solid transparent;
  font-family: "NHaasGroteskDSPro Pro 65", sans-serif;
  font-size: 0.875rem;
  color: inherit;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__menu ul li a {
    padding: 20px;
  }
}
.axkid-customer-dashboard__menu ul li a:hover, .axkid-customer-dashboard__menu ul li a:visited {
  color: inherit;
}
.axkid-customer-dashboard__menu ul li a:hover {
  background-color: #cecece;
}
.axkid-customer-dashboard__menu ul li.is-active a, .axkid-customer-dashboard__menu ul li:hover a {
  opacity: 1;
  color: inherit;
}
.axkid-customer-dashboard__menu ul li.is-active a {
  border-bottom-color: #12193d;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__menu ul li.is-logout {
    display: none;
  }
}
.axkid-customer-dashboard__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 16px;
  margin: 16px 0 0;
  background: #f8f8f8;
}
@media screen and (min-width: 768px) {
  .axkid-customer-dashboard__main {
    padding: 24px;
  }
}
@media screen and (min-width: 1280px) {
  .axkid-customer-dashboard__main {
    padding: 48px 32px;
  }
}
@media screen and (min-width: 1440px) {
  .axkid-customer-dashboard__main {
    padding: 64px 48px;
  }
}

.axkid-customer-start {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.axkid-customer-start__field {
  margin-bottom: 32px;
}
.axkid-customer-start__field p {
  margin: 0 0 12px;
  font-size: 20px;
}
.axkid-customer-start__field p:first-child {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media screen and (min-width: 768px) {
  .axkid-customer-start__field p:first-child {
    letter-spacing: 2px;
  }
}
.axkid-customer-start__field p:last-child {
  font-weight: 600;
  margin: 0;
}
.axkid-customer-start__button {
  display: inline-block;
  width: 100%;
  padding: 20px 32px;
  margin: 0 0 16px;
  background-color: #feef19;
  font-size: 16px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}
@media screen and (min-width: 768px) {
  .axkid-customer-start__button {
    width: auto;
    margin: 0 16px 16px 0;
  }
}

.axkid-customer-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #1a1f35;
}
.axkid-customer-table__select {
  width: 3rem;
  text-align: center;
}
.axkid-customer-table td,
.axkid-customer-table th {
  padding: 16px;
}
.axkid-customer-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #d4d4d4;
}
.axkid-customer-table td:nth-child(2n) {
  background-color: #e7e7e7;
}
.axkid-customer-table thead {
  background-color: #12193d !important;
  color: #fff;
}
.axkid-customer-table thead tr th {
  padding: 16px;
}
@media (max-width: 48em) {
  .axkid-customer-table--selectable tbody tr:has(input[type=checkbox]:checked) {
    box-shadow: inset 0 0 0 2px #12193d;
  }
  .axkid-customer-table {
    display: block;
    border: 0;
  }
  .axkid-customer-table thead {
    display: none;
  }
  .axkid-customer-table tbody,
  .axkid-customer-table tr,
  .axkid-customer-table td,
  .axkid-customer-table th {
    display: block;
    width: 100%;
  }
  .axkid-customer-table tr {
    position: relative;
    margin-bottom: 1rem;
    padding: 1rem 1rem 0.5rem;
    border: 1px solid #d8d8d8;
    background: #fff;
  }
  .axkid-customer-table tr:last-child {
    margin-bottom: 0;
  }
  .axkid-customer-table td,
  .axkid-customer-table th {
    padding: 0;
    background-color: transparent;
  }
  .axkid-customer-table tbody tr:not(:last-child) td {
    border-bottom: 0;
  }
  .axkid-customer-table th[scope=row] {
    padding: 0 0 0.75rem 2.25rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ececec;
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: left;
  }
  .axkid-customer-table .axkid-customer-table__select {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: auto;
    padding: 0;
  }
  .axkid-customer-table .axkid-customer-table__select input[type=checkbox] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
  }
  .axkid-customer-table td[data-label] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.375rem 0;
    border: 0;
    text-align: right;
  }
  .axkid-customer-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b6b6b;
    text-align: left;
  }
  .axkid-customer-table--selectable tbody tr {
    cursor: pointer;
  }
  .axkid-customer-table--selectable tbody tr.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .axkid-customer-table--selectable tbody tr:has(input[type=checkbox]:checked) {
    border-color: #12193d;
    box-shadow: inset 0 0 0 1px #12193d;
  }
}

.axkid-customer-cancel {
  width: 100%;
}

.axkid-customer-ui .axkid-customer-button {
  display: inline-block;
  width: 100%;
  padding: 20px 32px;
  margin: 0;
  background-color: #feef19;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}
.axkid-customer-ui .axkid-customer-button:disabled, .axkid-customer-ui .axkid-customer-button[disabled] {
  background-color: #e7e7e7;
  border-color: #d4d4d4;
  color: #8a8a8a;
  cursor: not-allowed;
  box-shadow: none;
}
.axkid-customer-ui .axkid-customer-button:disabled:hover, .axkid-customer-ui .axkid-customer-button:disabled:focus, .axkid-customer-ui .axkid-customer-button[disabled]:hover, .axkid-customer-ui .axkid-customer-button[disabled]:focus {
  background-color: #e7e7e7;
  border-color: #d4d4d4;
  color: #8a8a8a;
}
.axkid-customer-ui .axkid-customer-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #12193d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.axkid-customer-ui .axkid-customer-button:hover::after {
  opacity: 0.05;
}
@media screen and (min-width: 768px) {
  .axkid-customer-ui .axkid-customer-button {
    width: auto;
    margin: 0;
  }
}
.axkid-customer-ui .axkid-customer-button--danger {
  background-color: red;
  background-color: #a02834;
  border-color: #a02834;
  color: #fff;
}
.axkid-customer-ui .axkid-customer-button--danger:hover, .axkid-customer-ui .axkid-customer-button--danger:focus {
  background-color: #8a222d;
  border-color: #8a222d;
  color: #fff;
}
.axkid-customer-ui .axkid-customer-button--secondary {
  border: 1px solid #12193d;
  background-color: transparent;
}
.axkid-customer-ui .axkid-customer-button--secondary:hover {
  color: #12193d;
}
.axkid-customer-ui .axkid-customer-cancel__actions {
  gap: 1rem;
  flex: wrap;
}
.axkid-customer-ui .axkid-success-message,
.axkid-customer-ui .axkid-error-message {
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
}

.axkid-care-steps {
  display: flex;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}
.axkid-care-steps__step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  min-width: 0;
}
.axkid-care-steps__step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 50%;
  left: -50%;
  height: 2px;
  background: #d8d8d8;
  z-index: 0;
}
.axkid-care-steps__step.is-complete::before, .axkid-care-steps__step.is-current::before {
  background: #12193d;
}
.axkid-care-steps__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #d8d8d8;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  color: #6b6b6b;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.axkid-care-steps__label {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: #6b6b6b;
  hyphens: auto;
}
.axkid-care-steps__step.is-complete .axkid-care-steps__marker {
  background: #12193d;
  border-color: #12193d;
  color: #fff;
}
.axkid-care-steps__step.is-current .axkid-care-steps__marker {
  border-color: #12193d;
  color: #12193d;
  box-shadow: 0 0 0 4px rgba(18, 25, 61, 0.12);
}
.axkid-care-steps__step.is-current .axkid-care-steps__label {
  color: #12193d;
  font-weight: 600;
}
@media (max-width: 40em) {
  .axkid-care-steps__label {
    font-size: 0.75rem;
  }
}

/* Payment method per subscription (Payments tab) */
.axkid-payment-methods {
  margin-bottom: 48px;
}

.axkid-payment-methods__title {
  margin: 0 0 16px;
}

.axkid-payment-method {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #1a1f35;
  background-color: #fff;
}

.axkid-payment-method p {
  margin: 0 0 6px;
}

.axkid-payment-method__products {
  font-weight: 600;
}

.axkid-payment-method__meta {
  color: #555;
}

.axkid-payment-method__current {
  margin-top: 8px;
}

.axkid-payment-method__warning {
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #f8d7da;
  color: #721c24;
}

@media screen and (min-width: 768px) {
  .axkid-payment-method {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .axkid-payment-method__action {
    flex-shrink: 0;
  }
}

/* Personal number step before Qliro card registration */
.axkid-payment-method__pnr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
}

.axkid-payment-method__pnr input[type="text"] {
  padding: 10px 12px;
  border: 1px solid #1a1f35;
  font-size: 1rem;
}

.axkid-payment-method__pnr input[aria-invalid="true"] {
  border-color: #721c24;
}

.axkid-payment-method__hint {
  color: #555;
  font-size: 0.875rem;
}
