.mbos-customer-portal,
.mbos-customer-portal *,
.mbos-portal-additional-details,
.mbos-portal-additional-details *,
.mbos-portal-account-details,
.mbos-portal-account-details *,
.mbos-portal-files,
.mbos-portal-files *,
.mbos-portal-account-delete,
.mbos-portal-success,
.mbos-portal-record-section,
.mbos-portal-record-section * {
  box-sizing: border-box;
}

.mbos-portal-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mbos-portal-additional-details__source-title {
  display: none !important;
}

.mbos-portal-additional-details,
.mbos-portal-account-details {
  --mbos-portal-text: #172033;
  --mbos-portal-muted: #5b6880;
  --mbos-portal-line: #dbe4ef;
  --mbos-portal-soft: #f8fafc;
  --mbos-portal-brand-color: var(--mbos-portal-brand, var(--mbos-brand, #1d4f91));
  --mbos-portal-brand-color-rgb: var(--mbos-brand-rgb, 29, 79, 145);
  --mbos-portal-brand-soft: rgba(var(--mbos-portal-brand-color-rgb), 0.1);
  --mbos-portal-brand-border: rgba(var(--mbos-portal-brand-color-rgb), 0.28);
  color: var(--mbos-portal-text);
}

.mbos-customer-portal {
  --mbos-portal-text: #172033;
  --mbos-portal-muted: #5b6880;
  --mbos-portal-line: #dbe4ef;
  --mbos-portal-soft: #f8fafc;
  --mbos-portal-brand-color: var(--mbos-portal-brand, var(--mbos-brand, #1d4f91));
  --mbos-portal-brand-color-rgb: var(--mbos-brand-rgb, 29, 79, 145);
  --mbos-portal-brand-soft: rgba(var(--mbos-portal-brand-color-rgb), 0.1);
  --mbos-portal-brand-border: rgba(var(--mbos-portal-brand-color-rgb), 0.28);
  width: min(1120px, calc(100vw - 32px));
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  overflow-x: clip;
  color: var(--mbos-portal-text);
}

.mbos-customer-portal .zbs-portal-grid {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1rem 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.mbos-customer-portal .zbs-portal-grid.no-nav {
  grid-template-columns: 1fr !important;
}

.mbos-customer-portal .zbs-portal-grid .zbs-portal-nav,
.mbos-customer-portal .zbs-portal-grid .zbs-portal-content {
  min-width: 0;
  max-width: 100%;
}

.mbos-customer-portal .zbs-portal-grid .zbs-portal-content {
  width: 100%;
  max-width: none;
}

.mbos-customer-portal .zbs-portal-grid .zbs-portal-nav {
  max-width: 100%;
  width: 100%;
}

.mbos-customer-portal .zbs-portal-grid .zbs-portal-grid-footer {
  grid-column: 1 / -1;
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 0;
  margin: 0 0 18px;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  list-style: none;
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs li,
.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs li:last-child {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs a {
  display: flex;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 0;
  width: 100%;
  padding: 10px 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

@media (min-width: 960px) {
  .mbos-customer-portal {
    max-width: none;
    margin-left: calc(50% - 50vw + 16px);
    margin-right: calc(50% - 50vw + 16px);
  }

  .mbos-customer-portal .zbs-portal-grid:not(.no-nav) {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    column-gap: 28px;
  }
}

@media (min-width: 1152px) {
  .mbos-customer-portal {
    margin-left: calc(50% - 560px);
    margin-right: calc(50% - 560px);
  }
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs a:hover,
.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs a:focus {
  box-shadow: none;
  text-decoration: none;
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs a:focus-visible,
.mbos-customer-portal .zbs-portal-content .mbos-portal-native-action:focus-visible {
  outline: 3px solid rgba(var(--mbos-portal-brand-color-rgb), 0.32);
  outline-offset: 2px;
}

.mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs .fa {
  flex: 0 0 auto;
  margin-right: 0;
}

.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-grid #zbs-nav-tabs a {
  border-color: var(--mbos-portal-brand-border);
  background: #fff;
  color: var(--mbos-portal-brand-color);
}

.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-grid #zbs-nav-tabs a:hover,
.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-grid #zbs-nav-tabs a:focus {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-soft);
  color: var(--mbos-portal-brand-color) !important;
}

.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-grid #zbs-nav-tabs li.active > a {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-color);
  color: #fff !important;
}

.mbos-customer-portal.mbos-theme-button-sync-enabled .zbs-portal-grid #zbs-nav-tabs a.wp-element-button {
  margin: 0;
}

.mbos-customer-portal.mbos-theme-button-sync-enabled .zbs-portal-grid #zbs-nav-tabs a.wp-element-button:hover,
.mbos-customer-portal.mbos-theme-button-sync-enabled .zbs-portal-grid #zbs-nav-tabs a.wp-element-button:focus {
  filter: brightness(0.96);
}

.mbos-customer-portal.mbos-theme-button-sync-enabled .zbs-portal-grid #zbs-nav-tabs li.active > a.wp-element-button {
  box-shadow: inset 0 0 0 2px currentColor;
}

.mbos-customer-portal .zbs-portal-content .mbos-portal-native-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-content .mbos-portal-native-action {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-color);
  color: #fff;
}

.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-content .mbos-portal-native-action:hover,
.mbos-customer-portal:not(.mbos-theme-button-sync-enabled) .zbs-portal-content .mbos-portal-native-action:focus {
  color: #fff;
  filter: brightness(0.94);
  text-decoration: none;
}

.mbos-customer-portal.mbos-theme-button-sync-enabled .zbs-portal-content .mbos-portal-native-action.wp-element-button {
  margin: 0;
}

.mbos-portal-additional-details {
  width: 100%;
  max-width: 760px;
  margin: 0 0 28px;
}

.mbos-portal-additional-details__form {
  display: grid;
  gap: 18px;
  width: 100%;
  color: var(--mbos-portal-text);
  font-size: 18px;
  line-height: 1.55;
}

.mbos-portal-additional-details__field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.mbos-portal-additional-details .mbos-portal-additional-details__field[hidden],
.mbos-portal-additional-details .mbos-additional-details-form__field--hidden {
  display: none !important;
}

.mbos-portal-additional-details__field label {
  color: #24324a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mbos-portal-additional-details__field label span[aria-hidden="true"] {
  color: #b91c1c;
}

.mbos-portal-additional-details__field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.mbos-portal-additional-details__field select,
.mbos-portal-additional-details__field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--mbos-portal-text);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.mbos-portal-additional-details__field select {
  appearance: auto;
}

.mbos-portal-additional-details__field textarea {
  min-height: 160px;
  resize: vertical;
}

.mbos-portal-additional-details__field[data-field-key*="note" i] textarea,
.mbos-portal-additional-details__field[data-mbos-field-key*="note" i] textarea {
  min-height: 190px;
}

.mbos-additional-details-form__secure-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.mbos-additional-details-form__secure-toggle {
  min-width: 78px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--mbos-portal-brand-color);
  border-radius: 8px;
  background: #fff;
  color: var(--mbos-portal-brand-color);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.mbos-additional-details-form__secure-toggle:hover {
  background: var(--mbos-portal-brand-soft);
}

.mbos-additional-details-form__help {
  margin: 0;
  color: var(--mbos-portal-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.mbos-portal-additional-details__field input[type="checkbox"],
.mbos-portal-additional-details__field input[type="radio"] {
  min-width: 20px;
  min-height: 20px;
}

.mbos-portal-additional-details__actions {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.mbos-portal-additional-details__submit,
.mbos-portal-additional-details .mbos-portal-additional-details__submit.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mbos-portal-additional-details__submit:not(.mbos-theme-button-sync-enabled),
.mbos-portal-additional-details .mbos-portal-additional-details__submit.button:not(.mbos-theme-button-sync-enabled) {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-color);
  color: #fff;
}

.mbos-portal-additional-details__submit:not(.mbos-theme-button-sync-enabled):hover,
.mbos-portal-additional-details .mbos-portal-additional-details__submit.button:not(.mbos-theme-button-sync-enabled):hover {
  color: #fff;
  filter: brightness(0.94);
  text-decoration: none;
}

.mbos-portal-additional-details__field input:focus-visible,
.mbos-portal-additional-details__field select:focus-visible,
.mbos-portal-additional-details__field textarea:focus-visible,
.mbos-additional-details-form__secure-toggle:focus-visible,
.mbos-portal-additional-details__submit:focus-visible {
  outline: 3px solid var(--mbos-portal-brand-soft);
  outline-offset: 2px;
  border-color: var(--mbos-portal-brand-color);
  box-shadow: 0 0 0 3px var(--mbos-portal-brand-soft);
}

.mbos-additional-details-form__errors,
.mbos-additional-details__notice {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.mbos-portal-account-details > h2 {
  margin-bottom: 20px;
  color: var(--mbos-portal-text);
  font-weight: 700;
  line-height: 1.25;
}

.mbos-portal-account-details .mbos-portal-account-form {
  width: 100%;
  max-width: 760px;
  padding-bottom: 48px;
  color: var(--mbos-portal-text);
  font-size: 18px;
  line-height: 1.55;
}

.mbos-portal-account-details .mbos-portal-account-form p {
  margin: 0 0 18px;
}

.mbos-portal-account-details .mbos-portal-account-form label {
  display: block;
  margin: 0 0 7px;
  color: #24324a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mbos-portal-account-details .mbos-portal-account-form .zbs-field-group-label {
  margin: 4px 0 14px;
  color: var(--mbos-portal-text);
  font-size: 1.12rem;
  font-weight: 800;
}

.mbos-portal-account-details .mbos-portal-account-form .zbs-multi-group-wrap {
  display: grid;
  gap: 6px;
  margin: 22px 0 24px;
}

.mbos-portal-account-details .mbos-portal-account-form .zbs-multi-group-item {
  padding: 16px 0 4px 16px;
  border-left: 4px solid var(--mbos-portal-brand-border);
}

.mbos-portal-account-details .mbos-portal-account-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.mbos-portal-account-details .mbos-portal-account-form select,
.mbos-portal-account-details .mbos-portal-account-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--mbos-portal-text);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.mbos-portal-account-details .mbos-portal-account-form textarea {
  min-height: 120px;
  resize: vertical;
}

.mbos-portal-account-details .mbos-portal-account-form input[type="checkbox"],
.mbos-portal-account-details .mbos-portal-account-form input[type="radio"] {
  min-width: 20px;
  min-height: 20px;
}

.mbos-portal-account-details .mbos-portal-account-form .zbs-field-radio-wrap label,
.mbos-portal-account-details .mbos-portal-account-form .zbs-field-checkbox-wrap label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 32px;
  font-weight: 600;
}

.mbos-portal-account-details .mbos-portal-account-form .button,
.mbos-portal-account-details .mbos-portal-account-form button,
.mbos-portal-account-details .mbos-portal-account-form input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mbos-portal-line);
  border-radius: 8px;
  background: #fff;
  color: var(--mbos-portal-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.mbos-portal-account-details .mbos-portal-account-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 12px 18px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.mbos-portal-account-details .mbos-portal-account-form input[type="submit"]:not(.mbos-theme-button-sync-enabled) {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-color);
  color: #fff;
}

.mbos-portal-account-details .mbos-portal-account-form .button:not(.mbos-theme-button-sync-enabled):hover,
.mbos-portal-account-details .mbos-portal-account-form button:not(.mbos-theme-button-sync-enabled):hover,
.mbos-portal-account-details .mbos-portal-account-form input[type="button"]:not(.mbos-theme-button-sync-enabled):hover {
  border-color: var(--mbos-portal-brand-border);
  background: var(--mbos-portal-brand-soft);
  color: var(--mbos-portal-brand-color);
  text-decoration: none;
}

.mbos-portal-account-details .mbos-portal-account-form input[type="submit"]:not(.mbos-theme-button-sync-enabled):hover {
  filter: brightness(0.94);
}

.mbos-portal-account-details .mbos-portal-account-form input:focus-visible,
.mbos-portal-account-details .mbos-portal-account-form select:focus-visible,
.mbos-portal-account-details .mbos-portal-account-form textarea:focus-visible,
.mbos-portal-account-details .mbos-portal-account-form button:focus-visible,
.mbos-portal-account-details .mbos-portal-account-form .button:focus-visible {
  outline: 3px solid var(--mbos-portal-brand-soft);
  outline-offset: 2px;
  border-color: var(--mbos-portal-brand-color);
  box-shadow: 0 0 0 3px var(--mbos-portal-brand-soft);
}

.mbos-portal-account-details .mbos-portal-account-form__hidden-field,
.mbos-portal-account-details .mbos-portal-account-form__hidden-field-label,
.mbos-portal-account-details .mbos-portal-account-form__preserved-hidden-field {
  display: none !important;
}

.mbos-portal-files {
  --mbos-portal-text: #172033;
  --mbos-portal-muted: #5b6880;
  --mbos-portal-line: #dbe4ef;
  --mbos-portal-soft: #f8fafc;
  --mbos-portal-brand-color: var(--mbos-portal-brand, var(--mbos-brand, #1d4f91));
  --mbos-portal-brand-color-rgb: var(--mbos-brand-rgb, 29, 79, 145);
  --mbos-portal-brand-soft: rgba(var(--mbos-portal-brand-color-rgb), 0.1);
  --mbos-portal-brand-border: rgba(var(--mbos-portal-brand-color-rgb), 0.28);
  width: 100%;
  max-width: 760px;
  color: var(--mbos-portal-text);
}

.mbos-portal-files__native-upload-hidden {
  display: none !important;
}

.mbos-portal-files-route .zbs-portal-content form[name="jpcrm_portal_add_file_form"],
.mbos-portal-files-route .zbs-portal-content #jpcrm_portal_button_add_file {
  display: none !important;
}

.mbos-portal-files__panel {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--mbos-portal-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

.mbos-portal-files__title {
  margin: 0;
  color: var(--mbos-portal-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.mbos-portal-files__intro,
.mbos-portal-files__help,
.mbos-portal-files__empty p,
.mbos-portal-files__meta {
  margin: 0;
  color: var(--mbos-portal-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.mbos-portal-files__form {
  display: grid;
  gap: 14px;
}

.mbos-portal-files__field {
  display: grid;
  gap: 7px;
}

.mbos-portal-files__field label {
  color: #24324a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mbos-portal-files__field input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--mbos-portal-text);
  font-size: 16px;
  line-height: 1.35;
}

.mbos-portal-files__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mbos-portal-files__button:not(.mbos-theme-button-sync-enabled) {
  border-color: var(--mbos-portal-brand-color);
  background: var(--mbos-portal-brand-color);
  color: #fff;
}

.mbos-portal-files__button:not(.mbos-theme-button-sync-enabled):hover {
  color: #fff;
  filter: brightness(0.94);
  text-decoration: none;
}

.mbos-portal-files__field input[type="file"]:focus-visible,
.mbos-portal-files__button:focus-visible {
  outline: 3px solid var(--mbos-portal-brand-soft);
  outline-offset: 2px;
  border-color: var(--mbos-portal-brand-color);
  box-shadow: 0 0 0 3px var(--mbos-portal-brand-soft);
}

.mbos-portal-files__message {
  padding: 13px 14px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.mbos-portal-files__message--success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.mbos-portal-files__message--error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mbos-portal-files__grid {
  display: grid;
  gap: 14px;
}

.mbos-portal-files__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--mbos-portal-line);
  border-radius: 10px;
  background: var(--mbos-portal-soft);
}

.mbos-portal-files__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.mbos-portal-files__name {
  margin: 0 0 4px;
  color: var(--mbos-portal-text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mbos-portal-files__empty {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px dashed var(--mbos-portal-brand-border);
  border-radius: 10px;
  background: var(--mbos-portal-brand-soft);
}

.mbos-portal-account-delete,
.mbos-portal-success {
  max-width: 720px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.mbos-portal-account-delete {
  border-color: #fecaca;
  background: #fffafa;
}

.mbos-portal-account-delete h3 {
  margin: 0 0 8px;
  color: #7f1d1d;
  font-size: 1.15rem;
  line-height: 1.3;
}

.mbos-portal-account-delete p {
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.5;
}

.mbos-portal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  color: #334155;
  font-weight: 600;
}

.mbos-portal-check input {
  flex: 0 0 auto;
  margin-top: 4px;
}

.mbos-portal-danger-button,
.mbos-portal-cancel-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.mbos-portal-danger-button,
.mbos-portal-cancel-booking:not(.mbos-theme-button-sync-enabled) {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.mbos-portal-danger-button:hover,
.mbos-portal-cancel-booking:not(.mbos-theme-button-sync-enabled):hover {
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
}

.mbos-portal-danger-button:disabled,
.mbos-portal-cancel-booking:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.mbos-portal-cancel-booking:not(.mbos-theme-button-sync-enabled) {
  width: 100%;
  margin: 0;
  border-color: var(--mbos-portal-danger, #dc2626);
  background: transparent;
  color: var(--mbos-portal-danger, #dc2626);
}

.mbos-portal-cancel-booking:not(.mbos-theme-button-sync-enabled):hover {
  background: #dc2626;
  color: #fff;
}

.mbos-portal-danger-button:focus-visible,
.mbos-portal-cancel-booking:focus-visible,
.mbos-portal-record-action:focus-visible {
  outline: 3px solid rgba(var(--mbos-portal-brand-color-rgb, 29, 79, 145), 0.32);
  outline-offset: 2px;
}

.mbos-portal-is-busy {
  opacity: 0.72;
}

.mbos-portal-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  font-weight: 700;
}

.mbos-portal-hidden,
.mbos-portal-quote-deleted .mbos-quote {
  display: none !important;
}

.mbos-portal-booking-canceled {
  opacity: 0.62;
}

.mbos-portal-booking-status {
  display: inline-block;
  margin-left: 10px;
  color: #166534;
  font-weight: 700;
  line-height: 1.3;
}

.mbos-portal-quote-visible-delete {
  margin-top: 18px;
}

.mbos-portal-record-section {
  --mbos-portal-text: #172033;
  --mbos-portal-muted: #5b6880;
  --mbos-portal-line: #e2e8f0;
  --mbos-portal-card: #ffffff;
  --mbos-portal-soft: #f8fafc;
  --mbos-portal-brand-color: var(--mbos-portal-brand, var(--mbos-brand, #1d4f91));
  --mbos-portal-brand-color-rgb: var(--mbos-brand-rgb, 29, 79, 145);
  --mbos-portal-brand-soft: rgba(var(--mbos-portal-brand-color-rgb), 0.1);
  --mbos-portal-brand-border: rgba(var(--mbos-portal-brand-color-rgb), 0.28);
  --mbos-portal-quote: var(--mbos-portal-brand-color);
  --mbos-portal-booking: var(--mbos-portal-brand-color);
  --mbos-portal-invoice: var(--mbos-portal-brand-color);
  --mbos-portal-transaction: var(--mbos-portal-brand-color);
  --mbos-portal-danger: #dc2626;
  --mbos-portal-success: #15803d;
  --mbos-portal-warning: #b45309;
  --mbos-portal-neutral: #475569;
  --mbos-portal-accent: var(--mbos-portal-brand-color);
  --mbos-portal-accent-soft: var(--mbos-portal-brand-soft);
  --mbos-portal-accent-border: var(--mbos-portal-brand-border);
  --mbos-portal-accent-strong: var(--mbos-portal-brand-color);
  width: 100%;
  max-width: 760px;
  margin: 22px 0;
  color: var(--mbos-portal-text);
}

.mbos-customer-portal .mbos-portal-record-section {
  width: 100%;
  max-width: none;
}

.mbos-portal-record-section--quote {
  --mbos-portal-accent: var(--mbos-portal-quote);
  --mbos-portal-accent-soft: var(--mbos-portal-brand-soft);
  --mbos-portal-accent-border: var(--mbos-portal-brand-border);
  --mbos-portal-accent-strong: var(--mbos-portal-brand-color);
}

.mbos-portal-record-section--booking {
  --mbos-portal-accent: var(--mbos-portal-booking);
  --mbos-portal-accent-soft: var(--mbos-portal-brand-soft);
  --mbos-portal-accent-border: var(--mbos-portal-brand-border);
  --mbos-portal-accent-strong: var(--mbos-portal-brand-color);
}

.mbos-portal-record-section--invoice {
  --mbos-portal-accent: var(--mbos-portal-invoice);
  --mbos-portal-accent-soft: var(--mbos-portal-brand-soft);
  --mbos-portal-accent-border: var(--mbos-portal-brand-border);
  --mbos-portal-accent-strong: var(--mbos-portal-brand-color);
}

.mbos-portal-record-section--transaction {
  --mbos-portal-accent: var(--mbos-portal-transaction);
  --mbos-portal-accent-soft: var(--mbos-portal-brand-soft);
  --mbos-portal-accent-border: var(--mbos-portal-brand-border);
  --mbos-portal-accent-strong: var(--mbos-portal-brand-color);
}

.mbos-portal-record-section__heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--mbos-portal-accent-strong);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.mbos-portal-record-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.mbos-portal-record-section__heading .mbos-portal-record-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mbos-portal-accent);
  color: #fff;
}

.mbos-portal-record-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mbos-portal-record-grid {
  display: grid;
  gap: 18px;
}

.mbos-customer-portal .mbos-portal-record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(680px, 100%);
  max-width: 680px;
  gap: 1rem;
  align-items: start;
}

.mbos-portal-record-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--mbos-portal-line);
  border-radius: 14px;
  background: var(--mbos-portal-card);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

.mbos-customer-portal .mbos-portal-record-card {
  width: 100%;
  max-width: 100%;
}

.mbos-portal-record-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mbos-portal-record-card__title-wrap {
  min-width: 0;
}

.mbos-portal-record-card__title {
  margin: 0;
  color: var(--mbos-portal-text);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mbos-portal-record-card__subtitle {
  margin-top: 4px;
  color: var(--mbos-portal-muted);
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mbos-portal-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  max-width: 45%;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
}

.mbos-portal-status-badge--success {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.mbos-portal-status-badge--warning {
  border-color: #fed7aa;
  background: #ffedd5;
  color: #9a3412;
}

.mbos-portal-status-badge--danger {
  border-color: #fecaca;
  background: #fee2e2;
  color: #b91c1c;
}

.mbos-portal-status-badge--neutral {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.mbos-portal-record-facts,
.mbos-portal-record-relations {
  display: grid;
  gap: 11px;
}

.mbos-portal-record-fact,
.mbos-portal-record-relation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: #24324a;
  line-height: 1.4;
}

.mbos-portal-record-fact .mbos-portal-record-icon,
.mbos-portal-record-relation .mbos-portal-record-icon {
  margin-top: 1px;
  color: #34445d;
}

.mbos-portal-record-fact__text,
.mbos-portal-record-relation__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mbos-portal-record-fact__label,
.mbos-portal-record-relation__label {
  color: var(--mbos-portal-muted);
  font-weight: 600;
}

.mbos-portal-record-fact__value,
.mbos-portal-record-relation__value {
  color: var(--mbos-portal-text);
  font-weight: 800;
}

.mbos-portal-record-relations {
  padding-top: 16px;
  border-top: 1px solid var(--mbos-portal-line);
}

.mbos-portal-record-relation {
  color: var(--mbos-portal-accent-strong);
}

.mbos-portal-record-relation .mbos-portal-record-icon,
.mbos-portal-record-relation__label,
.mbos-portal-record-relation__value {
  color: var(--mbos-portal-accent-strong);
}

.mbos-portal-record-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 2px;
}

.mbos-portal-record-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--mbos-portal-accent-border);
  background: var(--mbos-portal-accent-soft);
  color: var(--mbos-portal-accent-strong);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mbos-portal-record-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding-top: 6px;
}

.mbos-portal-record-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 10px 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mbos-portal-record-action:not(.mbos-theme-button-sync-enabled) {
  border-color: var(--mbos-portal-accent);
  background: #fff;
  color: var(--mbos-portal-accent-strong);
}

.mbos-portal-record-empty {
  min-height: 150px;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, var(--mbos-portal-soft) 100%);
}

.mbos-portal-record-empty__body {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--mbos-portal-muted);
  text-align: center;
}

.mbos-portal-record-empty__body .mbos-portal-record-icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 12px;
  background: var(--mbos-portal-accent-soft);
  color: var(--mbos-portal-accent-strong);
}

.mbos-portal-record-empty__text {
  margin: 0;
  color: var(--mbos-portal-muted);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.mbos-portal-record-action:not(.mbos-theme-button-sync-enabled):hover {
  border-color: var(--mbos-portal-accent-strong);
  background: var(--mbos-portal-accent-soft);
  color: var(--mbos-portal-accent-strong);
  text-decoration: none;
}

.mbos-portal-record-action--primary:not(.mbos-theme-button-sync-enabled) {
  background: var(--mbos-portal-accent);
  color: #fff;
}

.mbos-portal-record-action--primary:not(.mbos-theme-button-sync-enabled):hover {
  background: var(--mbos-portal-accent-strong);
  color: #fff;
}

.mbos-customer-portal .mbos-portal-record-card--quote .mbos-portal-record-actions .mbos-portal-book-now,
.mbos-customer-portal .mbos-portal-record-card--quote .mbos-portal-record-actions .mbos-portal-book-now.wp-element-button,
.mbos-customer-portal .mbos-portal-record-card--quote .mbos-portal-record-actions .mbos-portal-book-now.mbos-theme-button-sync-enabled {
  border-color: var(--mbos-portal-active-button-color, var(--mbos-portal-accent-strong, var(--mbos-portal-brand-color, var(--mbos-brand, #1d4f91)))) !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--mbos-portal-active-button-color, var(--mbos-portal-accent-strong, var(--mbos-portal-brand-color, var(--mbos-brand, #1d4f91)))) !important;
}

.mbos-customer-portal .mbos-portal-record-card--quote .mbos-portal-record-actions .mbos-portal-book-now:hover,
.mbos-customer-portal .mbos-portal-record-card--quote .mbos-portal-record-actions .mbos-portal-book-now:focus {
  border-color: var(--mbos-portal-active-button-color, var(--mbos-portal-accent-strong, var(--mbos-portal-brand-color, var(--mbos-brand, #1d4f91)))) !important;
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--mbos-portal-active-button-color, var(--mbos-portal-accent-strong, var(--mbos-portal-brand-color, var(--mbos-brand, #1d4f91)))) !important;
  text-decoration: none;
}

.mbos-portal-record-action--danger:not(.mbos-theme-button-sync-enabled) {
  border-color: var(--mbos-portal-danger);
  background: #fff;
  color: var(--mbos-portal-danger);
}

.mbos-portal-record-action--danger:not(.mbos-theme-button-sync-enabled):hover {
  background: var(--mbos-portal-danger);
  color: #fff;
}

.mbos-portal-record-enhanced .mbos-portal-record-source-table {
  display: none !important;
}

@media (max-width: 959px) {
  .mbos-customer-portal {
    width: min(100%, calc(100vw - 24px));
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .mbos-customer-portal .zbs-portal-grid,
  .mbos-customer-portal .zbs-portal-grid.no-nav {
    grid-template-columns: 1fr !important;
  }

  .mbos-customer-portal .zbs-portal-grid .zbs-portal-nav,
  .mbos-customer-portal .zbs-portal-grid .zbs-portal-content {
    width: 100%;
    max-width: 100%;
  }

  .mbos-customer-portal .mbos-portal-record-section,
  .mbos-customer-portal .mbos-portal-record-grid {
    width: 100%;
    max-width: 100%;
  }

  .mbos-customer-portal .mbos-portal-record-grid {
    grid-template-columns: 1fr;
  }

  .mbos-customer-portal .mbos-portal-record-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .mbos-customer-portal .zbs-portal-grid .zbs-portal-nav,
  .mbos-customer-portal .zbs-portal-grid #zbs-nav-tabs a {
    min-width: 0;
    width: 100%;
  }

  .mbos-additional-details-form__secure-wrap {
    grid-template-columns: 1fr;
  }

  .mbos-portal-account-details .mbos-portal-account-form {
    max-width: none;
    font-size: 17px;
  }

  .mbos-portal-account-details .mbos-portal-account-form .button,
  .mbos-portal-account-details .mbos-portal-account-form button,
  .mbos-portal-account-details .mbos-portal-account-form input[type="button"] {
    width: 100%;
    margin-bottom: 8px;
  }

  .mbos-portal-account-delete,
  .mbos-portal-success {
    max-width: none;
    padding: 16px;
  }

  .mbos-portal-booking-status {
    display: flex;
    width: 100%;
    margin: 10px 0 0;
  }

  .mbos-portal-record-section {
    max-width: none;
    margin: 18px 0;
  }

  .mbos-portal-record-card {
    padding: 17px;
    border-radius: 12px;
  }

  .mbos-portal-record-card__header {
    align-items: flex-start;
  }

  .mbos-portal-status-badge {
    max-width: 42%;
    padding-right: 10px;
    padding-left: 10px;
  }

  .mbos-portal-record-actions {
    grid-template-columns: 1fr;
  }
}
