.user-profile-icon {
  padding-left: 5px;
  padding-bottom: 5px;
}
/* Default styles */
.svg-icon {
  color: rgb(2, 162, 236);
  transition: color 300ms ease-in-out; /* Add a smooth transition effect */
}

/* Hover styles */
.svg-icon:hover {
  color: rgb(255, 60, 0); /* Change the color on hover */
  cursor: pointer; /* Add a pointer cursor on hover (optional) */
}
.input-button-verify {
  display: flex;
  gap: 10px;
}
.button-phone-verify {
  padding: 8px 10px 8px 10px;
  color: white;
  font-weight: 600;
  border-radius: 5px;
  width: 50%;
  border: none;
  display: flex;
  background-color: rgb(162, 21, 85);
  max-width: 180px;
}
.label-verify-phone {
  margin: 0;
  font-size: 13px;
  text-align: center;
  margin-top: 15px;
  color: gray;
  letter-spacing: 1px;
}

.verify-phone-message {
  text-align: center;
  margin: 0;
  font-size: 13px !important;
  text-align: center;
  margin-top: 15px;
  color: rgb(255, 0, 0) !important;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.verify-phone-code {
  font-size: 14px !important;
  font-weight: bold;
}

.verify-button {
  color: rgb(2, 82, 255);
  font-weight: 600;
  cursor: pointer;
}

.basic-info-inputs-user {
  display: grid;
  grid-template-columns: 70px 1fr 20px;
  align-items: center;
  gap: 20px;
  row-gap: 16px;
  max-width: 360px;
}

.basic-info-inputs-user input {
  font-size: 14px !important;
  font-weight: bold;
}

.basic-info-inputs-user input:read-only {
  border: none;
  background-color: transparent;
}

.basic-info-inputs-user label,
.basic-info-inputs-user .label {
  margin: 0;
  font-size: 12.5px;
  color: gray;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-bottom: unset !important;
}

.basic-info-inputs-user button {
  background-color: transparent;
  border: none;
  color: lightgray;
  box-sizing: border-box;
  padding: 0;
}

.basic-info-inputs-user button svg {
  fill: currentColor;
}

.code-timer {
  min-height: 20px;
  font-size: 13px !important;
  color: grey !important;
}
.code-resend-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.verify-phone-resend {
  text-align: center;
  margin: 0;
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
  color: grey;
  letter-spacing: 1px;
}

.verify-phone-resend button {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  color: rgb(2, 82, 255);
  position: relative;
  transition:
    color 0.3s,
    transform 0.3s;
}

.verify-phone-resend button:not(:disabled)::before {
  content: "";
  position: absolute;
  width: 82%;
  height: 2px;
  bottom: -3px;
  background-color: rgb(255, 0, 0);
  transform: scaleX(0);

  transform-origin: left center;
  transition: transform 0.3s;
}

.verify-phone-resend button:not(:disabled):hover {
  color: rgb(255, 0, 0);
  transform: translateY(-2px);
}

.verify-phone-resend button:not(:disabled):hover::before {
  transform: scaleX(1);
}

.verify-phone-resend button:disabled {
  color: grey;
  cursor: default;
}
/* css modal */
/* Modal container */
#main-modal,
#main-modal-verify {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

#close-modal-btn,
#close-modal-btn-verify {
  position: absolute;
  top: 20px;
  right: 16px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1rem;
  background-color: transparent;
  color: rgb(187, 187, 187);
  border: none;
  cursor: pointer;
}

/* Modal content */
.modal-content {
  border-radius: 0.5rem !important;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 5rem;
  border: 1px solid #888;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-family: inherit; */
}

