* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #0f2a43; background: #ffffff; height: 100%; }
#rzw-root { display: flex; flex-direction: column; height: 100vh; max-width: 1400px; margin: 0 auto; width: 100%; }

.rzw-header { padding: 18px 22px 14px; border-bottom: 1px solid #e6ecf2; flex-shrink: 0; }
.rzw-header-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rzw-header h2 { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.rzw-header p { margin: 0; font-size: 13px; color: #64748b; }
.rzw-customer-login { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--rzw-accent, #0b84d8); text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rzw-accent, #0b84d8); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.rzw-customer-login:hover { background: var(--rzw-accent, #0b84d8); color: #fff; }

.rzw-steps { display: flex; gap: 8px; padding: 12px 22px 0; flex-shrink: 0; }
.rzw-step { flex: 1; text-align: center; padding: 8px 6px; border-radius: 10px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #94a3b8; }
.rzw-step.active { background: var(--rzw-accent, #0b84d8); color: #fff; }

.rzw-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.rzw-notice { background: #ecfeff; border: 1px solid #bae6fd; color: #155e75; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.rzw-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

.rzw-field { margin-bottom: 14px; }
.rzw-field label { display: block; font-size: 12px; font-weight: 700; color: #475569; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }

/* Checkbox in widget checkout (e.g. "Create an account") */
.rzw-field .rzw-checkbox-row { display: flex !important; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #0f2a43; cursor: pointer; text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
.rzw-field .rzw-checkbox-row input[type="checkbox"] { width: 48px; height: 48px; flex-shrink: 0; cursor: pointer; accent-color: var(--rzw-accent, #0b84d8); border: 2px solid #d7e0ea; border-radius: 8px; margin: 0; }
.rzw-field input, .rzw-field select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d7e0ea; font-size: 14px; font-family: inherit; background: #fff; }
.rzw-field input:focus, .rzw-field select:focus { outline: 2px solid var(--rzw-accent, #0b84d8); border-color: transparent; }

/* Custom-styled select dropdown — replaces the default browser arrow with a clean chevron */
.rzw-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rzw-field select:hover { border-color: #b0bec5; }
.rzw-field select:focus { box-shadow: 0 0 0 3px rgba(11,132,216,0.12); }
.rzw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rzw-row .rzw-field { flex: 1; min-width: 140px; }

.rzw-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 6px; }
.rzw-cat-card { border: 2px solid #e6ecf2; border-radius: 14px; padding: 16px 12px; text-align: center; background: #fff; cursor: pointer; transition: 0.15s; max-width: 300px; width: 100%; justify-self: center; }
.rzw-cat-card:hover { border-color: var(--rzw-accent, #0b84d8); transform: translateY(-2px); }
.rzw-cat-card .icon { font-size: 30px; margin-bottom: 8px; }
.rzw-cat-card .icon.rzw-has-img { font-size: inherit; overflow: hidden; }
.rzw-cat-card .icon.rzw-has-img img { display: block; width: 100%; max-width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }
.rzw-cat-card h4 { margin: 0 0 4px; font-size: 14px; }
.rzw-cat-card p { margin: 0; font-size: 11px; color: #64748b; }

.rzw-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rzw-slot-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid #d7e0ea; background: #fff; font-size: 13px; cursor: pointer; }
.rzw-slot-btn.active { background: var(--rzw-accent, #0b84d8); color: #fff; border-color: transparent; }

.rzw-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.rzw-item-card { border: 1px solid #e6ecf2; border-radius: 14px; overflow: hidden; background: #fff; max-width: 300px; width: 100%; justify-self: center; }
.rzw-item-card .thumb { height: 180px; min-height: 180px; background: linear-gradient(135deg, #e0f2fe, #f0fdfa); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; }
.rzw-item-card .thumb.rzw-has-img { font-size: inherit; }
.rzw-item-card .thumb.rzw-has-img img { display: block; width: 100%; height: 100%; }
.rzw-item-card .body { padding: 12px; }
.rzw-item-card h4 { margin: 0 0 4px; font-size: 14px; }
.rzw-item-card .rzw-item-desc { margin: 0 0 8px; font-size: 12px; color: #64748b; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.rzw-item-card .price { font-size: 13px; color: var(--rzw-accent, #0b84d8); font-weight: 800; margin-bottom: 8px; }
.rzw-item-card .avail { font-size: 11px; color: #64748b; margin-bottom: 8px; }
.rzw-add-row { display: flex; gap: 8px; align-items: center; }
.rzw-add-row input { width: 52px; padding: 6px; border-radius: 8px; border: 1px solid #d7e0ea; text-align: center; }
.rzw-add-row .rzw-btn { flex: 1; }

.rzw-tier-section { display: flex; flex-direction: column; gap: 8px; }
.rzw-tier-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rzw-tier-label { font-size: 12px; font-weight: 700; color: #0f2a43; }
.rzw-tier-total { font-size: 12px; color: var(--rzw-accent, #0b84d8); font-weight: 800; min-height: 16px; }
.rzw-stepper { display: flex; align-items: center; border: 1px solid #d7e0ea; border-radius: 8px; overflow: hidden; }
.rzw-step-btn { border: none; background: #f1f5f9; color: #0f2a43; width: 28px; height: 30px; font-size: 15px; font-weight: 800; cursor: pointer; line-height: 1; }
.rzw-step-btn:hover { background: #e2e8f0; }
.rzw-stepper input { width: 42px; border: none; border-left: 1px solid #d7e0ea; border-right: 1px solid #d7e0ea; text-align: center; height: 30px; font-weight: 700; font-size: 13px; -moz-appearance: textfield; }
.rzw-stepper input::-webkit-outer-spin-button, .rzw-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rzw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 10px; border: none; background: var(--rzw-accent, #0b84d8); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.rzw-btn.secondary { background: #f1f5f9; color: #0f2a43; }
.rzw-btn.small { padding: 7px 12px; font-size: 12px; }
.rzw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.rzw-cart-summary { background: #f8fafc; border-radius: 14px; padding: 14px; margin-top: 16px; }
.rzw-cart-line { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.rzw-cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; border-top: 1px solid #e2e8f0; margin-top: 8px; padding-top: 8px; }
.rzw-cart-header { font-size: 14px; font-weight: 700; color: #0f2a43; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.rzw-cart-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.rzw-cart-item:last-child { border-bottom: none; }
.rzw-cart-item-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 2px; }
.rzw-cart-item-name { font-size: 13px; font-weight: 600; color: #0f2a43; }
.rzw-cart-item-price { font-size: 11px; color: #64748b; }
.rzw-cart-item-controls { display: flex; align-items: center; gap: 8px; }
.rzw-cart-item-total { font-size: 13px; font-weight: 700; color: #0f2a43; min-width: 60px; text-align: right; }
.rzw-stepper-sm .rzw-step-btn { width: 24px; height: 26px; font-size: 14px; }
.rzw-stepper-sm input { width: 36px; height: 26px; font-size: 12px; }
.rzw-cart-remove { font-size: 11px; padding: 4px 10px; white-space: nowrap; }
.rzw-coupon-box { margin-top: 12px; margin-bottom: 4px; }
.rzw-coupon-entry { display: flex; gap: 8px; }
.rzw-coupon-entry input { flex: 1; padding: 10px 12px; border: 1px solid #d7e2ea; border-radius: 10px; font-size: 14px; text-transform: uppercase; }
.rzw-coupon-applied { display: flex; justify-content: space-between; align-items: center; background: #f0fbf6; border: 1px solid #bfe8d5; border-radius: 10px; padding: 10px 12px; color: #16a34a; font-weight: 600; font-size: 13px; }
.rzw-coupon-error { color: #dc2626; background: #fef2f2; border-color: #fecaca; margin-top: 8px; }

.rzw-footer { padding: 14px 22px; border-top: 1px solid #e6ecf2; flex-shrink: 0; display: flex; justify-content: space-between; gap: 10px; background: #fff; }

.rzw-success { text-align: center; padding: 40px 20px; }
.rzw-success .emoji { font-size: 54px; margin-bottom: 10px; }
.rzw-success h3 { margin: 0 0 8px; }
.rzw-success p { color: #64748b; margin: 0 0 4px; }

.rzw-loading { text-align: center; padding: 60px 20px; color: #64748b; }

/* Visual signature preview — shows the typed signature in a script/cursive font
   in a styled box, just like the phone-booking admin app. Updates as the user types. */
.rzw-signature-line {
  height: 64px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d7e2ea;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
  font-size: 30px;
  color: #102033;
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.rzw-signature-line.empty {
  color: #94a3b8;
  font-size: 14px;
  font-family: inherit;
  font-style: italic;
}

@media (max-width: 560px) {
  .rzw-header h2 { font-size: 16px; }
  .rzw-steps { padding: 10px 14px 0; }
  .rzw-body { padding: 14px; }
  .rzw-footer { padding: 12px 14px; }
}

/* Hide inline editor controls injected by hosting platform */
#gjs-controls { display: none !important; }
