/* Groot Hospitality — local Toast-style eGift card shop (dark site theme) */

#gh-giftcard-app {
  --gh-gc-bg: #111111;
  --gh-gc-surface: #1c1c1c;
  --gh-gc-surface-hover: #252525;
  --gh-gc-border: rgba(255, 255, 255, 0.28);
  --gh-gc-border-focus: rgba(255, 255, 255, 0.55);
  --gh-gc-text: #ffffff;
  --gh-gc-muted: #b0b0b0;
  --gh-gc-accent: #ffffff;
  --gh-gc-accent-fg: #111111;
  --gh-gc-danger: #f81800;
  --gh-gc-input-bg: #141414;
  color: var(--gh-gc-text);
}

body.gh-giftcard-page .site-content,
body.gh-giftcard-page #content,
body.gh-giftcard-page .ast-container,
body.gh-giftcard-page #primary,
body.gh-giftcard-page .site-main,
body.gh-giftcard-page article,
body.gh-giftcard-page .entry-content {
  background: transparent !important;
  color: #ffffff !important;
}

body.gh-giftcard-page .entry-content h1,
body.gh-giftcard-page .entry-content h2,
body.gh-giftcard-page .entry-content h3,
body.gh-giftcard-page .entry-content p,
body.gh-giftcard-page .entry-content label,
body.gh-giftcard-page .entry-content li,
body.gh-giftcard-page .entry-content span,
body.gh-giftcard-page .entry-content div,
body.gh-giftcard-page .entry-content a:not(.elementor-item):not(.menu-link) {
  color: inherit;
}

#gh-giftcard-app,
#gh-giftcard-app * {
  box-sizing: border-box;
}

#gh-giftcard-app input,
#gh-giftcard-app select,
#gh-giftcard-app textarea {
  color-scheme: dark;
}

#gh-giftcard-app input:-webkit-autofill,
#gh-giftcard-app input:-webkit-autofill:hover,
#gh-giftcard-app input:-webkit-autofill:focus,
#gh-giftcard-app select:-webkit-autofill,
#gh-giftcard-app textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #141414 inset !important;
  box-shadow: 0 0 0 1000px #141414 inset !important;
  caret-color: #ffffff;
}

#gh-giftcard-app select option {
  background: #1c1c1c;
  color: #ffffff;
}

.gh-gc-page {
  color: var(--gh-gc-text);
  font-family: inherit;
  padding: 2rem 1rem 3rem;
}

.gh-gc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .gh-gc-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.gh-gc-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gh-gc-preview-card {
  width: 100%;
  max-width: 432px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gh-gc-border);
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.gh-gc-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gh-gc-preview-meta {
  width: 100%;
  max-width: 432px;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gh-gc-surface);
  border: 1px solid var(--gh-gc-border);
  border-radius: 8px;
  font-size: 14px;
}

.gh-gc-preview-meta p {
  margin: 0.35rem 0;
  color: var(--gh-gc-muted);
}

.gh-gc-preview-meta #gh-gc-preview-message {
  color: var(--gh-gc-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

.gh-gc-preview-meta strong {
  color: var(--gh-gc-text);
}

.gh-gc-preview-balance {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gh-gc-text);
  margin-top: 0.5rem;
}

.gh-gc-form-col {
  max-width: 516px;
  width: 100%;
}

@media (min-width: 992px) {
  .gh-gc-form-col {
    margin: 0 auto;
  }

  .gh-gc-preview-col {
    position: sticky;
    top: 6rem;
  }
}

.gh-gc-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.3;
  color: var(--gh-gc-text);
}

.gh-gc-section {
  margin-bottom: 1.75rem;
}

.gh-gc-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--gh-gc-text);
  letter-spacing: 0.02em;
}

.gh-gc-required {
  color: var(--gh-gc-danger);
}

.gh-gc-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 544px) {
  .gh-gc-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gh-gc-toggle-btn {
  appearance: none;
  border: 1px solid var(--gh-gc-border);
  background: var(--gh-gc-surface);
  color: var(--gh-gc-text);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-gc-toggle-btn:hover {
  background: var(--gh-gc-surface-hover);
  border-color: var(--gh-gc-border-focus);
}

.gh-gc-toggle-btn.is-selected {
  border-color: var(--gh-gc-accent);
  box-shadow: 0 0 0 1px var(--gh-gc-accent);
  background: #2a2a2a;
  color: var(--gh-gc-text);
}

.gh-gc-custom-amount {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--gh-gc-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gh-gc-input-bg);
}

.gh-gc-custom-amount-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #222;
  color: var(--gh-gc-muted);
  font-weight: 600;
  border-right: 1px solid var(--gh-gc-border);
}