@media screen and (max-width: 500px) {
  .modal-content {
    width: 98% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Modal heading */
.modal-title {
  margin: 10px auto 20px !important;
}

/* Modal form labels and inputs */
.modal-content label {
  display: block;
  margin-bottom: 10px;
}

.modal-content input,
.modal-content select {
  display: block;
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Modal button */
#open-break-modal-btn,
#open-schedule-modal-btn,
#cancel-appointment,
#confirm-appointment,
#pay-appointment {
  display: block;
  margin-top: 20px;
  padding: 10px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 150px;
}
.phone-welcome-page-edit {
  display: flex;
  gap: 5px;
  width: 45px;
}

.modal-content {
  margin: 15vh auto;
  /* font-family: fieldwork-hum, sans-serif; */
}
#sign-out-button {
  font-size: 15px;
  letter-spacing: 1px;
  gap: 4px;
  cursor: pointer;
  width: -moz-fit-content;
  width: fit-content;
  background-color: transparent;
  border: none;
  color: grey;
  text-transform: uppercase;
  /* font-family: fieldwork-hum, sans-serif; */
}
#sign-out-button:active,
#sign-out-button:focus {
  outline: none;
  border: none;
}

.sign-out-wrapper {
  width: 100% !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

button:hover,
button:active {
  filter: brightness(90%) !important;
}

button:active:not(:disabled) {
  transform: scale(0.98) !important;
}

button:disabled {
  filter: unset;
}

/* Customer portal header: initials circle + account menu */
.account-menu {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.account-menu[hidden] {
  display: none;
}

.account-menu-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-menu-btn:focus-visible {
  outline: 2px solid #1d1f21;
  outline-offset: 2px;
}

.account-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: #3e5c76;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #c3cfd9;
}

.account-menu-btn:hover .account-avatar,
.account-menu-btn-open .account-avatar {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px #3e5c76;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 16px 40px rgba(20, 21, 23, 0.22),
    0 0 0 1px #e7e7e4;
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 1050;
  text-align: left;
}

.account-menu-panel[hidden] {
  display: none;
}

.account-menu-id {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 10px 14px;
  border-bottom: 1px solid #eeeeeb;
  margin-bottom: 8px;
}

.account-menu-id-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-menu-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1d1f21;
  overflow-wrap: anywhere;
}

.account-menu-email {
  font-size: 14px;
  line-height: 1.4;
  color: #5e6066;
  overflow-wrap: anywhere;
}

.account-menu-item {
  height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d1f21;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: #f0f1f2;
  outline: none;
}

@media (min-width: 768px) {
  .account-menu-panel {
    width: 300px;
  }
}

/* Customer portal shell: font, header bar, footer */
:root {
  --portal-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --portal-primary: #67378b;
  --portal-primary-hover: #552e73;
  --portal-primary-active: #44255c;
}

.portal-body {
  --primary-button-color: var(--portal-primary);
}

.portal-body,
.portal-body *:not(.cf-signature-preview):not(.cf-signature-cursive):not(code):not(pre) {
  font-family: var(--portal-font) !important;
}

.portal-shell {
  --portal-pad-x: 30px;
  position: relative;
  padding-top: 0 !important;
  padding-left: var(--portal-pad-x) !important;
  padding-right: var(--portal-pad-x) !important;
  padding-bottom: 48px !important;
}

.portal-header {
  height: 76px;
  margin: 0 calc(-1 * var(--portal-pad-x)) 12px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #e7e7e4;
  position: relative;
  z-index: 2;
}

.portal-header-wide {
  grid-template-columns: 84px minmax(0, 1fr) 84px;
}

.portal-header-back {
  color: #1d1f21;
}

.portal-header-logo {
  justify-self: center;
  width: 100%;
  max-width: 220px;
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-header .header-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  margin: 0;
}

.portal-header-end {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.portal-shell .main-content-customer-portal {
  margin-top: 0 !important;
}

.portal-shell #form-title:not(:empty) {
  margin-top: 0;
}

.portal-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: #5e6066;
}

@media screen and (max-width: 500px) {
  .portal-shell {
    --portal-pad-x: 15px;
  }
}

@media (min-width: 768px) {
  .portal-header {
    height: 92px;
    padding: 0 24px;
    margin-bottom: 16px;
    border-radius: 9px 9px 0 0;
  }

  .portal-header-logo {
    max-width: 280px;
    height: 72px;
  }
}

