.hrs-widget {
  --hrs-bg: #fff8f0;
  --hrs-panel: #ffffff;
  --hrs-text: #1f2937;
  --hrs-primary: #0f172a;
  --hrs-accent: #ea580c;
  --hrs-muted: #6b7280;
  background: radial-gradient(circle at top right, #ffe4c7 0, var(--hrs-bg) 40%, #fff 100%);
  border: 1px solid #fed7aa;
  border-radius: 18px;
  color: var(--hrs-text);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.hrs-widget.hrs-widget--inherit {
  --hrs-bg: transparent;
  --hrs-panel: transparent;
  --hrs-text: inherit;
  --hrs-primary: #0f172a;
  --hrs-accent: #ea580c;
  --hrs-muted: #475569;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  font-family: inherit;
  padding: 0;
}

.hrs-widget.hrs-widget--inherit .hrs-step {
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.hrs-widget__hero h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.hrs-widget__hero p {
  color: var(--hrs-muted);
  margin: 0.35rem 0 1rem;
}

.hrs-front-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.hrs-front-tab {
  background: #fff;
  border: 1px solid #fdba74;
  border-radius: 999px;
  color: var(--hrs-primary);
  cursor: pointer;
  font-weight: 600;
  padding: 8px 14px;
}

.hrs-front-tab.is-active {
  background: var(--hrs-primary);
  border-color: var(--hrs-primary);
  color: #fff;
}

.hrs-front-panel {
  display: none;
}

.hrs-front-panel.is-active {
  display: block;
}

.hrs-step {
  background: var(--hrs-panel);
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin: 0 0 16px;
  padding: 16px;
}

.hrs-step h4 {
  margin: 0 0 10px;
  color: var(--hrs-primary);
}

.hrs-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.hrs-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hrs-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hrs-grid--one {
  grid-template-columns: 1fr;
}

.hrs-grid label span {
  display: block;
  font-size: 0.85rem;
  color: var(--hrs-muted);
  margin-bottom: 0.2rem;
}

.hrs-grid input,
.hrs-grid select,
.hrs-grid textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  width: 100%;
  padding: 9px 10px;
}

.hrs-slots {
  display: grid;
  gap: 10px;
}

.hrs-service-slots {
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px;
}

.hrs-service-title {
  color: var(--hrs-primary);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.hrs-slots-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hrs-slot {
  background: #fff;
  border: 1px solid #fdba74;
  border-radius: 999px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 8px 14px;
  transition: all 0.15s ease;
}

.hrs-slot:hover {
  border-color: var(--hrs-accent);
  transform: translateY(-1px);
}

.hrs-slot.is-selected {
  background: var(--hrs-primary) !important;
  border-color: var(--hrs-primary) !important;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
  color: #fff !important;
}

.hrs-slot.is-selected:hover,
.hrs-slot.is-selected:focus,
.hrs-slot.is-selected:active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.hrs-slot.is-disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
}

.hrs-widget .button,
.hrs-widget button.button,
.hrs-widget a.button {
  appearance: none;
  align-items: center;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: var(--hrs-primary) !important;
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  font-size: 14px !important;
  min-height: 42px;
  padding: 10px 16px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: all 0.18s ease;
}

.hrs-widget .button:hover,
.hrs-widget button.button:hover,
.hrs-widget a.button:hover {
  border-color: var(--hrs-accent) !important;
  color: var(--hrs-accent) !important;
  transform: translateY(-1px);
}

.hrs-widget .button.button-primary,
.hrs-widget button.button.button-primary,
.hrs-widget a.button.button-primary,
.hrs-widget .hrs-menu-action.is-selected {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

.hrs-widget .button.button-primary:hover,
.hrs-widget button.button.button-primary:hover,
.hrs-widget a.button.button-primary:hover,
.hrs-widget .hrs-menu-action.is-selected:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.hrs-widget .button.button-small,
.hrs-widget button.button.button-small,
.hrs-widget a.button.button-small {
  min-height: 36px;
  padding: 8px 12px !important;
}

.hrs-widget .button:disabled,
.hrs-widget button.button:disabled,
.hrs-widget a.button[aria-disabled="true"] {
  background: #e5e7eb !important;
  border-color: #e5e7eb !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.hrs-submit {
  min-width: 220px;
}

.hrs-step .button + .button,
.hrs-step button + button,
.hrs-manage-actions .button {
  margin-left: 0;
}

.hrs-slots-info {
  color: var(--hrs-muted);
  font-size: 0.86rem;
  margin: 10px 0 0;
}

.hrs-waitlist-btn {
  margin-top: 10px;
}

.hrs-waitlist-feedback {
  color: var(--hrs-primary);
  font-size: 0.86rem;
  font-weight: 600;
  margin: 8px 0 0;
}

.hrs-checkbox {
  align-items: flex-start;
  display: flex;
  font-size: 0.85rem;
  gap: 8px;
  margin-bottom: 6px;
}

.hrs-feedback {
  color: var(--hrs-primary);
  font-weight: 600;
  margin-top: 8px;
}

.hrs-manage-step {
  background: #fff;
  border: 1px solid #dbe6f7;
  border-radius: 12px;
}

.hrs-manage-request {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.hrs-manage-request input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  width: 100%;
}

.hrs-manage-feedback,
.hrs-manage-editor-feedback {
  color: #0f172a;
  font-weight: 600;
  margin: 10px 0 0;
}

.hrs-manage-results {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hrs-manage-results-list {
  display: grid;
  gap: 6px;
}

.hrs-manage-result-item {
  background: #f8fafc;
  border: 1px solid #d6e2f3;
  border-radius: 9px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 8px 10px;
  text-align: left;
}

.hrs-manage-result-item:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.hrs-manage-order-list {
  border: 1px solid #d6e2f3;
  border-radius: 10px;
  overflow-x: auto;
  background: #ffffff;
}

.hrs-manage-order-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.hrs-manage-order-table th,
.hrs-manage-order-table td {
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.hrs-manage-order-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.hrs-manage-order-row {
  cursor: pointer;
}

.hrs-manage-order-row.is-active td {
  background: #eff6ff;
}

.hrs-manage-order-row .is-ref {
  font-weight: 700;
  white-space: nowrap;
}

.hrs-manage-order-row .is-action {
  text-align: right;
}

.hrs-manage-order-action {
  white-space: nowrap;
}

.hrs-special-menus-panel {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.hrs-special-menus-panel h5 {
  margin: 0 0 6px;
}

.hrs-special-menus-info {
  margin: 0 0 12px;
  color: #475569;
}

.hrs-special-menus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.hrs-special-menu-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hrs-special-menu-card.is-selected {
  border-color: rgba(14, 116, 144, 0.42);
  box-shadow: 0 16px 34px rgba(14, 116, 144, 0.16);
}

.hrs-special-menu-image {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.hrs-special-menu-content {
  padding: 16px;
}

.hrs-special-menu-content h6 {
  margin: 0 0 8px;
  font-size: 16px;
}

.hrs-special-menu-desc {
  margin-bottom: 10px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.hrs-special-menu-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 13px;
}

.hrs-manage-editor {
  border-color: #bfdbfe;
}

.hrs-manage-ref {
  color: var(--hrs-muted);
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.hrs-manage-status {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
}

.hrs-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hrs-manage-order-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 12px 0 4px;
}

.hrs-manage-order-card {
  background: #f8fafc;
  border: 1px solid #dbe6f7;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.hrs-manage-order-card strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.hrs-manage-order-card span {
  color: #334155;
  font-size: 0.86rem;
}

/* Add-ons used by the JS (slot summary + validation). */
.hrs-selection-summary {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.hrs-selection-summary.is-ready {
  color: var(--hrs-primary);
}

.hrs-field-invalid,
.hrs-grid input.hrs-field-invalid,
.hrs-grid select.hrs-field-invalid,
.hrs-grid textarea.hrs-field-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.hrs-menu-action.is-selected {
  background: var(--hrs-primary) !important;
  border-color: var(--hrs-primary) !important;
  color: #ffffff !important;
}

.hrs-menu-qty {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hrs-menu-qty-input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  max-width: 88px;
  padding: 8px 10px;
  text-align: center;
}

.hrs-menu-qty-btn {
  min-width: 40px;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 768px) {
  .hrs-grid--three,
  .hrs-grid--two {
    grid-template-columns: 1fr;
  }

  .hrs-widget {
    border-radius: 14px;
    padding: 16px;
  }

  .hrs-front-tab {
    font-size: 0.9rem;
    width: 100%;
  }

  .hrs-manage-request {
    grid-template-columns: 1fr;
  }
}
