/* The booking form. Uses the theme's colors, with fallbacks in case the theme changes. */
.tb-form{--tb-line:var(--rule,#D9A55A);--tb-accent:var(--vermilion,#B4441E);--tb-muted:var(--ink-soft,#6A3E22);max-width:560px;margin:24px 0}
.tb-form fieldset{border:0;padding:0;margin:0 0 20px}
.tb-form legend,.tb-form label,.tb-label{display:block;font-weight:600;margin-bottom:6px}
.tb-kind label,.tb-times label{font-weight:400;display:block;padding:6px 0}
.tb-field{margin-bottom:18px}
.tb-form input:not([type=radio]),.tb-form select,.tb-form textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--tb-line);border-radius:8px;background:#fff;color:inherit;font:inherit}
.tb-form input:focus-visible,.tb-form select:focus-visible,.tb-form textarea:focus-visible,.tb-cal-day:focus-visible,.tb-cal-nav:focus-visible{outline:2px solid var(--tb-accent);outline-offset:2px}
.tb-optional,.tb-hint{font-weight:400;color:var(--tb-muted);font-size:.9em}
.tb-hint{margin:6px 0 0}
.tb-hint:empty{display:none}
.tb-error{color:#B3261E;font-size:.95em;margin:6px 0 0}
.tb-error:empty{display:none}
.tb-form button[type=submit]{font:inherit;font-weight:600;border:0;cursor:pointer}
.tb-form button[type=submit]:disabled{opacity:.6;cursor:default}
.tb-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.tb-calendar{border:1px solid var(--tb-line);border-radius:8px;padding:10px;background:#fff;max-width:340px}
.tb-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-weight:600}
.tb-cal-nav{background:none;border:1px solid var(--tb-line);border-radius:6px;width:36px;height:36px;font-size:18px;cursor:pointer;color:inherit}
.tb-cal-nav:disabled{opacity:.3;cursor:default}
.tb-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.tb-cal-weekday{font-size:12px;text-align:center;color:var(--tb-muted)}
.tb-cal-day{background:none;border:0;border-radius:6px;height:38px;cursor:pointer;color:inherit;font:inherit}
.tb-cal-day:hover:not(:disabled){background:#F4E6C8}
.tb-cal-day:disabled{color:#b5a99a;text-decoration:line-through;cursor:default}
.tb-cal-day[aria-pressed=true]{background:var(--tb-accent);color:#FFF6E4;font-weight:600}
.tb-done{padding:18px 22px;margin:24px 0;max-width:560px}
/* Opened under a card in the programs list, the theme's card style would show it before anything is sent. */
.tb-done[hidden]{display:none}
.tb-done h3{margin-top:0}

/* Opening the form from a list on the page. */
.tb-book{font:inherit;font-size:.92em;padding:6px 16px;background:none;color:var(--vermilion,#B4441E);cursor:pointer;white-space:nowrap}
.tb-book:hover,.tb-book[aria-expanded=true]{background:var(--vermilion,#B4441E);color:#FFF6E4}
.box>.tb-book{align-self:flex-start;margin-top:auto}
.box>small+.tb-book,.box>b+.tb-book{margin-top:8px}
.tb-panel{outline:0;scroll-margin-top:90px}
.tb-panel[hidden],.tb-kind label[hidden],.tb-kind[hidden]{display:none}
.tb-panel.is-attached{border:1px solid var(--vermilion,#B4441E);background:var(--paper,#FFFBF0);padding:18px 20px;box-sizing:border-box;grid-column:1/-1;min-width:0}
.tb-panel.is-attached .tb-form,.tb-panel.is-attached .tb-done{margin:0;padding:0;border:0}
.tb-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:6px}
.tb-panel-head[hidden]{display:none}
.tb-panel-title{font-weight:700;font-size:1.1em}
.tb-close,.tb-more{font:inherit;background:none;border:0;padding:0;color:var(--vermilion,#B4441E);text-decoration:underline;cursor:pointer}
.tb-close:hover,.tb-more:hover{color:#7A2A0E}
.tb-from-list[hidden]{display:none}
table.tb-list-table{min-width:0}
.tb-list-table td:last-child{white-space:nowrap}
.tb-list-table .tb-panel-row>td{padding:0;white-space:normal}
.tb-panel-row .tb-panel.is-attached{border:0}
/* On a phone, the table's own width would push the button off the screen, so each row stacks: name, then amounts and button. */
@media (max-width:600px){
  .entry-content .wp-block-table table.tb-list-table,.entry-content .wp-block-table table.tb-list-table thead,.entry-content .wp-block-table table.tb-list-table tbody{display:block}
  .entry-content .wp-block-table table.tb-list-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 92px;align-items:center;column-gap:8px;padding:10px 12px;border-top:1px solid var(--rule,#D9A55A)}
  .entry-content .wp-block-table table.tb-list-table thead tr{border-top:0;background:var(--deep,#4A120F)}
  .entry-content .wp-block-table table.tb-list-table tr.tb-panel-row{display:block;padding:0}
  .entry-content .wp-block-table table.tb-list-table th,.entry-content .wp-block-table table.tb-list-table td{display:block;padding:0;border:0;background:none;text-align:left;font-size:15px;min-width:0}
  .entry-content .wp-block-table table.tb-list-table thead th:first-child,.entry-content .wp-block-table table.tb-list-table thead th:last-child{display:none}
  .entry-content .wp-block-table table.tb-list-table td:first-child{grid-column:1/-1;font-weight:600;margin-bottom:6px;white-space:normal}
  .entry-content .wp-block-table table.tb-list-table td:last-child{text-align:right}
  .entry-content .wp-block-table table.tb-list-table .tb-panel-row>td{text-align:left;font-weight:400;margin:0}
  .tb-panel{scroll-margin-top:140px}
  .tb-panel.is-attached{padding:14px}
}

/* The family details form: a box per person, with the occasion's details tucked under it. */
.tb-form fieldset.tb-family-entry{border:1px solid var(--tb-line);border-radius:8px;padding:14px 16px 4px;margin:0 0 14px;background:var(--paper,#FFFBF0)}
.tb-family-entry legend{padding:0 6px;margin-bottom:0}
.tb-family-entry [data-occasion-details]{border-left:3px solid var(--tb-line);padding-left:12px;margin-bottom:12px}
.tb-family-entry [data-occasion-details][hidden]{display:none}
.tb-family-entry [hidden]{display:none}
.tb-family-entry .tb-close{margin:0 0 12px}
.tb-family [data-add-person],.tb-family [data-add-day]{font:inherit;font-weight:600;background:none;color:var(--tb-accent);cursor:pointer}
.tb-family [data-add-person]:hover,.tb-family [data-add-day]:hover{background:var(--tb-accent);color:#FFF6E4}
.tb-family [data-add-person][hidden],.tb-family [data-add-day][hidden]{display:none}
.tb-family [data-add-day]{margin:0 0 14px}
.tb-family-day+.tb-family-day{border-top:1px dashed var(--tb-line);padding-top:12px}
.tb-family-more{margin:0 0 12px}
.tb-family-more summary{cursor:pointer;font-weight:600;color:var(--tb-accent);margin-bottom:8px}
.tb-family-more[hidden]{display:none}
.tb-form .tb-check{display:flex;align-items:center;gap:8px}
.tb-form .tb-check input{width:auto;margin:0}
.tb-form .tb-check label{margin:0;font-weight:400}
@media (min-width:480px){
  .tb-family-entry [data-occasion-details]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
  .tb-family-entry [data-occasion-details]>.tb-field:first-child,.tb-family-entry [data-occasion-details]>.tb-field:nth-child(2){grid-column:1/-1}
}
/* After the grid above, which would otherwise show the details with no occasion chosen. */
.tb-family-entry [data-occasion-details][hidden],.tb-family-entry [data-occasion-details]>[hidden]{display:none}
