.wc-cb-activity-form {
  background: linear-gradient(120deg, #f5f7fa 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.wc-cb-activity-form .hilucy-activity-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.hilucy-activity-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0;
}

.hilucy-activity-value {
  font-size: 15px;
  font-weight: 600;
  margin: 2px 0 0;
  color: #111827;
}

.wc-cb-activity-form .hilucy-activity-price .hilucy-activity-value {
  font-size: 18px;
}

.wc-cb-activity-form .hilucy-activity-tz {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #4b5563;
  margin: 0;
}

.hilucy-activity-addons {
  border-top: 1px solid #e5e7eb;
  margin-top: 12px;
  padding-top: 12px;
}

.hilucy-activity-addons ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hilucy-activity-addons li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.hilucy-activity-addon-fee {
  color: #2563eb;
  font-weight: 600;
}

.hilucy-activity-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.hilucy-activity-status--error,
.hilucy-activity-status--past {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.hilucy-activity-status--soldout {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Hide the default Woo button so only the tailored CTA appears */
form.cart .single_add_to_cart_button:not(.hilucy-book-now-button) {
  display: none;
}

.single-product .summary form.cart,
.hilucy-branding-active.single-product .woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.single-product .summary form.cart > .wc-cb-activity-form,
.single-product .summary form.cart > .hilucy-staff-availability,
.single-product .summary form.cart > .hilucy-selected-slot,
.single-product .summary form.cart > .hilucy-activity-status,
.single-product .summary form.cart > .hilucy-activity-addons,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .wc-cb-activity-form,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .hilucy-staff-availability,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .hilucy-selected-slot,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .hilucy-activity-status,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .hilucy-activity-addons {
  flex: 0 0 100%;
}

.single-product .summary form.cart > .quantity,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .quantity {
  display: flex;
  align-items: stretch;
  margin: 0;
  flex: 0 0 auto;
}

.single-product .summary form.cart > .quantity .qty,
.hilucy-branding-active.single-product .woocommerce div.product form.cart > .quantity .qty {
  min-height: 46px;
}

.single-product .summary button.single_add_to_cart_button.button.alt,
.hilucy-branding-active.single-product .woocommerce div.product form.cart button.single_add_to_cart_button.button.alt,
.hilucy-branding-active.single-product .woocommerce div.product button.single_add_to_cart_button.button.alt,
.single-product .summary .hilucy-book-now-button,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .hilucy-book-now-button,
.hilucy-branding-active.single-product .woocommerce div.product .hilucy-book-now-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  box-sizing: border-box;
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  float: none;
  overflow: visible;
  line-height: 1.2;
}

.single-product .summary .hilucy-book-now-button--with-quantity,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .hilucy-book-now-button--with-quantity,
.hilucy-branding-active.single-product .woocommerce div.product .hilucy-book-now-button--with-quantity {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  min-height: 46px;
  padding: 12px 18px;
  margin: 0;
  align-self: stretch;
}

.single-product .summary button.single_add_to_cart_button.button.alt:hover,
.single-product .summary button.single_add_to_cart_button.button.alt:focus,
.hilucy-branding-active.single-product .woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:hover,
.hilucy-branding-active.single-product .woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:focus,
.hilucy-branding-active.single-product .woocommerce div.product button.single_add_to_cart_button.button.alt:hover,
.hilucy-branding-active.single-product .woocommerce div.product button.single_add_to_cart_button.button.alt:focus,
.single-product .summary .hilucy-book-now-button:hover,
.single-product .summary .hilucy-book-now-button:focus,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .hilucy-book-now-button:hover,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .hilucy-book-now-button:focus,
.hilucy-branding-active.single-product .woocommerce div.product .hilucy-book-now-button:hover,
.hilucy-branding-active.single-product .woocommerce div.product .hilucy-book-now-button:focus {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.single-product .summary button.single_add_to_cart_button.button.alt:active,
.hilucy-branding-active.single-product .woocommerce div.product form.cart button.single_add_to_cart_button.button.alt:active,
.hilucy-branding-active.single-product .woocommerce div.product button.single_add_to_cart_button.button.alt:active,
.single-product .summary .hilucy-book-now-button:active,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .hilucy-book-now-button:active,
.hilucy-branding-active.single-product .woocommerce div.product .hilucy-book-now-button:active {
  transform: translateY(1px);
}

.hilucy-staff-availability {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.hilucy-staff-availability__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.hilucy-staff-availability__header .hilucy-activity-value {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}
.hilucy-staff-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.hilucy-staff-card__slots{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.hilucy-staff-card__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.hilucy-staff-card__name {
  font-weight: 700;
  margin: 0;
}
.hilucy-staff-card__role {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.hilucy-staff-card__slots {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.hilucy-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.hilucy-slot:hover:not(.is-unavailable) {
  border-color: #2563eb;
  box-shadow: 0 6px 18px rgba(37,99,235,0.16);
  transform: translateY(-1px);
}
.hilucy-slot.is-selected {
  border-color: #2563eb;
  background: #eef2ff;
  box-shadow: 0 6px 18px rgba(37,99,235,0.18);
}
.hilucy-slot.is-unavailable {
  opacity: .5;
  cursor: not-allowed;
}
.hilucy-slot__date {
  font-weight: 600;
  color: #0f172a;
}
.hilucy-slot__time {
  color: #1e293b;
}
.hilucy-slot__status {
  font-size: 12px;
  color: #475569;
}
.hilucy-day-selector{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:4px 2px 2px;
}
.hilucy-day-btn{
  border:1px solid #e5e7eb;
  background:#fff;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  white-space:nowrap;
  font-weight:700;
}
.hilucy-day-btn.is-active{
  border-color:#2563eb;
  background:#eef2ff;
  color:#111827;
}
.hilucy-slot-list{
  display:none;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:8px;
  max-height:360px;
  overflow-y:auto;
  padding:4px 2px;
}
.hilucy-slot-list.is-active{
  display:grid;
}
.hilucy-slot-empty {
  margin: 0;
  color: #6b7280;
}
.hilucy-selected-slot {
  margin: 8px 0;
  font-weight: 600;
  color: #0f172a;
}

/* ── Deferred Acuity skeleton loading ──────────────────────────── */
.hilucy-staff-availability--loading {
  min-height: 120px;
}
.hilucy-acuity-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
}
.hilucy-skeleton-shimmer {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: hilucyShimmer 1.4s ease-in-out infinite;
}
.hilucy-skeleton-text {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}
@keyframes hilucyShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