/* Customer portal confirmation: bottom sheet on phones, centred dialog on desktop */
body.portal-dialog-open {
  overflow: hidden;
}

.portal-dialog-overlay {
  z-index: 1060;
}

.portal-dialog-title {
  padding-top: 8px;
}

.portal-dialog-close {
  display: none;
}

.portal-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #3f4246;
  overflow-wrap: anywhere;
}

.portal-dialog-body p {
  margin: 0;
}

.portal-dialog-actions {
  margin-top: 10px;
}

.profile-btn-danger-solid {
  background: #a82a20;
  border-color: #a82a20;
  color: #fff;
}

@media (min-width: 768px) {
  .portal-dialog-title {
    padding-top: 0;
  }

  .portal-dialog-close {
    display: flex;
    margin: -10px -10px 0 0;
  }
}

/* Profile page */
.profile-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 0 28px;
  text-align: left;
  color: #1d1f21;
}

.profile-page[hidden] {
  display: none;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-title {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.profile-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.profile-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.profile-btn:focus-visible,
.profile-row:focus-visible,
.profile-tab:focus-visible,
.profile-link-btn:focus-visible,
.profile-icon-btn:focus-visible {
  outline: 2px solid #1d1f21;
  outline-offset: 2px;
}

.profile-btn:disabled {
  cursor: default;
}

.profile-btn-primary {
  background: var(--portal-primary);
  border-color: var(--portal-primary);
  color: #fff;
}

.profile-btn-primary:hover:not(:disabled),
.profile-btn-primary:focus-visible {
  background: var(--portal-primary-hover);
  border-color: var(--portal-primary-hover);
  filter: none;
}

.profile-btn-primary:active:not(:disabled) {
  background: var(--portal-primary-active);
  border-color: var(--portal-primary-active);
  filter: none;
}

.profile-btn-primary:focus-visible {
  outline-color: var(--portal-primary);
}

.profile-btn-secondary {
  background: #fff;
  border-color: #c6c8c5;
  color: #1d1f21;
}

.profile-btn-danger {
  background: #fff;
  border-color: #e3bab5;
  color: #a82a20;
}

.profile-btn-primary:disabled:not(.profile-btn-busy) {
  background: #f0f1f2;
  border-color: #f0f1f2;
  color: #7c7f84;
}

.profile-btn-busy {
  opacity: 0.7;
}

.profile-btn-sm {
  padding: 0 12px;
  gap: 6px;
}

.profile-icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-link-btn {
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #1d1f21;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex: none;
}

.profile-link-btn[hidden] {
  display: none;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  font-weight: 600;
  color: #1d1f21;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-spin {
  animation: profile-spin 0.9s linear infinite;
}

@keyframes profile-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Contact details */
.profile-rows {
  border: 1px solid #e7e7e4;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-top: 1px solid #eeeeeb;
  background: #fff;
  color: #1d1f21;
  text-align: left;
  cursor: pointer;
}

.profile-row:first-child {
  border-top: 0;
}

.profile-row-ro {
  cursor: default;
}

.profile-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-row-label {
  font-size: 13px;
  font-weight: 500;
  color: #5e6066;
}

.profile-row-value {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.profile-row-value-muted {
  color: #5e6066;
  font-weight: 400;
}

.profile-row-value-action {
  font-weight: 600;
}

.profile-row-note {
  font-size: 13px;
  line-height: 1.4;
  color: #5e6066;
}

.profile-row-icon {
  width: 32px;
  height: 32px;
  flex: none;
  color: #7c7f84;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-row-ok,
.profile-row-saved {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #1c6634;
}

.profile-row-saved {
  background: #e2f0e6;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
}

.profile-row-edit {
  background: #f7f7f5;
  padding: 14px 16px 16px;
  border-top: 1px solid #eeeeeb;
}

.profile-row-edit:first-child {
  border-top: 0;
}

.profile-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #3f4246;
}

.profile-input {
  height: 48px;
  width: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #b5b8b4;
  border-radius: 10px;
  background: #fff;
  color: #1d1f21;
  font-size: 16px;
  font-weight: 500;
}

.profile-input:focus {
  outline: none;
  border-color: #1d1f21;
  box-shadow: 0 0 0 3px #d3dde6;
}

.profile-input-error,
.profile-input-error:focus {
  border-color: #a82a20;
  box-shadow: 0 0 0 3px #f6dedb;
}

.profile-input:disabled {
  background: #f0f1f2;
  color: #5e6066;
}

.profile-input-code {
  letter-spacing: 0.3em;
  font-weight: 600;
}

.profile-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-msg {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
}

.profile-msg svg {
  flex: none;
  margin-top: 1px;
}

.profile-msg-error {
  color: #a82a20;
}

.profile-msg-ok {
  color: #1c6634;
}

.profile-msg-info {
  color: #3f4246;
}

.profile-form-message:empty {
  display: none;
}

.profile-edit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.profile-edit-actions .profile-btn {
  min-width: 96px;
}

.profile-edit-actions > .profile-btn-secondary {
  grid-column: 2;
}

.profile-edit-actions > .profile-btn-primary {
  grid-column: 3;
}

.profile-edit-form > .profile-edit-actions {
  margin-top: 4px;
}

.profile-edit-actions > .profile-timer,
.profile-edit-actions > .profile-link-btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.profile-timer {
  margin: 0;
  font-size: 14px;
  color: #5e6066;
}

.profile-timer:empty {
  display: none;
}

/* Appointments: tabs, cards and states */
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f0f1f2;
}

.profile-tab {
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #3f4246;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.profile-tab:hover,
.profile-tab:active {
  filter: none !important;
  transform: none !important;
}

@media (hover: hover) {
  .profile-tab[aria-selected="false"]:hover {
    color: #1d1f21;
  }
}

.profile-tab[aria-selected="true"] {
  background: #fff;
  color: #1d1f21;
  box-shadow:
    0 1px 2px rgba(29, 31, 33, 0.1),
    0 0 0 1px #e2e3e1;
}

.profile-tab-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #e1e3e5;
  color: #1d1f21;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-tab-count[hidden] {
  display: none;
}

.profile-tab[aria-selected="true"] .profile-tab-count {
  background: #1d1f21;
  color: #fff;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-list[hidden],
.booking-list:empty,
.profile-rows[hidden],
.profile-error-box[hidden] {
  display: none;
}

.booking-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7e7e4;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.booking-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.booking-date {
  width: 54px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  border-radius: 10px;
  background: #f0f1f2;
}

.booking-date-past {
  background: #fff;
  border: 1px solid #e7e7e4;
}

.booking-date-small {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #5e6066;
}

.booking-date-day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.booking-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.booking-card-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: #5e6066;
  overflow-wrap: anywhere;
}

.booking-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.booking-badge[hidden] {
  display: none;
}

.booking-badge-paid {
  background: #e2f0e6;
  color: #1c6634;
}

.booking-badge-cancelled {
  background: #f9e5e2;
  color: #8f241b;
}

.booking-badge-virtual {
  background: #e3edf7;
  color: #1e4c7a;
}

.booking-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-card-actions .profile-btn {
  flex: 1;
}

.booking-why {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  color: #5e6066;
}

.booking-why svg {
  flex: none;
  margin-top: 1px;
}

.booking-why a {
  color: #1d1f21;
  font-weight: 600;
}

.profile-dl + .booking-why {
  margin-top: 12px;
}

.profile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed #cfd1ce;
  border-radius: 14px;
  text-align: center;
}

.profile-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #f0f1f2;
  color: #3f4246;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d1f21;
}

