/* Customer account refinements */
.my-account-page-content-wrapper {
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(27, 39, 51, .06);
  padding: 0;
  overflow: hidden;
}

.my-account-page-content-wrapper > .row {
  margin-left: 0;
  margin-right: 0;
}

.my-account-page-content-wrapper .my-account-side-links {
  background: #f8fbfb;
  border-right: 1px solid #e3ecec;
  padding: 16px 14px;
}

.my-account-page-content-wrapper .my-account-side-links > a {
  border: 0;
  border-radius: 8px;
  color: #34424a;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 12px 14px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.my-account-page-content-wrapper .my-account-side-links > a:hover,
body#identity .my-account-page-content-wrapper .my-account-side-links #identity-link,
body#addresses .my-account-page-content-wrapper .my-account-side-links #addresses-link,
body#history .my-account-page-content-wrapper .my-account-side-links #history-link {
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  transform: translateX(2px);
}

.my-account-page-content-wrapper .my-account-side-links .link-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.my-account-page-content-wrapper .my-account-side-links i {
  color: inherit;
  font-size: 17px;
  min-width: 20px;
  text-align: center;
}

.my-account-page-content-wrapper .my-account-page-content {
  padding: 22px 24px 26px;
}

.my-account-page-content-wrapper .my-account-page-content > h2 {
  border-bottom: 1px solid #e8eeee;
  color: #243238;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 14px;
}

.page-addresses .addresses-grid {
  align-items: stretch;
  row-gap: 24px;
}

.page-addresses .address-grid-item {
  display: flex;
}

.page-addresses .address {
  background: #fff;
  border: 1px solid #e2e9ec;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(33, 47, 58, .07);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-bottom: 0;
  min-height: 260px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.page-addresses .address:hover {
  border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
  box-shadow: 0 18px 34px rgba(33, 47, 58, .11);
  transform: translateY(-2px);
}

.page-addresses .address .address-body {
  flex: 1 1 auto;
  padding: 20px 20px 16px;
}

.page-addresses .address .address-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.page-addresses .address .address-icon {
  align-items: center;
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  border-radius: 8px;
  color: var(--primary-color);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.page-addresses .address .address-body h4 {
  color: #243238;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.page-addresses .address .address-body address {
  color: #46555c;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
  min-height: 0;
}

.page-addresses .address .address-footer {
  background: #f8fbfb;
  border-top: 1px solid #e6eeee;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
}

.page-addresses .address .address-action {
  align-items: center;
  border-radius: 8px;
  color: #34424a;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  margin-right: 0;
  padding: 7px 9px;
}

.page-addresses .address .address-action:hover {
  background: #eaf6f5;
  color: var(--primary-color);
  text-decoration: none;
}

.page-addresses .address .address-action-delete:hover {
  background: #fff0f0;
  color: #c53b3b;
}

.page-addresses .addresses-footer {
  margin: 24px 15px 0;
}

.page-addresses .addresses-footer .add-address-link {
  align-items: center;
  background: var(--primary-color);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  padding: 11px 16px;
}

.page-addresses .addresses-footer .add-address-link:hover {
  background: var(--primary-color);
  filter: brightness(.92);
  text-decoration: none;
}

body#identity #customer-form {
  max-width: 980px;
}

body#identity .required-fields-note {
  align-items: center;
  background: color-mix(in srgb, var(--primary-color) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, transparent);
  border-radius: 8px;
  color: #3a4a51;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 6px;
  margin: 0 0 18px;
  padding: 9px 12px;
}

body#identity .required-fields-note span,
body#identity #customer-form .required-field-marker,
body#identity #customer-form .required-checkbox-marker {
  color: #0aa99b;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

body#identity #customer-form .form-group {
  background: #fff;
  border: 1px solid #e6eeee;
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body#identity #customer-form .form-group:focus-within {
  border-color: color-mix(in srgb, var(--primary-color) 62%, transparent);
  box-shadow: 0 10px 24px rgba(33, 47, 58, .08);
}

