/* Provider Services offered editor.
 * The authenticated catalog renderer owns the controls; the existing provider
 * header, Settings detail header, and bottom navigation remain shell owners.
 * At phone widths the catalog owns the bounded workspace scroll.
 */
/* stylelint-disable selector-id-pattern, selector-class-pattern, no-descending-specificity, property-no-vendor-prefix -- Canonical dashboard IDs/classes and iOS backdrop/appearance properties are integration contracts. */

.provider-services-form {
  --ps-ink: var(--es-settings-text, var(--pd-work-ink, var(--pd-text, #0f172a)));
  --ps-slate: var(--es-settings-text-muted, var(--pd-work-slate, var(--pd-muted, #475467)));
  --ps-muted: var(--pd-work-faint, #8a94a6);
  --ps-line: var(--es-settings-border, var(--pd-work-line, var(--pd-border, #e3e7ee)));
  --ps-field: var(--es-settings-surface-muted, var(--pd-work-muted-surface, var(--pd-muted-surface, #f6f8fb)));
  --ps-surface: var(--es-settings-surface-elevated, var(--pd-work-card, var(--pd-surface, #fff)));
  --ps-brand: var(--pd-work-vital, var(--es-settings-selected, var(--pd-brand, #ce1f1a)));
  --ps-brand-press: color-mix(in srgb, var(--ps-brand) 86%, #000);
  --ps-focus: var(--ps-brand);

  display: grid;
  min-width: 0;
  gap: 16px;
  color: var(--ps-ink);
}

.provider-services-form > * {
  min-width: 0;
}

.provider-services-form > :not([hidden]) ~ :not([hidden]) {
  margin-block: 0 !important;
}

.provider-services-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 0 !important;
  min-width: 0;
  margin: 0 !important;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  background: var(--ps-surface);
  padding: 12px 14px 0;
}

.provider-services-search {
  position: relative;
  min-width: 0;
}

.provider-services-search__icon {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: 14px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--ps-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.provider-services-search__icon svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke-linecap: round;
}

.provider-services-toolbar input[type="search"] {
  width: 100%;
  min-width: 0 !important;
  height: 44px;
  min-height: 44px !important;
  margin: 0 !important;
  border: 1px solid var(--ps-line) !important;
  border-radius: 12px !important;
  outline: 0;
  background: var(--ps-field) !important;
  padding-block: 0 !important;
  padding-inline: 40px 14px !important;
  color: var(--ps-ink) !important;
  font: inherit;
  font-size: 15px;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.provider-services-toolbar input[type="search"]::placeholder {
  color: var(--ps-muted);
  opacity: 1;
}

.provider-services-toolbar input[type="search"]:focus-visible {
  border-color: var(--ps-focus) !important;
  outline: 0 !important;
  background: var(--ps-surface) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ps-focus) 14%, transparent) !important;
}

html[data-customer-effective-theme] #pdFullSettings [data-settings-workspace="services"] .provider-services-toolbar input[type="search"] {
  border-color: var(--ps-line) !important;
  background: var(--ps-field) !important;
  color: var(--ps-ink) !important;
}

html[data-customer-effective-theme] #pdFullSettings [data-settings-workspace="services"] .provider-services-toolbar input[type="search"]:focus-visible {
  border-color: var(--ps-focus) !important;
  background: var(--ps-surface) !important;
}

.provider-services-bulk {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.provider-services-bulk__count {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ps-slate);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.provider-services-bulk__count strong {
  color: var(--ps-ink);
  font-weight: 700;
}

.provider-services-toolbar button.provider-services-select-all,
.provider-services-toolbar button.provider-services-clear {
  width: auto !important;
  min-width: 0;
  min-height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  padding: 0 7px !important;
  color: var(--ps-focus) !important;
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none !important;
}

.provider-services-toolbar button.provider-services-clear {
  color: var(--ps-slate) !important;
}

.provider-services-toolbar button.provider-services-select-all:hover,
.provider-services-toolbar button.provider-services-select-all:focus-visible,
.provider-services-toolbar button.provider-services-clear:hover,
.provider-services-toolbar button.provider-services-clear:focus-visible {
  background: var(--ps-field) !important;
  text-decoration: underline;
}

.provider-services-toolbar [data-provider-services-expand] {
  display: none !important;
}

.provider-services-catalog,
#servicesList,
#servicesListFull {
  display: block !important;
  min-width: 0;
  max-width: 100%;
  max-height: none !important;
  overflow: hidden !important;
  columns: auto !important;
  column-gap: normal !important;
  border: 1px solid var(--ps-line) !important;
  border-radius: 14px !important;
  background: var(--ps-surface) !important;
  padding: 0 !important;
  box-shadow: none !important;
}

html[data-customer-effective-theme] #pdFullSettings [data-settings-workspace="services"] #servicesListFull.provider-services-catalog {
  border-color: var(--ps-line) !important;
  background: var(--ps-surface) !important;
}

.provider-services-catalog > *,
#servicesList > *,
#servicesListFull > * {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  break-inside: auto;
  -webkit-column-break-inside: auto;
}

.provider-service-card {
  display: block !important;
  min-width: 0;
  border: 0 !important;
  border-block-start: 1px solid var(--ps-line) !important;
  border-radius: 0 !important;
  background: var(--ps-surface) !important;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background-color 140ms ease;
}

.provider-service-card:first-child {
  border-block-start: 0 !important;
}

.provider-service-card:hover,
.provider-service-card:focus-within {
  background: var(--ps-field) !important;
}

.provider-service-card.is-selected {
  background: color-mix(in srgb, var(--ps-surface) 96%, var(--ps-field)) !important;
}

.provider-service-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
}

.provider-service-card__header {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 44px;
  align-self: stretch;
  align-items: center;
  align-content: center;
  gap: 12px !important;
  min-width: 0;
  cursor: pointer;
}

.provider-service-card__control,
.provider-service-issue-row__control {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  margin: -1px !important;
  padding: 0 !important;
  opacity: 0;
  white-space: nowrap;
}

.provider-service-card__mark,
.provider-service-issue-row__mark {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--ps-muted) 55%, var(--ps-line));
  border-radius: 6px;
  background: var(--ps-surface);
  color: #fff;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.provider-service-card__mark svg,
.provider-service-issue-row__mark svg {
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provider-service-card__control:checked + .provider-service-card__mark,
.provider-service-issue-row__control:checked + .provider-service-issue-row__mark {
  border-color: var(--ps-brand);
  background: var(--ps-brand);
}

.provider-service-card__control:checked + .provider-service-card__mark svg,
.provider-service-issue-row__control:checked + .provider-service-issue-row__mark svg {
  opacity: 1;
}

.provider-service-card__control:focus-visible + .provider-service-card__mark,
.provider-service-issue-row__control:focus-visible + .provider-service-issue-row__mark {
  border-color: var(--ps-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ps-focus) 18%, transparent);
}

.provider-service-card__text,
.provider-service-issue-row__text {
  min-width: 0;
}

.provider-service-card__title {
  overflow: hidden;
  color: var(--ps-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-service-card__description {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ps-slate);
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-service-card__trailing {
  display: flex;
  min-width: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.provider-service-card__meta {
  min-width: 20px;
  color: var(--ps-muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: end;
}

.provider-service-card__toggle {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 44px;
  min-height: 44px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  padding: 0 !important;
  color: var(--ps-muted) !important;
  box-shadow: none !important;
}

.provider-service-card__toggle:hover,
.provider-service-card__toggle:focus-visible {
  background: color-mix(in srgb, var(--ps-field) 88%, transparent) !important;
  color: var(--ps-slate) !important;
}

.provider-service-card__toggle:focus-visible {
  outline: 2px solid var(--ps-focus) !important;
  outline-offset: -2px;
}

.provider-service-card__toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.provider-service-card.is-expanded .provider-service-card__toggle svg {
  transform: rotate(180deg);
}

.provider-service-issues {
  display: block !important;
  min-width: 0;
  border-block-start: 1px solid var(--ps-line);
  background: color-mix(in srgb, var(--ps-field) 46%, var(--ps-surface));
  padding: 10px 14px 14px 48px;
}

.provider-service-issues[hidden] {
  display: none !important;
}

.provider-service-issues__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 6px;
}

.provider-service-issue-row {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px !important;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  background: var(--ps-surface);
  padding: 8px 10px;
  color: var(--ps-ink) !important;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.provider-service-issue-row:hover {
  background: var(--ps-field);
}

.provider-service-issue-row.is-selected {
  border-color: color-mix(in srgb, var(--ps-brand) 26%, var(--ps-line));
  background: color-mix(in srgb, var(--ps-brand) 5%, var(--ps-surface));
}

.provider-service-issue-row__mark {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 5px;
}

.provider-service-issue-row__text strong,
.provider-service-issue-row__text span {
  display: block;
  overflow-wrap: anywhere;
}

.provider-service-issue-row__text strong {
  color: var(--ps-ink);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.provider-service-issue-row__text span {
  margin-top: 2px;
  color: var(--ps-slate);
  font-size: 11.5px;
  line-height: 1.35;
}

.provider-services-empty {
  display: grid !important;
  min-height: 152px;
  place-items: center;
  background: var(--ps-surface);
  padding: 24px;
  color: var(--ps-slate);
  text-align: center;
}

.provider-services-empty strong,
.provider-services-empty span {
  display: block;
}

.provider-services-empty strong {
  color: var(--ps-ink);
  font-size: 15px;
  font-weight: 700;
}

.provider-services-empty span {
  max-width: 32rem;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
}

.provider-services-loading {
  display: flex !important;
  min-height: 152px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ps-surface);
  padding: 24px;
  color: var(--ps-slate);
  font-size: 13px;
  font-weight: 600;
}

.provider-services-loading__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid var(--ps-line);
  border-block-start-color: var(--ps-brand);
  border-radius: 50%;
  animation: provider-services-spin 700ms linear infinite;
}

.provider-services-actionbar {
  position: sticky;
  z-index: 8;
  bottom: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  background: var(--ps-surface);
  padding: 10px 14px;
  box-shadow: 0 -2px 12px rgb(15 23 42 / 5%);
}

.provider-services-actionbar__copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  color: var(--ps-slate);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.provider-services-actionbar__copy > strong {
  overflow: hidden;
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-services-actionbar__copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-services-save {
  height: 44px;
  min-height: 44px !important;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--ps-brand) !important;
  padding: 0 20px !important;
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none !important;
}

.provider-services-save:hover,
.provider-services-save:active {
  background: var(--ps-brand-press) !important;
}

.provider-services-save:focus-visible {
  outline: 2px solid var(--ps-focus) !important;
  outline-offset: 2px;
}

.provider-services-save:disabled {
  cursor: wait;
  opacity: 0.72;
}

.provider-services-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.provider-services-status[data-state="error"] {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip-path: none !important;
  margin: 3px 0 0 !important;
  color: var(--ps-brand);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal !important;
}

html[data-provider-reduced-motion="true"] :is(
  .provider-service-card,
  .provider-service-card__mark,
  .provider-service-card__toggle svg,
  .provider-service-issue-row,
  .provider-service-issue-row__mark
),
html[data-provider-reduced-motion="true"] .provider-services-form * {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

html[data-provider-reduced-motion="true"] .provider-services-loading__spinner {
  animation: none;
}

@media (width <= 768px) {
  body[data-mobile-dashboard-role="provider"].pd-services-detail-open {
    --ps-mobile-actionbar-height: 76px;
    --ps-mobile-content-gap: 6px;
    --ps-mobile-tabbar-height: var(--es-mobile-tabbar-height, 68px);
    --pd-work-bg: #fff;
    --pd-work-frame: #fff;
    --pd-work-card: #fff;
    --pd-work-ink: #0f172a;
    --pd-work-slate: #475467;
    --pd-work-faint: #8a94a6;
    --pd-work-line: #e3e7ee;
    --pd-work-muted-surface: #f6f8fb;
    --pd-work-vital: var(--es-mobile-accent, #ce1f1a);
    --pd-work-vital-soft: var(--es-mobile-accent-soft, #fdeceb);
  }

  html[data-customer-effective-theme="sunset"] body[data-mobile-dashboard-role="provider"].pd-services-detail-open {
    --pd-work-bg: #f8f3ea;
    --pd-work-frame: #e9e1d5;
    --pd-work-card: #fffaf3;
    --pd-work-ink: #18241f;
    --pd-work-slate: #657168;
    --pd-work-faint: #657168;
    --pd-work-line: #e8ded0;
    --pd-work-muted-surface: #f0e9de;
  }

  html:is(.dark, [data-customer-effective-theme="night"]) body[data-mobile-dashboard-role="provider"].pd-services-detail-open {
    --pd-work-bg: #0f1821;
    --pd-work-frame: #080f16;
    --pd-work-card: #17232e;
    --pd-work-ink: #f5f7f9;
    --pd-work-slate: #b1bdc8;
    --pd-work-faint: #9ca9b5;
    --pd-work-line: #2a3946;
    --pd-work-muted-surface: #202e3a;
    --pd-work-vital: var(--es-mobile-accent, #ff6571);
    --pd-work-vital-soft: var(--es-mobile-accent-soft, #3b2229);
  }

  body[data-mobile-dashboard-role="provider"].pd-services-detail-open .provider-services-form {
    --ps-ink: var(--pd-work-ink);
    --ps-slate: var(--pd-work-slate);
    --ps-muted: var(--pd-work-faint);
    --ps-line: var(--pd-work-line);
    --ps-field: var(--pd-work-muted-surface);
    --ps-surface: var(--pd-work-card);
    --ps-brand: var(--pd-work-vital);
  }

  body[data-mobile-dashboard-role="provider"].pd-services-detail-open #pdProviderHeader,
  body[data-mobile-dashboard-role="provider"].pd-services-detail-open .es-mobile-tabbar--provider {
    border-color: var(--pd-work-line) !important;
    background: var(--pd-work-card) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body[data-mobile-dashboard-role="provider"].pd-services-detail-open #pdContentGate,
  body[data-mobile-dashboard-role="provider"].pd-services-detail-open #pdSidebar + .flex-1 {
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
  }

  body[data-mobile-dashboard-role="provider"].pd-services-detail-open #providerDashboardMain {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden !important;
    padding-bottom: calc(
      var(--ps-mobile-actionbar-height)
      + var(--ps-mobile-tabbar-height)
      + var(--es-mobile-shell-safe-bottom, env(safe-area-inset-bottom, 0px))
      + var(--ps-mobile-content-gap)
    ) !important;
    background: var(--pd-work-bg) !important;
    scroll-padding-bottom: 0;
  }

  body.pd-services-detail-open #providerDashboardMain > #fullDashboard:not(.hidden),
  body.pd-services-detail-open #pdFullSettings:not(.hidden),
  body.pd-services-detail-open #pdFullSettings > [data-provider-settings-tabs],
  body.pd-services-detail-open [data-provider-settings-tabs] > .pd-settings-panels,
  body.pd-services-detail-open [data-settings-tab-panel="services"]:not(.hidden),
  body.pd-services-detail-open [data-settings-tab-panel="services"] > [data-settings-workspace-host="services"],
  body.pd-services-detail-open #pdFullServices,
  body.pd-services-detail-open #pdFullServices > .pd-pane-card,
  body.pd-services-detail-open .provider-services-form {
    display: flex !important;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  body.pd-services-detail-open #pdFullSettings:not(.hidden) {
    margin: 0 !important;
  }

  /* This phone detail is the dedicated service-selection editor. The legacy
   * availability workspace remains available in the wider Settings layout,
   * but cannot share the catalog's single bounded scroll region. */
  body.pd-services-detail-open #pdFullSettings [data-settings-tab-panel="services"] > [data-settings-compat-panel="availability"] {
    display: none !important;
  }

  body.pd-services-detail-open #providerDashboardMain > #fullDashboard:not(.hidden),
  body.pd-services-detail-open #pdFullSettings:not(.hidden),
  body.pd-services-detail-open #pdFullSettings > [data-provider-settings-tabs],
  body.pd-services-detail-open [data-provider-settings-tabs] > .pd-settings-panels,
  body.pd-services-detail-open [data-settings-tab-panel="services"]:not(.hidden),
  body.pd-services-detail-open [data-settings-tab-panel="services"] > [data-settings-workspace-host="services"],
  body.pd-services-detail-open #pdFullServices,
  body.pd-services-detail-open #pdFullServices > .pd-pane-card {
    overflow: hidden !important;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header {
    flex: 0 0 auto;
    align-items: flex-start;
    margin: -18px -16px 0;
    border-bottom: 1px solid var(--pd-work-line);
    background: var(--pd-work-card);
    padding: 12px 20px 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > button {
    position: relative;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-top: 1px;
    border: 1px solid var(--pd-work-line) !important;
    border-radius: 10px;
    background: var(--pd-work-card) !important;
    color: var(--pd-work-slate);
    box-shadow: none !important;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > button::before {
    content: none;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > button:focus-visible {
    outline: 2px solid var(--pd-work-vital);
    outline-offset: 2px;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > button svg {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > strong {
    color: var(--pd-work-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.35px;
    line-height: 1.25;
  }

  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header > strong > small {
    margin-top: 3px;
    color: var(--pd-work-slate);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
  }

  body.pd-services-detail-open #pdFullServices,
  body.pd-services-detail-open #pdFullServices > .pd-pane-card {
    min-width: 0;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.pd-services-detail-open #pdFullServices > .pd-pane-card > h3,
  body.pd-services-detail-open #pdFullServices > .pd-pane-card > p {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    margin: -1px !important;
    white-space: nowrap !important;
  }

  body.pd-services-detail-open .provider-services-form {
    gap: 0;
    margin: 0 -16px !important;
    overflow: hidden;
  }

  body.pd-services-detail-open .provider-services-form > * {
    margin-block-start: 0 !important;
  }

  body.pd-services-detail-open .provider-services-toolbar {
    flex: 0 0 auto;
    border-width: 0 0 1px !important;
    border-radius: 0;
    padding: 12px 16px 0;
  }

  body.pd-services-detail-open .provider-services-catalog {
    width: auto !important;
    min-height: 0;
    flex: 1 1 auto;
    margin: 16px !important;
    overflow: hidden auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
  }

  body.pd-services-detail-open .provider-service-issues__list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.pd-services-detail-open .provider-services-actionbar {
    position: fixed;
    z-index: 999;
    right: auto;
    bottom: calc(var(--ps-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom, env(safe-area-inset-bottom, 0px)));
    left: 50%;
    width: 100%;
    max-width: 430px;
    min-height: 76px;
    margin: 0 !important;
    transform: translateX(-50%);
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 10px 16px;
  }

  body.pd-services-detail-open .provider-services-save {
    min-width: 88px;
  }

  body.pd-mode-partial [data-provider-partial-workspace="services"] .provider-services-form {
    padding-bottom: 84px;
  }

  body.pd-mode-partial #pd-section-services.pd-active,
  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"],
  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"] > .pd-pane-card,
  body.pd-mode-partial #pd-section-services.pd-active .provider-services-form {
    display: flex !important;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
  }

  body.pd-mode-partial #pd-section-services.pd-active {
    height: 100%;
    overflow: hidden;
  }

  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"],
  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"] > .pd-pane-card,
  body.pd-mode-partial #pd-section-services.pd-active .provider-services-form {
    overflow: hidden !important;
  }

  body.pd-mode-partial #pd-section-services.pd-active .provider-services-toolbar,
  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"] > .pd-pane-card > h3,
  body.pd-mode-partial #pd-section-services.pd-active > [data-provider-partial-workspace="services"] > .pd-pane-card > p {
    flex: 0 0 auto;
  }

  body.pd-mode-partial #pd-section-services.pd-active .provider-services-catalog {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch;
  }

  body.pd-mode-partial [data-provider-partial-workspace="services"] .provider-services-actionbar {
    --ps-mobile-tabbar-height: var(--es-mobile-tabbar-height, 68px);

    position: fixed;
    z-index: 999;
    right: auto;
    bottom: calc(var(--ps-mobile-tabbar-height) + var(--es-mobile-shell-safe-bottom, env(safe-area-inset-bottom, 0px)));
    left: 50%;
    width: 100%;
    max-width: 430px;
    min-height: 76px;
    transform: translateX(-50%);
    border-width: 1px 0 0;
    border-radius: 0;
  }

  html[data-es-keyboard-open="true"] body[data-mobile-dashboard-role="provider"].pd-services-detail-open #providerDashboardMain {
    padding-bottom: 96px !important;
    scroll-padding-bottom: 96px;
  }

  html[data-es-keyboard-open="true"] body.pd-services-detail-open .provider-services-actionbar {
    bottom: 0;
  }

  html[data-es-keyboard-open="true"] body.pd-mode-partial [data-provider-partial-workspace="services"] .provider-services-actionbar {
    bottom: 0;
  }

  html[data-es-native-shell="true"] body[data-mobile-dashboard-role="provider"].pd-services-detail-open,
  html[data-es-native-shell="true"] body.pd-mode-partial [data-provider-partial-workspace="services"] .provider-services-actionbar {
    --ps-mobile-tabbar-height: 60px;
  }
}

@media (width <= 360px) {
  body.pd-services-detail-open [data-provider-settings-tabs][data-mobile-settings-tab="services"] .pd-mobile-settings-detail-header,
  body.pd-services-detail-open .provider-services-form {
    margin-inline: -12px !important;
  }

  body.pd-services-detail-open .provider-services-toolbar {
    padding-inline: 12px;
  }

  body.pd-services-detail-open .provider-services-catalog {
    margin-inline: 12px !important;
  }

  .provider-services-bulk {
    gap: 2px;
  }

  .provider-services-toolbar button.provider-services-select-all,
  .provider-services-toolbar button.provider-services-clear {
    padding-inline: 5px !important;
  }

  .provider-service-card__top {
    padding-inline: 12px;
  }

  .provider-services-actionbar {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-services-form *,
  .provider-services-form *::before,
  .provider-services-form *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }


  .provider-services-loading__spinner {
    animation: none;
  }
}

@media (forced-colors: active) {
  .provider-service-card__mark,
  .provider-service-issue-row__mark,
  .provider-services-save {
    forced-color-adjust: none;
  }
}

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