.profile-empty-text {
  margin: 0 0 6px;
  max-width: 280px;
  font-size: 14px;
  line-height: 1.45;
  color: #5e6066;
}

.profile-error-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e3bab5;
  border-radius: 14px;
  background: #fdf5f4;
}

.profile-error-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #8f241b;
}

.profile-error-text {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #3f4246;
}

.profile-sk {
  display: block;
  border-radius: 6px;
  background: #ecedeb;
}

.profile-sk-tile {
  width: 54px;
  height: 62px;
  flex: none;
  border-radius: 10px;
}

.profile-sk-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.profile-sk-title {
  width: 180px;
  max-width: 100%;
  height: 14px;
}

.profile-sk-meta {
  width: 110px;
  height: 12px;
}

.profile-sk-meta-short {
  width: 90px;
  height: 12px;
}

.profile-sk-btn {
  height: 44px;
  flex: 1;
  border-radius: 10px;
}

/* Appointment details: bottom sheet on phones, centred dialog on desktop */
.profile-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 21, 23, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-sheet-overlay[hidden] {
  display: none;
}

body.profile-sheet-open {
  overflow: hidden;
}

.profile-sheet {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  color: #1d1f21;
}

@media (max-width: 767px) {
  .profile-sheet {
    margin-bottom: var(--kb-offset, 0px);
    max-height: min(90vh, var(--kb-max-height, 90vh));
  }
}

