.hk-services {
  padding-block: 24px 48px;
  overflow-wrap: anywhere;
}

.hk-service-search {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.hk-service-search .ec-field {
  flex: 1 1 200px;
}

.hk-service-search button {
  margin-bottom: 1px;
}

.hk-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hk-service-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hk-service-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.hk-service-card > .ec-stack,
.hk-service-card-body {
  padding: 24px;
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.hk-service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.hk-service-card h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}

.hk-service-card p {
  margin: 0;
}

.hk-service-desc {
  line-height: 1.75;
  font-size: 13.5px;
}

.hk-service-meta,
.hk-service-admin-meta {
  font-size: 12.5px;
  line-height: 1.6;
}

.hk-service-card-footer {
  margin-top: auto !important;
  padding-top: 16px;
  border-top: 1px solid var(--ec-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.hk-service-card-footer .ec-btn {
  margin: 0 !important;
  align-self: center !important;
}

.hk-service-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ec-text);
  line-height: 1.3;
  white-space: nowrap;
}

.hk-slot-card {
  gap: 12px !important;
}

.hk-slot-time {
  font-size: 13px;
  line-height: 1.65;
}

.hk-service-paging {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
}

.hk-service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.hk-service-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.hk-service-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--ec-surface-alt);
  border: 1px solid var(--ec-border);
}

.hk-service-facts dt {
  font-weight: 700;
}

.hk-service-facts dd {
  margin: 0;
}

.hk-slot {
  min-width: 0;
}

.hk-slot legend {
  padding: 0 12px;
  font-weight: 700;
}

.hk-slot input[type=datetime-local] {
  direction: ltr;
}

.hk-services input:disabled,
.hk-services select:disabled {
  opacity: 0.7;
}

.hk-services button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hk-booking summary {
  cursor: pointer;
  font-weight: 700;
  padding-block: 10px;
}

.hk-booking h2 {
  font-size: 21px;
}

.hk-attendance {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.hk-attendance .ec-field {
  flex: 1;
}

.hk-services :is([role=alert]) {
  color: var(--ec-text);
}

@media (max-width: 1000px) {
  .hk-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hk-book-card > img {
  height: 260px;
  object-fit: contain;
  padding: 18px;
  background: var(--ec-surface-alt);
}

.hk-book-cover {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  align-self: center;
}

.ec-web-nav {
  flex-wrap: wrap;
}

.hk-service-grid > .ec-empty {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .hk-service-grid,
  .hk-service-detail {
    grid-template-columns: 1fr;
  }
  .hk-service-search {
    align-items: stretch;
  }
  .hk-service-search button {
    width: 100%;
  }
  .hk-service-facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .hk-service-facts dd {
    margin-bottom: 12px;
  }
  .hk-services .ec-form-grid {
    grid-template-columns: 1fr;
  }
  .hk-booking .ec-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