body#identity #customer-form .col-form-label {
  color: #2b3a41;
  font-weight: 800;
  line-height: 1.35;
}

body#identity #customer-form .col-form-label.required:after {
  content: none;
}

body#identity #customer-form .required-field-marker {
  display: inline-block;
  margin-right: 6px;
}

body#identity #customer-form .form-control {
  border: 1px solid #dfe8eb;
  border-radius: 8px;
  color: #2d3c43;
  min-height: 46px;
  padding: 10px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body#identity #customer-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 12%, transparent);
}

body#identity #customer-form .form-control-comment {
  color: #7a878d;
  font-size: 13px;
  line-height: 1.4;
}

body#identity #customer-form .js-input-column > .form-control-comment {
  display: block;
  margin-top: 7px;
}

body#identity #customer-form .input-group .form-control {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

body#identity #customer-form .input-group-append .btn {
  align-items: center;
  background: #f8fbfb;
  border: 1px solid #dfe8eb;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--primary-color);
  display: inline-flex;
  justify-content: center;
  min-width: 54px;
}

body#identity #customer-form .radio-inline {
  align-items: center;
  background: #f8fbfb;
  border: 1px solid #e1ecec;
  border-radius: 8px;
  color: #334249;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  margin: 0 8px 8px 0;
  min-height: 40px;
  padding: 8px 12px;
}

body#identity #customer-form .radio-inline:has(input:checked) {
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary-color) 42%, transparent);
  color: var(--primary-color);
}

body#identity #customer-form .custom-checkbox {
  align-items: flex-start;
  display: flex;
  margin-bottom: 0;
}

body#identity #customer-form .custom-checkbox > span {
  margin-top: 3px;
}

body#identity #customer-form .custom-checkbox .required-checkbox-marker {
  flex: 0 0 auto;
  margin: 3px 10px 0 0;
}

body#identity #customer-form .custom-checkbox label {
  color: #3d4b52;
  line-height: 1.45;
  margin-bottom: 0;
  padding-left: 12px;
}

body#identity #customer-form .custom-checkbox em {
  color: #6f7d83;
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

body#identity #customer-form .form-group-checkbox {
  align-items: flex-start !important;
  background: #f8fbfb;
  padding: 18px 20px;
}

body#identity #customer-form .form-group-checkbox .col-form-label,
body#identity #customer-form .form-group-checkbox > .form-control-comment {
  display: none;
}

body#identity #customer-form .form-group-checkbox .js-input-column {
  flex: 0 0 100%;
  max-width: 100%;
}

body#identity #customer-form .form-group-checkbox .custom-checkbox label {
  padding-left: 14px;
}

body#identity #customer-form .form-footer {
  border-top: 1px solid #e8eeee;
  margin-top: 22px;
  padding-top: 22px;
  text-align: right !important;
}

body#identity #customer-form .form-control-submit {
  background: var(--primary-color);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary-color) 22%, transparent);
  font-weight: 800;
  min-width: 168px;
  padding: 12px 22px;
}

body#identity #customer-form .form-control-submit:hover {
  background: var(--primary-color);
  filter: brightness(.92);
}

body#history .order-history-intro {
  color: #3a4a51;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

body#history .order-history-intro p {
  margin-bottom: 0;
}

body#history .order-history-table-wrapper {
  border: 1px solid #e3ecec;
  border-radius: 8px;
  overflow: hidden;
}

body#history .order-history-table {
  background: #fff;
  border: 0;
  margin-bottom: 0;
}

body#history .order-history-table thead th {
  background: #f8fbfb;
  border: 0;
  border-bottom: 1px solid #e3ecec;
  color: #243238;
  font-size: 14px;
  font-weight: 800;
  padding: 16px 14px;
  white-space: nowrap;
}

body#history .order-history-table tbody tr {
  transition: background-color .18s ease;
}

body#history .order-history-table tbody tr:hover {
  background: #fbfefe;
}