.profile-sheet-grab {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d3d4d2;
  align-self: center;
}

.profile-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-sheet-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 8px;
}

.profile-sheet-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.profile-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.profile-dl-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #eeeeeb;
  font-size: 15px;
  line-height: 1.4;
}

.profile-dl-row dt {
  color: #5e6066;
  font-weight: 500;
}

.profile-dl-row dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.profile-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-sheet-actions .profile-btn {
  width: 100%;
}

.profile-sheet-actions .complete-forms-banner {
  order: -1;
  margin: 0 0 4px;
}

.profile-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  top: calc(12px + env(safe-area-inset-top));
  z-index: 1100;
  min-height: 52px;
  padding: 6px 6px 6px 16px;
  border-radius: 12px;
  background: #1d1f21;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(20, 21, 23, 0.25);
  text-align: left;
}

.profile-toast[hidden] {
  display: none;
}

.profile-toast-icon {
  flex: none;
  display: flex;
  color: #8fd3a3;
}

.profile-toast-text {
  flex: 1;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.profile-toast .profile-icon-btn {
  color: #fff;
}

@media (min-width: 768px) {
  .profile-page {
    gap: 24px;
    padding-top: 12px;
  }

  .profile-title {
    font-size: 30px;
  }

  .profile-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #e7e7e4;
  }

  .profile-rows .profile-row,
  .profile-rows .profile-row-edit {
    border-top: 0;
  }

  .profile-rows .profile-row-edit,
  .profile-rows > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .profile-tabs {
    width: 360px;
  }

  .booking-card {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .booking-card-top {
    flex: 1;
    min-width: 0;
    align-items: center;
  }

  .booking-card-meta {
    display: block;
  }

  .booking-card-staff::before {
    content: ", ";
  }

  .booking-card-actions {
    flex: none;
  }

  .booking-card-actions .profile-btn {
    flex: none;
    min-width: 96px;
  }

  .booking-card > :not(.booking-card-top):not(.booking-card-actions) {
    flex-basis: 100%;
  }

  .profile-sheet-overlay {
    align-items: center;
  }

  .profile-sheet {
    width: 520px;
    border-radius: 16px;
    padding: 28px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(20, 21, 23, 0.25);
  }

  .profile-sheet-grab {
    display: none;
  }

  .profile-sheet-title-wrap {
    padding-top: 0;
  }

  .profile-dl-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .profile-sheet-actions {
    flex-direction: row-reverse;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .profile-sheet-actions .profile-btn {
    width: auto;
  }

  .profile-sheet-actions .complete-forms-banner {
    flex-basis: 100%;
  }

  .profile-toast {
    left: 50%;
    right: auto;
    width: 480px;
    transform: translateX(-50%);
  }
}

/* Customer portal: one layout for every page (T-434 verify pass) */
.portal-header {
  grid-template-columns: minmax(44px, 1fr) minmax(0, 220px) minmax(44px, 1fr);
  margin-bottom: 24px;
}

.portal-header-wide {
  grid-template-columns: minmax(72px, 1fr) minmax(0, 220px) minmax(72px, 1fr);
}

.portal-header-logo {
  max-width: none;
}

.portal-header-end #exit-btn-services {
  padding: 0 12px;
  font-size: 14px;
}

.portal-shell .profile-page {
  padding-top: 0;
}

.portal-body #form-title:not(.flow-title):not(:empty) {
  align-self: stretch;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  color: #1d1f21;
}

