/* Category tabs scroll on mobile; service cards share the OTT layout. */
.party-category-tabs,
.create-category-picker {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  padding: 3px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.party-category-tab,
.create-category-picker button {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid #e1e9f2;
  border-radius: 999px;
  background: #fff;
  color: #61738a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.party-category-tab[aria-pressed="true"],
.create-category-picker button[aria-pressed="true"],
.create-category-picker button.active {
  border-color: #1374c7;
  background: #1374c7;
  color: #fff;
  box-shadow: 0 4px 12px rgb(22 132 229 / 14%);
}

.party-category-tab:focus-visible,
.create-category-picker button:focus-visible,
.party-service-more:focus-visible,
.party-service-status button:focus-visible,
.party-service-status a:focus-visible {
  outline: 3px solid #7fbbf0;
  outline-offset: 3px;
}

body.page-list .party-category-picker {
  min-width: 0;
  margin-bottom: 26px;
}

body.page-list .party-service-picker {
  min-width: 0;
  margin-bottom: 24px;
}

.party-service-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 4px;
}

.party-service-picker-title {
  margin: 0;
  color: #344459;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -.035em;
}

.party-service-picker-description {
  margin: 4px 0 0;
  color: #77879b;
  font-size: 12px;
  line-height: 1.5;
}

body.page-list .party-service-options:not(.party-service-options--ott) .party-service-option:nth-child(4n + 2) {
  background: #edf5ff;
}

body.page-list .party-service-options:not(.party-service-options--ott) .party-service-option:nth-child(4n + 3) {
  background: #f4f0ff;
}

body.page-list .party-service-options:not(.party-service-options--ott) .party-service-option:nth-child(4n + 4) {
  background: #fff1f6;
}

body.page-list .party-service-options:not(.party-service-options--ott) .party-service-option:nth-child(4n + 5) {
  background: #eef7f3;
}

body.page-list .party-service-options:not(.party-service-options--ott) .party-service-name {
  text-align: center;
  white-space: nowrap;
}

.party-service-availability {
  margin-top: 2px;
  color: #7b8899;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

body.page-list .party-service-picker .party-service-option:focus-visible {
  outline: 3px solid #7fbbf0;
  outline-offset: 2px;
}

.party-service-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 0 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #247bc4;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}

.party-service-more[aria-expanded="true"]::after {
  transform: rotate(-90deg);
}

.party-service-more::after {
  margin-left: 6px;
  content: "›";
  font-size: 19px;
  line-height: 1;
}

.party-category-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef5fc;
  color: #56718f;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.finder-preview-logo.party-service-monogram,
.detail-categories .party-service-monogram,
.recruitment-host > .party-service-monogram {
  display: grid;
  place-items: center;
  background: #e8f4ff;
  color: #126db6;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.finder-preview-logo.party-service-monogram {
  font-size: 18px;
}

.detail-categories .party-service-monogram {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 9px;
}

.recruitment-host > .party-service-monogram {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  font-size: 14px;
}

.party-plan-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 4px 0 0;
  color: #6f8095;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.party-service-status,
.create-service-status {
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid #dbe9f7;
  border-radius: 16px;
  background: #f3f9ff;
  color: #59738e;
  font-size: 12px;
  line-height: 1.6;
}

.party-service-status strong,
.party-service-status > b,
.create-service-status strong,
.create-service-status > b {
  display: block;
  color: #285d8c;
  font-size: 15px;
  line-height: 1.5;
}

.party-service-status p,
.create-service-status p {
  margin: 5px 0 0;
}

.party-service-status button,
.party-service-status a,
.create-service-status a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 15px;
  border: 1px solid #9dcef7;
  border-radius: 11px;
  background: #fff;
  color: #126db6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.create-category-picker {
  margin-bottom: 12px;
}

.create-category-picker button {
  padding-inline: 15px;
  font-size: 12px;
}

.create-service-status {
  margin-top: 14px;
}

.party-service-status[hidden],
.create-service-status[hidden],
.create-plan-field[hidden] {
  display: none;
}

body.page-list .party-service-options[hidden],
.party-service-more[hidden] {
  display: none;
}

.create-party-page .create-service-picker {
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
}

.create-party-page .create-service-picker button > span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  margin-inline: auto;
  place-items: center;
  border-radius: 10px;
  background: #f3f7fc;
}

.create-service-picker .party-service-monogram {
  color: #247bc4;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.create-party-page .create-service-picker button > span:nth-child(2) {
  white-space: normal;
  word-break: keep-all;
  line-height: 1.4;
}

.create-service-picker button > small {
  color: #7b8899;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.create-party-page .create-service-picker button:focus-visible {
  outline: 3px solid #7fbbf0 !important;
  outline-offset: 2px;
}

@media (min-width: 801px) {
  body.page-list .party-service-options .party-service-option {
    height: 120px;
    min-height: 120px;
  }

  body.page-list .party-service-options:not(.has-combined-service) {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.page-list .party-list > .party-service-status {
    min-height: 180px;
    align-self: start;
    padding: 28px 24px;
  }
}

@media (hover: hover) {
  .party-category-tab:not([aria-pressed="true"]):hover,
  .create-category-picker button:not([aria-pressed="true"]):hover {
    border-color: #aad2f4;
    background: #f3f9ff;
    color: #247bc4;
  }
}

@media (max-width: 800px) {
  body.page-list .party-service-options:not(.party-service-options--ott) .party-service-availability {
    display: none;
  }

  body.page-list .party-service-options .party-service-option {
    height: 85px;
    min-height: 85px;
  }

  body.page-list .party-service-options .party-service-option .party-service-name {
    white-space: nowrap;
  }

  .detail-categories .party-service-monogram {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    margin-right: 4px;
  }

  .party-category-tabs {
    gap: 5px;
    padding-bottom: 9px;
    scrollbar-width: none;
  }

  .party-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .party-category-tab {
    min-height: 44px;
    padding-inline: 15px;
    font-size: 12px;
  }

  body.page-list .party-category-picker,
  body.page-list .party-service-picker {
    margin-bottom: 15px;
  }

  .party-service-more {
    margin-top: 1px;
    font-size: 11px;
  }

  .party-service-picker-title {
    font-size: 18px;
  }

  .party-service-picker-description {
    font-size: 11px;
  }

  .party-service-status,
  .create-service-status {
    padding: 15px;
  }

  .create-category-picker {
    gap: 5px;
    padding-bottom: 9px;
  }

  .create-party-page .create-service-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
