/* Scoped to .gallery-tickets-widget so it never leaks into the rest of the theme.
   Deliberately inherits the theme's font-family and base text color rather than
   hardcoding its own - only the interactive states (selected/held/sold) and layout
   get explicit styling. */

.gallery-tickets-widget {
  --gt-line: rgba(128, 128, 128, 0.35);
  --gt-dim: rgba(128, 128, 128, 0.08);
  --gt-selected: #b8933a;
  --gt-held: #999;
  --gt-sold: #c0392b;
  padding: 1rem 0;
}

.gt-inner {
  max-width: 760px;
  margin: 0 auto;
}

.gallery-tickets-widget * { box-sizing: border-box; }

.gt-loading, .gt-error { text-align: center; opacity: 0.7; padding: 2rem 0; }
.gt-error { color: var(--gt-sold); }
.gt-free-notice { text-align: center; padding: 1rem 0; font-weight: 600; opacity: 0.85; }

.gt-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  text-align: center;
  margin-bottom: 0.5rem;
}

.gt-title {
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 0.5rem;
}

.gt-desc {
  text-align: center;
  opacity: 0.75;
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.5;
}

.gt-rule { border: none; border-top: 1px solid var(--gt-line); width: 60px; margin: 1rem auto 2rem; }

.gt-general-addon-wrap { border-top: 1px solid var(--gt-line); padding-top: 1.4rem; margin-top: 0.6rem; }
.gt-rule-label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 1rem;
}

.gt-section-label {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0 0 1rem;
}

/* --- theater rows --- */
.gt-rows { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1.8rem; }
.gt-row { display: flex; align-items: center; gap: 0.45rem; }
.gt-row-label { width: 1.3rem; text-align: right; opacity: 0.6; font-size: 0.85rem; }

.gt-seat {
  width: 2.1rem; height: 2.1rem;
  border-radius: 4px;
  border: 1.5px solid var(--gt-line);
  background: var(--gt-dim);
  font-size: 0.68rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.gt-seat:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gt-selected); }
.gt-seat.gt-selected { background: var(--gt-selected); border-color: var(--gt-selected); color: #fff; font-weight: 600; }
.gt-seat.gt-held { border-color: var(--gt-held); color: var(--gt-held); cursor: not-allowed; opacity: 0.6; }
.gt-seat.gt-sold { border-color: var(--gt-line); color: transparent; cursor: not-allowed; position: relative; }
.gt-seat.gt-sold::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  background: var(--gt-sold); border-radius: 50%; transform: translate(-50%, -50%);
}

/* --- reception tables --- */
.gt-floor { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1.8rem; }
.gt-table {
  display: flex; flex-direction: column; align-items: center;
  width: 5rem; padding: 0.6rem 0.3rem 0.5rem;
  border: 1.5px solid var(--gt-line); border-radius: 6px;
  background: var(--gt-dim);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.gt-table:hover:not(.gt-sold):not(.gt-held) { transform: translateY(-2px); border-color: var(--gt-selected); }
.gt-table .gt-dots { display: flex; gap: 3px; margin-bottom: 0.4rem; }
.gt-table .gt-dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.gt-table .gt-label { font-size: 0.7rem; font-weight: 600; }
.gt-table .gt-price { font-size: 0.64rem; opacity: 0.65; margin-top: 0.1rem; }
.gt-table.gt-selected { background: var(--gt-selected); border-color: var(--gt-selected); color: #fff; }
.gt-table.gt-held { border-color: var(--gt-held); color: var(--gt-held); cursor: not-allowed; opacity: 0.6; }
.gt-table.gt-sold {
  border-color: var(--gt-line); color: var(--gt-line); cursor: not-allowed; position: relative;
}
.gt-table.gt-sold .gt-label, .gt-table.gt-sold .gt-price { visibility: hidden; }
.gt-table.gt-sold::after {
  content: "Sold"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gt-sold);
}

/* --- general admission --- */
.gt-capacity { text-align: center; margin-bottom: 1.8rem; }
.gt-capacity-count { font-size: 2.2rem; line-height: 1; margin-bottom: 0.25rem; }
.gt-capacity-count .gt-of { font-size: 1rem; opacity: 0.6; }
.gt-capacity-bar { width: 220px; height: 5px; background: var(--gt-dim); border-radius: 3px; margin: 0 auto 1.8rem; overflow: hidden; }
.gt-capacity-bar-fill { height: 100%; background: var(--gt-selected); }
.gt-stepper { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.gt-stepper button {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  border: 1.5px solid var(--gt-line); background: var(--gt-dim);
  font-size: 1rem; cursor: pointer;
}
.gt-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.gt-stepper .gt-qty { font-size: 1.4rem; min-width: 2rem; text-align: center; }
.gt-stepper-label { text-align: center; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-top: 0.5rem; }

/* --- legend + order --- */
.gt-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; font-size: 0.76rem; opacity: 0.75; margin-bottom: 2rem; }
.gt-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.gt-swatch { width: 0.85rem; height: 0.85rem; border-radius: 3px; border: 1.5px solid var(--gt-line); display: inline-block; }
.gt-swatch.gt-selected { background: var(--gt-selected); border-color: var(--gt-selected); }
.gt-swatch.gt-held { border-color: var(--gt-held); }
.gt-swatch.gt-sold { position: relative; }
.gt-swatch.gt-sold::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 5px; height: 5px;
  background: var(--gt-sold); border-radius: 50%; transform: translate(-50%, -50%);
}