.gh-gc-custom-amount input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--gh-gc-text);
  padding: 0.75rem;
  font-size: 16px;
  outline: none;
  min-width: 0;
}

.gh-gc-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gh-gc-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 14px;
  padding: 0.35rem 0;
  color: var(--gh-gc-text);
}

.gh-gc-radio input {
  accent-color: var(--gh-gc-accent);
  width: 18px;
  height: 18px;
}

.gh-gc-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gh-gc-delivery-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 544px) {
  .gh-gc-delivery-grid.three-col {
    grid-template-columns: 1fr;
  }
}

.gh-gc-hint {
  font-size: 13px;
  color: var(--gh-gc-muted);
  margin: 0.5rem 0 0;
}

.gh-gc-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gh-gc-field-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.gh-gc-inputcont {
  margin-bottom: 0.75rem;
}

.gh-gc-inputcont label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--gh-gc-muted);
}

.gh-gc-inputcont input,
.gh-gc-inputcont select,
.gh-gc-inputcont textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--gh-gc-input-bg);
  border: 1px solid var(--gh-gc-border);
  border-radius: 8px;
  color: var(--gh-gc-text);
  padding: 0.7rem 0.85rem;
  font-size: 16px;
  font-family: inherit;
}

.gh-gc-inputcont input::placeholder,
.gh-gc-inputcont textarea::placeholder {
  color: #777777;
  opacity: 1;
}

.gh-gc-inputcont textarea {
  min-height: 88px;
  resize: vertical;
}

.gh-gc-inputcont input:focus,
.gh-gc-inputcont select:focus,
.gh-gc-inputcont textarea:focus {
  outline: none;
  border-color: var(--gh-gc-border-focus);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.gh-gc-inputcont.has-error input,
.gh-gc-inputcont.has-error select,
.gh-gc-inputcont.has-error textarea {
  border-color: var(--gh-gc-danger);
}

.gh-gc-error-msg {
  color: var(--gh-gc-danger);
  font-size: 12px;
  margin-top: 0.25rem;
}

.gh-gc-future-fields {
  display: none;
  margin-top: 0.75rem;
}

.gh-gc-future-fields.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .gh-gc-future-fields.is-visible {
    grid-template-columns: 1fr;
  }
}

.gh-gc-phone-fields,
.gh-gc-email-fields {
  margin-top: 0.75rem;
}

.gh-gc-phone-fields[hidden],
.gh-gc-email-fields[hidden] {
  display: none !important;
}

.gh-gc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gh-gc-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}

.gh-gc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gh-gc-btn-primary {
  background: var(--gh-gc-accent);
  color: var(--gh-gc-accent-fg);
}

.gh-gc-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.gh-gc-btn-secondary {
  background: transparent;
  color: var(--gh-gc-text);
  border: 1px solid var(--gh-gc-border);
}

.gh-gc-btn-secondary:hover:not(:disabled) {
  background: #222;
}

.gh-gc-btn.gh-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.gh-gc-btn.gh-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(17, 17, 17, 0.25);
  border-top-color: #111;
  border-radius: 50%;
  animation: ghGcSpin 0.7s linear infinite;
}

@keyframes ghGcSpin {
  to { transform: rotate(360deg); }
}

/* Cart sidebar */
.gh-gc-cart {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--gh-gc-surface);
  border: 1px solid var(--gh-gc-border);
  border-radius: 8px;
  max-width: 516px;
}

.gh-gc-cart h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.gh-gc-cart-empty {
  color: var(--gh-gc-muted);
  font-size: 14px;
}

.gh-gc-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.gh-gc-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 0.75rem;
  font-size: 16px;
}

/* Checkout overlay */
.gh-gc-checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  color: var(--gh-gc-text);
}

.gh-gc-checkout-overlay[hidden] {
  display: none !important;
}

.gh-gc-checkout-panel {
  width: 100%;
  max-width: 560px;
  max-height: min(90vh, 900px);
  background: var(--gh-gc-bg);
  border: 1px solid var(--gh-gc-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: ghGcFadeIn 0.3s ease;
  color: var(--gh-gc-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.gh-gc-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gh-gc-border);
  background: var(--gh-gc-surface);
}

.gh-gc-checkout-header h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gh-gc-text);
}

