/* ── Bookmarked-session list ───────────────────────────────────────────── */

/* The frame, the title, the "nothing here" box, the per-event section and its
   heading are the shared ones - see rba-sessions.page.css. Only the extra air
   under this page's title is its own: it has no intro line beneath it, unlike
   /my-sessions/view. */
.rba-my-schedule__title {
  margin-bottom: var(--spacing-500, 40px);
}

.rba-my-schedule__day-heading {
  margin: var(--spacing-400, 32px) 0 var(--spacing-100, 8px);
  font-size: var(--text-paragraph-s, 15px);
  text-transform: capitalize;
  color: var(--trust-300, #773b57);
}

.rba-sessions-page__section-title + .rba-my-schedule__day-heading {
  margin-top: 0;
}

/* Laid out as a table: the list is a grid and every row a subgrid of it, so
   time, title and room line up across rows however long each one is - which a
   flex row per item cannot do. The frame around it is .rba-sessions-panel,
   which the list carries as well - the same box /my-sessions/view puts its
   table in. Date and time sit on two lines, so their column stays narrow, and
   the title gets twice the share of the room. */
.rba-my-schedule__sessions {
  display: grid;
  grid-template-columns: auto minmax(0, 2fr) minmax(0, 1fr) auto auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rba-my-schedule__session {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  column-gap: var(--spacing-300, 24px);
  padding: var(--spacing-200, 16px) var(--spacing-150, 12px) var(--spacing-200, 16px) var(--spacing-300, 24px);
  background: var(--white, #ffffff);
  transition: background-color 0.2s ease;
}

.rba-my-schedule__session:nth-child(even) {
  background: var(--ambience-100, #f7f5f3);
}

.rba-my-schedule__session + .rba-my-schedule__session {
  border-top: var(--border-width-thinn, 1px) solid var(--ambience, #ebe6e1);
}

.rba-my-schedule__session:hover {
  background: var(--ambience-200, #f3f0ed);
}

.rba-my-schedule__session-time {
  grid-column: 1;
  font-weight: var(--font-weight-bold, 700);
  font-size: var(--text-paragraph-s, 15px);
  line-height: 1.35;
  font-feature-settings: 'zero';
}

.rba-my-schedule__session-time-line {
  display: block;
  white-space: nowrap;
}

.rba-my-schedule__session-title {
  grid-column: 2;
  font-weight: var(--font-weight-bold, 700);
  line-height: 1.35;
  color: var(--trust, #550a2d);
  text-decoration: none;
}

.rba-my-schedule__session-title:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.rba-my-schedule__session-room {
  grid-column: 3;
  font-size: var(--text-paragraph-s, 15px);
  color: var(--trust-300, #773b57);
}

.rba-my-schedule__session-remove {
  grid-column: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--ambience-700, #998c80);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rba-my-schedule__session-remove:hover {
  background: var(--ambience-500, #dbd4ce);
  color: var(--trust, #550a2d);
}

.rba-my-schedule__session-remove:focus-visible {
  outline: var(--border-width-regular, 2px) solid var(--trust, #550a2d);
  outline-offset: 2px;
}

/* The pill itself is .rba-sessions-status (rba-sessions.page.css), which the
   badge carries as well - only where it sits in the row is this page's. The
   grid cell stretches, the pill inside it does not, so pills of different
   widths still start on one line. */
.rba-my-schedule__session-status {
  grid-column: 4;
  justify-self: start;
}

/* A cancelled session stays listed, since it is still in the cart, but steps
   back so the ones that are happening stand out. */
.rba-my-schedule__session--cancelled .rba-my-schedule__session-time,
.rba-my-schedule__session--cancelled .rba-my-schedule__session-title,
.rba-my-schedule__session--cancelled .rba-my-schedule__session-room {
  opacity: 0.6;
}

.rba-my-schedule__session--cancelled .rba-my-schedule__session-title {
  text-decoration: line-through;
}

/* Too narrow for five columns: time and the remove button share the top line,
   title, room and status stack below it. */
@media (max-width: 767px) {
  .rba-my-schedule__title {
    margin-bottom: var(--spacing-300, 24px);
  }

  .rba-my-schedule__sessions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rba-my-schedule__session {
    row-gap: var(--spacing-050, 4px);
    padding-left: var(--spacing-200, 16px);
  }

  .rba-my-schedule__session-time {
    grid-column: 1;
    grid-row: 1;
  }

  .rba-my-schedule__session-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .rba-my-schedule__session-title,
  .rba-my-schedule__session-room,
  .rba-my-schedule__session-status {
    grid-column: 1 / -1;
  }

  .rba-my-schedule__session-status {
    margin-top: var(--spacing-100, 8px);
  }
}

/* ── Section navigation ─────────────────────────────────────────────────── */

/* The in-page-navigation component is designed to stick to the viewport top
   across its landing page. Here it sits inside a content column, so we drop
   the stickiness and add spacing instead. Everything else — the mobile toggle,
   the desktop horizontal list, the link styles — comes from the component's
   own CSS (loaded as core/components.bosch--in-page-navigation). */
.rba-my-schedule__nav-bar {
  position: static;
  margin-bottom: var(--spacing-300, 24px);
  --menu-item-gap: calc(var(--spacing-500, 40px) / 2);
}

/* ── Checkout ───────────────────────────────────────────────────────────── */

/* The card, its heading and intro, the fields, the embedded bosch:button and
   the status line are the shared ones - see rba-sessions.page.css. What stays
   here is what only the checkout has: the remembered-identity line, the
   confirm-email pair it hides, and the consent rows.
   */
/* Transparent to layout - the label/input pair inside behaves exactly like
   direct flex children of .rba-sessions-form. Only exists so
   checkout.js can hide both with one `hidden` toggle for a known identity. */
[data-rba-checkout-email-confirm-group] {
  display: contents;
}

/* Higher specificity than the rule above, so hidden actually hides it -
   [hidden]{display:none} from the UA stylesheet alone would otherwise lose
   to display:contents. */
[data-rba-checkout-email-confirm-group][hidden] {
  display: none;
}

.rba-my-schedule__checkout-known-identity {
  margin: 0 0 var(--spacing-300, 24px);
  text-align: center;
  color: var(--trust-300, #773b57);
}

.rba-my-schedule__checkout-known-identity:empty {
  display: none;
}

/* Checkbox + label side by side, not a full-width block like the text
   inputs above - the gap from .rba-sessions-form already separates it from
   its neighbours. */
.rba-my-schedule__checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-150, 12px);
}

.rba-my-schedule__checkout-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  accent-color: var(--trust, #550a2d);
}

.rba-my-schedule__checkout-consent label {
  font-size: var(--text-paragraph-s, 15px);
  line-height: 1.4;
}

[data-rba-checkout-submit] {
  margin-top: var(--spacing-150, 12px);
  text-align: center;
}