.gt-waitlist { text-align: center; padding: 1.2rem 1rem; margin-bottom: 1rem; border: 1.5px dashed var(--gt-line); border-radius: 6px; }
.gt-waitlist-msg { font-size: 0.88rem; margin: 0 0 0.8rem; }
.gt-waitlist-email, .gt-waitlist-name {
  padding: 0.5rem 0.7rem; border: 1.5px solid var(--gt-line); border-radius: 4px;
  font-size: 0.85rem; margin: 0 0.3rem 0.5rem; color: inherit; background: #fff;
}
.gt-waitlist-btn {
  font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.5rem 1.1rem; border: none; border-radius: 3px; cursor: pointer;
  background: var(--gt-selected); color: #fff;
}
.gt-waitlist-done { font-size: 0.85rem; color: var(--gt-selected); margin: 0; }

.gt-order { border-top: 1px solid var(--gt-line); padding-top: 1.4rem; text-align: center; }
.gt-countdown { font-size: 0.78rem; opacity: 0.65; min-height: 1.2em; margin-bottom: 0.4rem; }
.gt-summary { font-size: 1.05rem; margin-bottom: 1rem; min-height: 1.5em; }
.gt-summary .gt-muted { opacity: 0.6; font-size: 0.92rem; }
.gt-email-row { margin-bottom: 1rem; }
.gt-email-input {
  width: 100%; max-width: 300px; padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--gt-line); border-radius: 4px;
  background: #fff; font-size: 0.9rem; color: inherit;
}
.gt-email-input:focus { outline: none; border-color: var(--gt-selected); }
.gt-checkout-btn {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.8rem 2.2rem; border: none; border-radius: 3px; cursor: pointer;
  background: var(--gt-selected); color: #fff;
  transition: opacity 0.15s ease;
}
.gt-checkout-btn:hover:not(:disabled) { opacity: 0.85; }
.gt-checkout-btn:disabled { background: var(--gt-dim); color: inherit; opacity: 0.5; cursor: not-allowed; }