.gh-gc-checkout-close {
  background: none;
  border: none;
  color: var(--gh-gc-text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.85;
}

.gh-gc-checkout-close:hover {
  opacity: 1;
}

.gh-gc-checkout-steps {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem 2.5rem;
  gap: 0;
}

.gh-gc-checkout-steps .gh-step {
  flex: 0 0 15px;
  position: relative;
}

.gh-gc-checkout-steps .gh-step.active,
.gh-gc-checkout-steps .gh-step.done {
  flex: 0 0 36px;
}

.gh-gc-checkout-steps .gh-step-dot {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #2e3031;
  margin: 0 auto;
}

.gh-gc-checkout-steps .gh-step.active .gh-step-dot,
.gh-gc-checkout-steps .gh-step.done .gh-step-dot {
  width: 36px;
  height: 36px;
  border: 14px solid #2e3031;
  background: transparent;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.gh-gc-checkout-steps .gh-step.done .gh-step-dot {
  border-width: 1px;
  background: #2e3031;
  position: relative;
}

.gh-gc-checkout-steps .gh-step.done .gh-step-dot::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.gh-gc-checkout-steps .gh-step-line {
  flex: 1;
  height: 2px;
  background: #2e3031;
}

.gh-gc-checkout-steps .gh-step-label {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--gh-gc-muted);
  width: 80px;
  text-align: center;
}

.gh-gc-checkout-steps .gh-step.active .gh-step-label {
  color: var(--gh-gc-text);
}

.gh-gc-checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.25rem 1rem;
  background: var(--gh-gc-bg);
}

.gh-gc-checkout-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--gh-gc-border);
  background: var(--gh-gc-surface);
}

.gh-gc-section-heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--gh-gc-text);
}

.gh-gc-input-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gh-gc-input-row-2 {
  grid-template-columns: 1fr 1fr;
}

.gh-gc-input-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 544px) {
  .gh-gc-input-row-2,
  .gh-gc-input-row-3 {
    grid-template-columns: 1fr;
  }
}

.gh-gc-disclaimer {
  font-size: 12px;
  color: var(--gh-gc-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.gh-gc-page-title-bar {
  text-align: center;
  padding: 2.5rem 1rem 0.5rem;
}

.gh-gc-page-title-bar h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gh-gc-text);
}

@keyframes ghGcFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Beat Astra global form/heading styles on dark page */
body.gh-giftcard-page #gh-giftcard-app h1,
body.gh-giftcard-page #gh-giftcard-app h2,
body.gh-giftcard-page #gh-giftcard-app h3,
body.gh-giftcard-page #gh-giftcard-app h4,
body.gh-giftcard-page #gh-giftcard-app p,
body.gh-giftcard-page #gh-giftcard-app span,
body.gh-giftcard-page #gh-giftcard-app strong {
  color: inherit;
}

body.gh-giftcard-page #gh-giftcard-app .gh-gc-inputcont label,
body.gh-giftcard-page #gh-giftcard-app .gh-gc-hint,
body.gh-giftcard-page #gh-giftcard-app .gh-gc-muted,
body.gh-giftcard-page #gh-giftcard-app .gh-gc-cart-empty,
body.gh-giftcard-page #gh-giftcard-app .gh-gc-disclaimer,
body.gh-giftcard-page #gh-giftcard-app .gh-gc-preview-meta p {
  color: var(--gh-gc-muted);
}

body.gh-giftcard-page #gh-giftcard-app input[type="text"],
body.gh-giftcard-page #gh-giftcard-app input[type="email"],
body.gh-giftcard-page #gh-giftcard-app input[type="tel"],
body.gh-giftcard-page #gh-giftcard-app input[type="number"],
body.gh-giftcard-page #gh-giftcard-app input[type="date"],
body.gh-giftcard-page #gh-giftcard-app select,
body.gh-giftcard-page #gh-giftcard-app textarea {
  color: var(--gh-gc-text) !important;
  background-color: var(--gh-gc-input-bg) !important;
  border-color: var(--gh-gc-border) !important;
  box-shadow: none !important;
}

body.gh-giftcard-page #gh-giftcard-app input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.75;
}

body.gh-giftcard-page .gh-gc-checkout-overlay {
  --gh-gc-bg: #111111;
  --gh-gc-surface: #1c1c1c;
  --gh-gc-border: rgba(255, 255, 255, 0.28);
  --gh-gc-text: #ffffff;
  --gh-gc-muted: #b0b0b0;
  --gh-gc-input-bg: #141414;
}

body.gh-giftcard-page .gh-gc-checkout-panel {
  background: #111111;
}

body.gh-giftcard-page .gh-gc-checkout-header,
body.gh-giftcard-page .gh-gc-checkout-footer {
  background: #1c1c1c;
}

body.gh-giftcard-page .gh-gc-checkout-body {
  background: #111111;
}

.gh-gc-cart h3 {
  color: var(--gh-gc-text);
}

.gh-gc-cart-item button,
.gh-gc-remove {
  background: none;
  border: none;
  color: var(--gh-gc-muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}

.gh-gc-cart-item button:hover,
.gh-gc-remove:hover {
  color: var(--gh-gc-text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