.portal-body .profile-btn:not(.profile-btn-sm) {
  height: 48px;
}

.portal-body #category-select.flow-select {
  width: 100%;
  max-width: none;
  height: 48px;
  margin: 0;
  padding: 0 40px 0 12px;
  border: 1px solid #b5b8b4;
  border-radius: 10px;
  box-shadow: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1f21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  color: #1d1f21;
  font-size: 16px;
  font-weight: 500;
}

.portal-body .flow-filters {
  margin-bottom: 16px;
}

.portal-body .staff-list + .profile-btn {
  margin-top: 24px;
}

.portal-body .flow-card .profile-dl-row {
  grid-template-columns: 125px minmax(0, 1fr);
}

.portal-body #form-title.flow-title + #services-by-div + #form-body > .flow-card:first-child,
.portal-body #form-body > .flow-card:first-child {
  margin-top: 8px;
}

.account-avatar-loading {
  background: #eceef0;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #e4e7ea;
}

.profile-sheet-title-wrap {
  padding-top: 0;
}

.profile-sheet-header {
  align-items: flex-start;
}

.profile-sheet-header > .profile-icon-btn,
.portal-body .signin-header #close-modal-btn {
  margin-top: -10px;
  margin-bottom: -10px;
}

.signin-phone-prefix {
  background: #fff;
}

@media (max-width: 500px) {
  .portal-body .portal-shell {
    --portal-pad-x: 16px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (min-width: 768px) {
  .portal-header {
    grid-template-columns: minmax(44px, 1fr) minmax(0, 280px) minmax(44px, 1fr);
    margin-bottom: 32px;
    border-radius: 16px 16px 0 0;
  }

  .portal-header-wide {
    grid-template-columns: minmax(84px, 1fr) minmax(0, 280px) minmax(84px, 1fr);
  }

  .portal-header-end #exit-btn-services {
    padding: 0 16px;
    font-size: 15px;
  }

  .portal-shell {
    margin-top: 40px !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(29, 31, 33, 0.12);
  }

  .portal-shell .main-content-customer-portal {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .portal-body #form-title:not(.flow-title):not(:empty) {
    margin-bottom: 16px;
    font-size: 28px;
  }

  .portal-body #form-body > .flow-card:first-child {
    margin-top: 16px;
  }

  .portal-body .flow-filters #category-select.flow-select {
    flex: none;
    width: 260px;
  }

  .account-menu-panel {
    top: calc(100% + 30px);
  }
}

/* Landing: title to the next booking card, or to Our Favorites without one, is the title's own 12 / 16px */
.portal-body #form-title:not(.flow-title):not(:empty) ~ #services-by-div:empty {
  display: none;
}

.portal-body #form-title:not(.flow-title):not(:empty) ~ #form-body {
  margin-top: 0;
  padding-top: 0;
}

.portal-body #upcoming-appointment-section {
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .portal-body #upcoming-appointment-section {
    margin-bottom: 12px;
  }
}

/* Confirm: the title sits right on the summary card (the title's own 16px) */
.portal-body
  #form-title.flow-title
  + #services-by-div
  + #form-body
  > .flow-confirm-card:first-child,
.portal-body #form-body > .flow-confirm-card:first-child {
  margin-top: 0;
}

/* Trial site on the stock logo: the business name stands in for it */
.portal-header-named .header-logo {
  display: none;
}

.portal-business-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #1d1f21;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .portal-business-name {
    font-size: 22px;
  }
}