body#history .order-history-table tbody th,
body#history .order-history-table tbody td {
  border-color: #edf2f3;
  color: #34424a;
  padding: 18px 14px;
  vertical-align: middle;
}

body#history .order-reference-link {
  color: #243238;
  font-weight: 900;
}

body#history .order-reference-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

body#history .order-total {
  color: #243238;
  font-weight: 800;
}

body#history .order-payment {
  color: #56656b;
}

body#history .order-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 7px 12px;
}

body#history .order-status.bright {
  color: #fff;
}

body#history .order-status.dark {
  color: #243238;
}

body#history .invoice-link {
  align-items: center;
  color: var(--primary-color);
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
}

body#history .invoice-link i {
  font-size: 20px;
}

body#history .invoice-link:hover {
  color: var(--primary-color);
  filter: brightness(.82);
  text-decoration: none;
}

body#history .muted-value {
  color: #9aa6ab;
  font-weight: 700;
}

body#history .order-actions {
  min-width: 150px;
}

body#history .order-action-link {
  align-items: center;
  border: 1px solid #dce8e8;
  border-radius: 8px;
  color: #34424a;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  margin: 3px;
  padding: 8px 11px;
  white-space: nowrap;
}

body#history .order-action-link:hover {
  background: #eaf6f5;
  border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  color: var(--primary-color);
  text-decoration: none;
}

body#history .order-action-secondary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

body#history .order-action-secondary:hover {
  background: var(--primary-color);
  filter: brightness(.92);
  color: #fff;
}

body#history .order-history-cards .order {
  background: #fff;
  border: 1px solid #e3ecec;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(33, 47, 58, .06);
  margin-bottom: 14px;
  padding: 16px;
}

body#history .order-card-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

body#history .order-card-header h3 {
  color: #243238;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}

body#history .order-history-cards .date,
body#history .order-history-cards .payment {
  color: #68777d;
  font-size: 14px;
  margin-bottom: 6px;
}

body#history .order-history-cards .status {
  margin: 10px 0;
}

body#history .order-card-footer {
  align-items: center;
  border-top: 1px solid #edf2f3;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
}

.order-history-table .order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 150px;
}

.order-history-table .order-action-link {
  align-items: center;
  background: #fff;
  border: 1px solid #dce8e8;
  border-radius: 8px;
  color: #34424a;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  margin: 0;
  padding: 9px 12px;
  white-space: nowrap;
}

.order-history-table .order-action-link:hover {
  background: #eaf6f5;
  border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
  color: var(--primary-color);
  text-decoration: none;
}

.order-history-table .order-action-secondary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.order-history-table .order-action-secondary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  filter: brightness(.92);
  color: #fff;
}

@media (max-width: 767.98px) {
  .my-account-page-content-wrapper {
    border-radius: 0;
  }

  .my-account-page-content-wrapper .my-account-side-links {
    border-bottom: 1px solid #e3ecec;
    border-right: 0;
    margin: 0;
    padding: 12px;
  }

  .my-account-page-content-wrapper .my-account-side-links > a:hover,
  body#identity .my-account-page-content-wrapper .my-account-side-links #identity-link,
  body#addresses .my-account-page-content-wrapper .my-account-side-links #addresses-link,
  body#history .my-account-page-content-wrapper .my-account-side-links #history-link {
    transform: none;
  }

  .my-account-page-content-wrapper .my-account-page-content {
    padding: 18px 16px 22px;
  }

  .page-addresses .address {
    min-height: 0;
  }

  body#identity #customer-form .form-group {
    padding: 14px 12px;
  }

  body#identity #customer-form .form-group-checkbox {
    padding: 16px 14px;
  }

  body#identity #customer-form .col-form-label {
    margin-bottom: 8px;
  }

  body#identity #customer-form .form-control-comment {
    margin-top: 8px;
  }

  body#identity #customer-form .form-footer {
    text-align: left !important;
  }

  body#identity #customer-form .form-control-submit {
    width: 100%;
  }

  body#history .order-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body#history .order-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  body#history .order-action-link {
    flex: 1 1 auto;
  }
}