/* --- events calendar/listing shortcode --- */
.gt-calendar {
  --gt-selected: #b8933a;
  --gt-line: rgba(128, 128, 128, 0.35);
  --gt-dim: rgba(128, 128, 128, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  padding: 0.5rem 0;
}
.gt-calendar-card {
  border: 1.5px solid var(--gt-line);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  background: var(--gt-dim);
  display: flex;
  flex-direction: column;
}
.gt-calendar-card.gt-sold-out { opacity: 0.65; }
.gt-calendar-card-activity { border-style: dashed; }
.gt-calendar-series {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gt-selected);
  margin-bottom: 0.35rem;
}
.gt-calendar-title { font-family: Georgia, serif; font-size: 1.15rem; margin-bottom: 0.2rem; }
.gt-calendar-date { font-size: 0.8rem; opacity: 0.65; margin-bottom: 0.2rem; }
.gt-calendar-instructor { font-size: 0.78rem; opacity: 0.7; font-style: italic; margin-bottom: 0.6rem; }
.gt-calendar-desc { font-size: 0.85rem; opacity: 0.8; line-height: 1.5; margin: 0 0 1rem; flex: 1; }
.gt-calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; }
.gt-calendar-price { font-size: 0.95rem; font-weight: 600; }
.gt-calendar-btn {
  font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.5rem 1rem; border-radius: 3px;
  background: var(--gt-selected); color: #fff; text-decoration: none;
  transition: opacity 0.15s ease;
}
.gt-calendar-btn:hover { opacity: 0.85; }
.gt-calendar-btn-disabled { background: var(--gt-line); color: #fff; cursor: not-allowed; }
.gt-calendar-actions { display: flex; gap: 0.5rem; }
.gt-calendar-btn-secondary { background: transparent; color: var(--gt-selected); border: 1.5px solid var(--gt-selected); }

/* --- class instructor/session info, auto-injected above the widget --- */
.gt-class-info { max-width:480px; margin:0 auto 1.2rem; padding:1rem 1.3rem; background:rgba(128,128,128,0.06); border:1px solid rgba(128,128,128,0.25); border-radius:8px; font-size:0.88rem; }
.gt-class-instructor { font-weight:600; margin-bottom:0.3rem; }
.gt-class-instructor-bio { opacity:0.75; margin:0 0 0.8rem; }
.gt-class-sessions ul { margin:0.3rem 0 0; padding-left:1.2rem; }

/* --- calendar List/Month + All/Events/Classes toolbar (URL-driven, no JS) --- */
.gt-calendar-toolbar {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  align-items: center; margin-bottom: 1.2rem;
}
.gt-calendar-toggle-group {
  display: inline-flex; border: 1px solid rgba(128,128,128,0.35); border-radius: 4px; overflow: hidden;
}
.gt-calendar-toggle {
  padding: 0.4rem 0.9rem; font-size: 0.8rem; text-decoration: none; color: inherit;
  opacity: 0.65; border-right: 1px solid rgba(128,128,128,0.25);
}
.gt-calendar-toggle:last-child { border-right: none; }
.gt-calendar-toggle.gt-toggle-active { opacity: 1; background: #b8933a; color: #fff; }

/* --- month grid --- */
.gt-calendar-month { max-width: 900px; margin: 0 auto; }
.gt-month-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem;
}
.gt-month-nav-link { font-size: 0.85rem; text-decoration: none; color: #b8933a; font-weight: 600; }
.gt-month-nav-disabled { color: rgba(128,128,128,0.4); pointer-events: none; }
.gt-month-label { font-family: Georgia, serif; font-size: 1.1rem; }
.gt-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: rgba(128,128,128,0.25); border: 1px solid rgba(128,128,128,0.25);
}
.gt-month-dow {
  background: rgba(128,128,128,0.08); text-align: center; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.4rem 0; opacity: 0.7;
}
.gt-month-cell {
  background: #fff; min-height: 84px; padding: 0.35rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.gt-month-cell-empty { background: rgba(128,128,128,0.04); }
.gt-month-day-num { font-size: 0.75rem; opacity: 0.6; }
.gt-month-pill {
  display: block; font-size: 0.7rem; line-height: 1.3; padding: 0.15rem 0.35rem;
  border-radius: 3px; text-decoration: none; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.gt-month-pill-event { background: #b8933a; }
.gt-month-pill-class { background: #5a7a8c; }
.gt-month-pill-activity { background: #7a5a8c; }
.gt-month-range-bar {
  display: block; font-size: 0.7rem; line-height: 1.3; padding: 0.15rem 0.35rem;
  color: #fff; background: #2f8f6b; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin: 0 -0.35rem 0.2rem -0.35rem;
}
.gt-month-range-bar-start { margin-left: 0; border-radius: 3px 0 0 3px; }
.gt-month-range-bar-end { margin-right: 0; border-radius: 0 3px 3px 0; }

/* --- Associate Member join/login forms --- */
.gt-member-form { max-width: 380px; margin: 0 auto; }
.gt-member-form label { display: block; font-size: 0.85rem; margin-bottom: 0.9rem; }
.gt-member-form input { width: 100%; padding: 0.5rem 0.6rem; margin-top: 0.25rem; border: 1px solid rgba(128,128,128,0.35); border-radius: 4px; font-size: 0.95rem; }
.gt-member-form .gt-member-submit {
  font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.6rem 1.2rem; border-radius: 3px; background: #b8933a; color: #fff;
  border: none; cursor: pointer;
}
.gt-member-form .gt-member-submit:hover { opacity: 0.88; }
.gt-member-error { color: #b32d2e; font-size: 0.88rem; margin-bottom: 1rem; }

/* --- Cross-module Shopping Cart --- */
.gt-cart-badge {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 9999;
  background: #b8933a; color: #fff; border-radius: 999px; padding: 0.6rem 1.1rem;
  font-size: 0.85rem; box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.gt-cart-badge a { color: #fff; text-decoration: none; }
.gt-cart-badge-count { font-weight: 700; margin-right: 0.3rem; }
.gt-cart { max-width: 560px; margin: 0 auto; }
.gt-cart-empty { text-align: center; opacity: 0.75; padding: 2rem 0; }
.gt-cart-group { border: 1px solid var(--gt-line); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.gt-cart-group-title { font-weight: 600; margin-bottom: 0.6rem; }
.gt-cart-group-title a { color: inherit; }
.gt-cart-item { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.92rem; }
.gt-cart-remove { background: none; border: none; color: var(--gt-sold); cursor: pointer; font-size: 0.8rem; text-decoration: underline; padding: 0; margin-left: 0.5rem; }
.gt-cart-subtotal { text-align: right; font-size: 0.85rem; opacity: 0.75; margin-top: 0.4rem; border-top: 1px solid var(--gt-line); padding-top: 0.4rem; }
.gt-cart-total { text-align: right; font-size: 1.1rem; font-weight: 700; margin: 1rem 0; }
.gt-cart-checkout-form { display: flex; flex-direction: column; gap: 0.7rem; align-items: stretch; }
.gt-cart-checkout-form input { padding: 0.55rem 0.7rem; border: 1px solid var(--gt-line); border-radius: 4px; font-size: 0.95rem; }
.gt-cart-error { color: #b32d2e; font-size: 0.85rem; margin: 0; }
