.tl-menus-entitlement-box { border: 1px solid #ddd; padding: 15px 20px; margin: 15px 0; border-radius: 4px; background: #fff; color: #1d2327; }
.tl-menus-hidden { display: none; }
.tl-menus-account-cta { border: 1px solid #ddd; border-radius: 4px; background: #f7f7f7; padding: 15px 20px; margin: 0 0 20px 0; text-align: center; color: #1d2327; }
.tl-menus-account-cta .tl-menus-account-cta-text { margin: 0 0 12px 0; }
.tl-menus-account-cta .tl-menus-btn { padding: 8px 16px; font-size: 0.9em; font-weight: 600; border-radius: 4px; line-height: 1.4; display: inline-block; text-align: center; text-decoration: none; background-color: #00a32a; color: #fff; border: 1px solid #00a32a; }
.tl-menus-entitlement-box p,
.tl-menus-entitlement-box a,
.tl-menus-entitlement-box span,
.tl-menus-entitlement-box label { color: #1d2327; }
.tl-menus-entitlement-box h3.tl-menus-entitlement-title { margin-top: 0; font-size: 1.1em; color: #1d2327; }
.tl-menus-entitlement-box a.tl-menus-order-link { color: #2271b1; }
.tl-menus-entitlement-box a.tl-menus-product-link { color: #1d2327; text-decoration: underline; }
.tl-menus-entitlement-box .tl-menus-status-active { color: #00a32a; font-weight: bold; }
.tl-menus-entitlement-box .tl-menus-status-paused { color: #d63638; font-weight: bold; }
.tl-menus-entitlement-box .tl-menus-status-completed { color: #2271b1; font-weight: bold; }
.tl-menus-entitlement-box .tl-menus-status-expired { color: #787c82; font-weight: bold; }
.tl-menus-entitlement-box .tl-menus-header-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tl-menus-entitlement-box .tl-menus-header-row .tl-menus-header-text { flex: 1 1 300px; }
.tl-menus-entitlement-box .tl-menus-header-row .tl-menus-reorder-link { margin-left: auto; flex: 0 0 auto; }
.tl-menus-entitlement-box .tl-menus-actions-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.tl-menus-entitlement-box .tl-menus-action-form { margin-top: 0; }
.tl-menus-entitlement-box .tl-menus-btn { padding: 8px 16px; font-size: 0.9em; font-weight: 600; border-radius: 4px; line-height: 1.4; box-sizing: border-box; cursor: pointer; border: 1px solid transparent; display: inline-block; text-align: center; }
.tl-menus-entitlement-box button.tl-menus-btn-pause { background-color: #d63638; color: #fff; border-color: #d63638; }
.tl-menus-entitlement-box .tl-menus-btn-icon { margin-right: 3px; font-style: normal; color: inherit; font-variant-emoji: text; }
.tl-menus-entitlement-box button.tl-menus-btn-resume { background-color: #00a32a; color: #fff; border-color: #00a32a; }
.tl-menus-entitlement-box button.tl-menus-btn-pause-submit { background-color: #b26200; color: #fff; border-color: #b26200; }
.tl-menus-entitlement-box .tl-menus-pause-intro { font-size: 0.9em; color: #50575e; margin: 0 0 12px; }
/* Pause-period two-step flow — shared by the customer picker AND the
   admin metabox (this sheet is enqueued on both).
   Steps stack VERTICALLY — the flow is sequential (the end
   calendar slides open under the collapsed start header).
   Slide via max-height transition (pure class toggling from JS).
   Compound selector for the collapsed state — wins by specificity,
   not source order. */
.tl-menus-vac-steps { display: flex; flex-direction: column; gap: 14px; }
.tl-menus-vac-collapsible { overflow: hidden; max-height: 2200px; transition: max-height 0.35s ease; }
.tl-menus-vac-collapsible.tl-menus-vac-collapsed { max-height: 0; }
.tl-menus-vac-reveal { display: inline-block; background: #fff; border: 1px solid #2271b1; color: #2271b1; border-radius: 4px; padding: 8px 14px; margin: 0; cursor: pointer; font-weight: 600; }
.tl-menus-vac-reveal:hover { background: #2271b1; color: #fff; }
.tl-menus-vac-range { margin: 6px 0 2px; font-weight: 600; }
.tl-menus-vac-range-start, .tl-menus-vac-range-end { color: #2271b1; font-weight: 700; }
.tl-menus-vac-arrow { display: inline-block; width: 1.1em; }
/* Arrow direction from the closed-state class the JS keeps in
   sync (on the reveal button itself / on the step wrapper). */
.tl-menus-vac-arrow::before { content: '▾'; }
.tl-menus-vac-closed .tl-menus-vac-arrow::before { content: '▸'; }
/* The theme styles every <button> — light text, an orange border, 20px type
   — and fills it orange on hover and focus. Its button:hover / button:focus
   outrank a single class, so the hover and focus rule restates the text and
   border colours, and the My Account form's dotted focus border
   (.woocommerce .woocommerce-MyAccount-content form button:focus) is met by
   a selector of the same weight, which wins because this file loads later. */
.tl-menus-vac-step-toggle { display: block; width: 100%; text-align: left; background: #f0f6fc; border: 1px solid #2271b1; border-radius: 4px; padding: 8px 12px; margin: 0 0 6px; cursor: pointer; font-size: inherit; line-height: 1.4; font-weight: 600; color: #1d2327; }
.tl-menus-vac-step-toggle:hover, .tl-menus-vac-step-toggle:focus { background: #dae8f5; color: #1d2327; border-color: #2271b1; }
.tl-menus-entitlement-box form button.tl-menus-vac-step-toggle:focus { border: 1px solid #2271b1; }
.tl-menus-vac-step-toggle .tl-menus-vac-arrow { color: #2271b1; }
.tl-menus-vac-arrow-right { float: right; text-align: right; }
.tl-menus-vac-step-change { display: none; float: right; margin-left: 12px; color: #2271b1; font-weight: 600; text-decoration: underline; }
.tl-menus-vac-closed > .tl-menus-vac-step-toggle .tl-menus-vac-step-change { display: inline; }
.tl-menus-vac-step-date { font-weight: 700; color: #2271b1; }
.tl-menus-vac-step-done > .tl-menus-vac-step-toggle::before { content: '✓ '; color: #00a32a; font-weight: 700; }
/* Two-step pause panel — the -start/-end wrappers are structural
   (JS/markup) hooks, styled through these shared selectors. */
.tl-menus-pause-step { margin: 10px 0; }
.tl-menus-pause-step-label { font-weight: 700; color: #1d2327; margin: 0 0 6px; }
.tl-menus-pause-end-mode { display: block; margin: 4px 0; cursor: pointer; }
.tl-menus-pause-end-wrap { margin-top: 8px; }
.tl-menus-entitlement-box .tl-menus-action-note { font-size: 0.85em; color: #50575e; margin-top: 5px; }
.tl-menus-entitlement-box .tl-menus-progress-bar { background: #e0e0e0; border-radius: 4px; height: 24px; overflow: hidden; margin: 10px 0; position: relative; }
.tl-menus-entitlement-box .tl-menus-progress-fill { background: #00a32a; height: 100%; border-radius: 4px; min-width: 0; }
.tl-menus-entitlement-box .tl-menus-progress-fill-paused { background: #d63638; }
.tl-menus-entitlement-box .tl-menus-progress-label { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.8em; font-weight: 600; color: #1d2327; }
.tl-menus-entitlement-box .tl-menus-delivery-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); column-gap: 24px; }
.tl-menus-entitlement-box .tl-menus-delivery-list-item { margin: 3px 0; color: #1d2327; font-size: 0.9em; white-space: nowrap; }
.tl-menus-entitlement-box .tl-menus-delivery-list-skipped { color: #50575e; text-decoration: line-through; }
.tl-menus-entitlement-box .tl-menus-delivery-list-num { display: inline-block; width: 26px; font-size: 0.8em; color: #787c82; }
.tl-menus-entitlement-box .tl-menus-delivery-list-dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 5px; vertical-align: middle; background: #c3c4c7; }
.tl-menus-entitlement-box .tl-menus-delivery-list-dot-sent { background: #00a32a; }
.tl-menus-entitlement-box .tl-menus-delivery-list-dot-next { background: #e6a200; }
.tl-menus-entitlement-box .tl-menus-delivery-list-dot-pending,
.tl-menus-entitlement-box .tl-menus-cal-dot.tl-menus-cal-pending { background: #fff8e5; border: 1px solid #e6a200; }
.tl-menus-entitlement-box .tl-menus-header-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 4px; }
.tl-menus-entitlement-box .tl-menus-header-row p { margin: 0; }
.tl-menus-entitlement-box .tl-menus-header-row h3 { margin: 0; }
.tl-menus-entitlement-box .tl-menus-cal-wrap { margin: 12px 0 0 0; }
.tl-menus-entitlement-box .tl-menus-cal-months { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 580px) { .tl-menus-entitlement-box .tl-menus-cal-months { flex-direction: column; } }
/* Delivery calendar — scoped rules for delivery-specific cell types */
.tl-menus-entitlement-box .tl-menus-cal-cell { text-align: center; padding: 6px 0; border-radius: 4px; font-size: 0.85em; color: #1d2327; border: 1px solid #e0e0e0; }
.tl-menus-entitlement-box .tl-menus-cal-no-delivery { color: #c3c4c7; }
.tl-menus-entitlement-box .tl-menus-cal-weekend { color: #c3c4c7; }
.tl-menus-entitlement-box .tl-menus-cal-sent { background: #00a32a; color: #fff; font-weight: 600; }
.tl-menus-entitlement-box .tl-menus-cal-next-delivery { background: #e6a200; color: #fff; font-weight: 600; }
.tl-menus-entitlement-box .tl-menus-cal-pending { background: #fff8e5; color: #1d2327; border-color: #e6a200; }
/* Neutral, not red: these days are NOT lost — they are moved to
   the end of the schedule and the delivery total is unchanged.
   Red read as "cancelled" and alarmed paused customers. */
.tl-menus-entitlement-box .tl-menus-cal-skipped,
.tl-menus-entitlement-box .tl-menus-delivery-list-dot-skipped { background: #dcdcde; color: #50575e; text-decoration: line-through; }
/* Compound selector — higher specificity than any single-class
   state rule, so today wins regardless of source order or
   whatever overlay class is on the cell. */
.tl-menus-entitlement-box .tl-menus-cal-cell.tl-menus-cal-today { border: 2px solid #2271b1; background: #dae8f5; color: #1d2327; font-weight: 600; text-decoration: underline; cursor: default; }
.tl-menus-entitlement-box .tl-menus-delivery-list-wrap { margin: 12px 0; }
.tl-menus-entitlement-box .tl-menus-reorder-wrap { margin: 14px 0 4px 0; }
.tl-menus-entitlement-box .tl-menus-reorder-name { font-weight: 600; margin: 0 0 4px 0; color: #1d2327; }
.tl-menus-entitlement-box .tl-menus-reorder-desc { font-size: 0.85em; color: #50575e; margin: 0 0 8px 0; }
.tl-menus-entitlement-box a.tl-menus-reorder-link { background-color: #2271b1; color: #fff; border-color: #2271b1; text-decoration: none; }
.tl-menus-entitlement-box a.tl-menus-reorder-link:hover { background-color: #135e96; border-color: #135e96; color: #fff; }
/* Resume calendar picker — toggle + side-by-side months */
.tl-menus-entitlement-box .tl-menus-resume-picker { margin-top: 10px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px; background: #fff; }
.tl-menus-entitlement-box .tl-menus-pause-picker { margin-top: 10px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 14px; background: #fff; }
/* Prominent border + light bg on the expanded date-change panels (resume / pause period) so they read as a distinct action zone when opened */
.tl-menus-entitlement-box .tl-menus-expanded-border { border: 3px solid #666; background: #f9f9f9; }
.tl-menus-entitlement-box button.tl-menus-btn-toggle-picker { background-color: #00a32a; color: #fff; border-color: #00a32a; outline: none; }
.tl-menus-entitlement-box button.tl-menus-btn-toggle-picker:hover { background-color: #008a20; border-color: #008a20; }
.tl-menus-entitlement-box button.tl-menus-btn-toggle-picker:focus { box-shadow: 0 0 0 2px #2271b1; outline: none; }
.tl-menus-entitlement-box .tl-menus-picker-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.tl-menus-entitlement-box button.tl-menus-btn-cancel-picker, .tl-menus-entitlement-box button.tl-menus-btn-cancel-pause, .tl-menus-entitlement-box button.tl-menus-btn-cancel-booked-pause { background-color: #787c82; color: #fff; border-color: #787c82; }
.tl-menus-entitlement-box .tl-menus-cancel-pause-form { margin: 0; }
@media (max-width: 580px) {
    .tl-menus-entitlement-box .tl-menus-pick-months { flex-direction: column; }
    .tl-menus-checkout-picker .tl-menus-pick-months { flex-direction: column; }
    /* box-sizing so width:100% INCLUDES the card's 12px padding +
       1px border. With the default content-box, width:100% sized
       only the content to the parent and the padding/border were
       added on top — overflowing the parent by ~26px (the real
       cause of the clipped calendars, on top of the grid floor). */
    .tl-menus-cal { width: 100%; box-sizing: border-box; }
    .tl-menus-checkout-picker-item { padding: 10px 12px; }
    /* Let the 7-column calendars shrink to the container. The base
       250px min-width overflows the padded entitlement box below
       ~360px, clipping the weekend columns + right-edge day cells
       and forcing a horizontal scrollbar. Compound selector
       (.tl-menus-cal .tl-menus-cal-grid) so it beats the base
       single-class rule by SPECIFICITY — the base declaration sits
       later in the sheet, so an equal-specificity override would
       lose on source order. Covers every calendar (account resume,
       pause period, checkout, delivery list). minmax(0, 1fr) (vs the
       base repeat(7, 1fr) = minmax(auto, 1fr)) lets the tracks
       shrink below their content min so 7 columns always fit the
       phone width instead of overflowing. */
    .tl-menus-cal .tl-menus-cal-grid { min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    /* Bigger tap targets on phones: the base 6px padding renders
       ~27px cells, below the 44px touch guideline. Extra vertical
       padding lifts the clickable picker cells closer to it without
       changing the desktop layout (this rule is mobile-scoped). */
    .tl-menus-pick-cell { padding: 12px 0; }
}
/* Shared picker calendar cells — used by both account resume picker and checkout start date picker */
.tl-menus-pick-cell { text-align: center; padding: 6px 0; border-radius: 4px; font-size: 0.85em; color: #c3c4c7; border: 1px solid #e0e0e0; }
.tl-menus-pick-cell.tl-menus-pick-available { color: #fff; cursor: pointer; background: #00a32a; font-weight: 600; border-color: #00a32a; }
.tl-menus-pick-cell.tl-menus-pick-available:hover { border-color: #2271b1; background: #008a20; }
.tl-menus-pick-cell.tl-menus-pick-available.tl-menus-pick-selected { background: #2271b1; color: #fff; font-weight: 600; border-color: #2271b1; cursor: pointer; }
.tl-menus-pick-cell.tl-menus-pick-recommended { border-color: #ffc107; border-width: 2px; }
.tl-menus-pick-cell.tl-menus-pick-recommended.tl-menus-pick-selected { border-color: #2271b1; }
/* Triple compound so "today" outranks the selected state above —
   pick-today is only ever added to available cells. */
.tl-menus-pick-cell.tl-menus-pick-available.tl-menus-pick-today { border: 2px solid #2271b1; background: #dae8f5; color: #1d2327; font-weight: 600; text-decoration: underline; }
.tl-menus-pick-cell.tl-menus-pick-available.tl-menus-pick-blocked,
.tl-menus-pick-cell.tl-menus-pick-available.tl-menus-pick-blocked:hover { background: none; color: #c3c4c7; border: 1px solid #e0e0e0; font-weight: normal; text-decoration: none; cursor: default; }
.tl-menus-pick-cell.tl-menus-pick-past { color: #c3c4c7; }
.tl-menus-pick-cell.tl-menus-pick-empty { border: none; background: none; }
.tl-menus-pick-selection { font-size: 1em; margin: 10px 0 12px 0; color: #1d2327; }
.tl-menus-pick-selection strong { font-size: 1.05em; }
/* Shared picker legend dots */
.tl-menus-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; font-size: 0.8em; color: #50575e; }
.tl-menus-cal-legend-item { display: flex; align-items: center; gap: 4px; }
.tl-menus-cal-dot { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.tl-menus-cal-dot.tl-menus-legend-available { background: #00a32a; }
.tl-menus-cal-dot.tl-menus-legend-selected { background: #2271b1; }
.tl-menus-cal-dot.tl-menus-legend-recommended { background: #fff; border: 2px solid #ffc107; }
.tl-menus-cal-dot.tl-menus-legend-today,
.tl-menus-cal-dot.tl-menus-cal-today { background: #dae8f5; border: 2px solid #2271b1; }
.tl-menus-cal-dot.tl-menus-legend-holiday { background: #fce8e8; border: 1px solid #d63638; }
/* Shared picker calendar card + grid */
.tl-menus-cal { margin-bottom: 16px; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px; background: #fff; }
/* The month we are standing in, among several rendered side by side. Marks
   the TITLE only: the card body stays white so every day keeps its own
   status color against the same background as its neighbours. */
.tl-menus-cal.tl-menus-cal-current-month .tl-menus-cal-title { background: #f0f6fc; color: #2271b1; border: 1px solid #2271b1; border-radius: 4px; padding: 4px 0; }
.tl-menus-cal-title { font-weight: 600; font-size: 0.95em; margin-bottom: 8px; color: #1d2327; text-align: center; }
.tl-menus-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 0 auto; min-width: 250px; }
.tl-menus-cal-hdr { text-align: center; font-weight: 600; font-size: 0.8em; color: #50575e; padding: 4px 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 3px; }
.tl-menus-cal-hdr-weekend { color: #d63638; }
.tl-menus-cal-empty { border: none; }
.tl-menus-cal-holiday { background: #fce8e8; color: #d63638; font-weight: 600; }
.tl-menus-start-date-suggestion { background: #fff3cd; border: 1px solid #ffc107; border-radius: 4px; padding: 8px 12px; margin-bottom: 10px; font-size: 0.9em; color: #664d03; }
.tl-menus-start-date-title { margin: 0 0 8px 0; font-size: 1em; color: #1d2327; }
.tl-menus-pick-months { display: flex; flex-wrap: wrap; gap: 16px; }
/* Checkout-specific overrides — layout, colors for dark theme background */
.tl-menus-checkout-picker { margin: 20px 0; max-width: 100%; }
.tl-menus-checkout-picker h3 { font-size: 1.1em; margin-bottom: 12px; color: #fff; }
.tl-menus-checkout-picker-item { margin: 12px 0; padding: 15px 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; color: #1d2327; }
.tl-menus-checkout-picker .tl-menus-pick-months { flex-wrap: wrap; gap: 16px; }
.tl-menus-checkout-picker .tl-menus-cal { flex: 1 1 250px; margin-bottom: 8px; }
/* Prevent SweetAlert2 from shifting page content on open/close */
body.swal2-height-auto { height: inherit !important; }
body.swal2-shown { overflow: inherit !important; padding-right: 0 !important; }
button.tl-swal-btn-pause { background-color: #d63638 !important; color: #fff !important; }
button.tl-swal-btn-resume { background-color: #00a32a !important; color: #fff !important; }
button.tl-swal-btn-cancel { background-color: #787c82 !important; color: #fff !important; }
/* Popup calendar — one month at a time with nav arrows */
.tl-menus-popup-message { font-size: 0.95em; color: #1d2327; margin: 0 0 10px 0; line-height: 1.5; }
.tl-menus-popup-picker { max-width: 100%; }
.tl-menus-popup-picker .tl-menus-cal { margin-bottom: 8px; border: none; padding: 0; }
.tl-menus-popup-months { display: block; }
.tl-menus-popup-month { display: none; }
.tl-menus-popup-month.tl-menus-popup-month-active { display: block; }
.tl-menus-popup-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; }
.tl-menus-popup-nav button { min-width: 48px; min-height: 48px; font-size: 1.4em; font-weight: 700; border: 1px solid #e0e0e0; border-radius: 6px; background: #f9f9f9; color: #1d2327; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.tl-menus-popup-nav button:hover { background: #e0e0e0; }
.tl-menus-popup-nav button:disabled { opacity: 0.3; cursor: default; }
.tl-menus-popup-month-label { font-weight: 600; font-size: 1em; color: #1d2327; text-align: center; flex: 1; }
/* SweetAlert2 popup overrides for calendar */
.tl-swal-popup-picker { max-width: 420px !important; width: 95vw !important; padding: 20px 16px !important; }
.tl-swal-popup-picker .swal2-html-container { margin: 0 !important; padding: 0 !important; text-align: left !important; }
.tl-swal-popup-picker .tl-menus-cal-grid { min-width: 0; }
button.tl-swal-btn-confirm { background-color: #00a32a !important; color: #fff !important; }
