/* Shared app selection controls and responsive website counterparts. */
:root { --ph-control-border: #dce3ea; --ph-control-text: #68758a; --ph-control-wash: #eaf2ff; }
.ph-account-choice, .ph-preference-pill, .ph-active-filters button,
.ph-promo-controls button, .ph-promo-dropdown > summary,
.ph-deals-homepage .ph-deals-filter-toggle-btn, #favoriteFilterToggle {
  box-sizing: border-box; min-height: 44px; height: auto; padding: 9px 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--ph-control-border); border-radius: 999px;
  background: #fff; color: var(--ph-control-text); box-shadow: none;
  font: 400 13px/20px Poppins, sans-serif; cursor: pointer;
}
.ph-account-choice[aria-pressed="true"], .ph-preference-pill[aria-pressed="true"],
.ph-promo-controls button[aria-pressed="true"], .ph-deals-homepage .ph-deals-filter-toggle-btn.is-open {
  background: var(--ph-control-wash); border-color: var(--ph-signature-blue); color: var(--ph-signature-blue); font-weight: 600; box-shadow: none;
}
.ph-preference-pill[aria-pressed="true"]::after { content: "✓"; font-size: 15px; }
.ph-preference-pill:disabled { cursor: wait; }
.ph-preference-pill:focus-visible, .ph-preference-entry:focus-visible, .ph-promo-dropdown > summary:focus-visible { outline: 2px solid var(--ph-signature-blue); outline-offset: 3px; }
.ph-calendar-segment, .ph-favorites-tabs, .ph-preference-view, .ph-view-controls, .ph-calendar-view-toggle {
  box-sizing: border-box; display: flex; gap: 4px; padding: 0; min-height: 44px;
  border: 1px solid var(--ph-control-border); border-radius: 999px; background: #fff;
}
.ph-calendar-segment button, .ph-favorites-tabs button, .ph-preference-view button,
.ph-view-controls button, .ph-calendar-view-toggle button {
  box-sizing: border-box; flex: 1; min-height: 42px; height: auto; padding: 9px 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ph-control-text);
  font: 600 14px/22px Poppins, sans-serif; box-shadow: none; cursor: pointer;
}
.ph-calendar-segment button[aria-selected="true"], .ph-favorites-tabs button[aria-selected="true"],
.ph-preference-view button[aria-pressed="true"], .ph-view-controls button[aria-pressed="true"],
.ph-calendar-view-toggle button[aria-pressed="true"] { background: var(--ph-signature-blue); color: #fff; box-shadow: none; }
.ph-view-controls button, .ph-calendar-view-toggle button { width: 42px; padding: 0; }
.ph-view-controls { height: 44px; }
.ph-favorites-heading { display: block; }
.ph-favorites-tabs { margin-top: 20px; width: 100%; }
.ph-count-pill { min-width: 27px; height: 27px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--ph-signature-blue); color: #fff; font-size: 12px; font-weight: 700; }
.ph-count-pill[hidden] { display: none; }
.ph-calendar-days { gap: 8px 0; padding: 5px 0; }
.ph-calendar-days .ph-calendar-day { box-sizing: border-box; width: min(49px, calc(100% - 6px)); height: auto; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 50%; min-width: 0; min-height: 0; overflow: visible; }
.ph-calendar-day small, .ph-calendar-day.is-selected small { top: -3px; right: -3px; bottom: auto; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; background: #ffd3b0; color: #0a1c37; font-size: 10px; font-weight: 700; line-height: 19px; }
.ph-calendar-when { font-weight: 600; }
.ph-event-store-date { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px 0 24px; }
.ph-event-store-date p { flex: 1; min-width: 0; margin: 0; font: 400 16px/24px Poppins, sans-serif; color: var(--ph-control-text); overflow-wrap: anywhere; }
.ph-event-store-date #eventDates { text-align: right; }
.ph-event-back { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px; margin-left: -12px; }
.ph-preferences-note { margin: 0 0 20px; color: var(--ph-control-text); font-size: 13px; line-height: 19px; }
.ph-preferences-note a { color: inherit; font-weight: 400; text-decoration: underline; }
.ph-preference-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; color: #0a1c37; text-decoration: none; }
.ph-preference-entry small { display: block; margin-top: 3px; color: var(--ph-control-text); font-size: 12px; }
.ph-preference-entry svg { width: 18px; height: 18px; }
.ph-shopping-shell { max-width: 800px; }
.ph-shopping-intro { text-align: center; margin: 0; color: var(--ph-control-text); font-size: 14px; }
.ph-shopping-status { text-align: center; margin: 5px 0 20px; color: #8791a0; font-size: 12px; min-height: 20px; }
.ph-shopping-status.is-error { color: #b91c1c; }
.ph-shopping-card { padding: 18px; margin-bottom: 18px; border: 1px solid #e9edf2; border-radius: var(--ph-card-radius, 20px); background: #fff; }
.ph-shopping-card h2 { margin: 0 0 8px; font: 700 20px/28px "Plus Jakarta Sans", sans-serif; color: #0a1c37; }
.ph-preference-description { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--ph-control-text); font-size: 13px; line-height: 20px; }
.ph-preference-description p { flex: 1; margin: 0; }
.ph-preference-description output { flex-shrink: 0; font-size: 12px; color: #8791a0; }
.ph-preference-search { width: 100%; box-sizing: border-box; min-height: 44px; margin: 16px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: #f1f5f9; font: 400 14px Poppins, sans-serif; }
.ph-preference-search:focus { outline: none; border-color: var(--ph-signature-blue); }
.ph-preference-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-preference-options [hidden] { display: none; }
.ph-preference-view { margin-top: 16px; }
.ph-preference-view svg { width: 18px; height: 18px; }
.ph-header .ph-deals-search, .ph-deals-homepage .ph-deals-search { box-sizing: border-box; min-height: 44px; height: auto; border: 1px solid var(--ph-control-border); border-radius: 999px; padding: 9px 13px; gap: 6px; background: #fff; box-shadow: none; }
.ph-header .ph-deals-search:focus-within { background: var(--ph-control-wash); border-color: var(--ph-signature-blue); box-shadow: none; }
.ph-header .ph-deals-search-input { font: 400 13px/20px Poppins, sans-serif; background: transparent; padding: 0; }
.ph-deals-search-input::placeholder { color: var(--ph-control-text); }
.ph-promo-dropdown { position: relative; }
.ph-promo-dropdown > summary { list-style: none; justify-content: space-between; gap: 12px; }
.ph-promo-dropdown > summary::-webkit-details-marker { display: none; }
.ph-promo-dropdown > summary::after { content: "⌄"; font-size: 16px; }
.ph-promo-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(360px, 80vw); display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border: 1px solid var(--ph-control-border); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #0a1c371a; }
@media (max-width: 600px) {
  .ph-favorites-tabs button { padding-inline: 9px; }
  .ph-event-content { padding: 18px; }
  .ph-feature-section-head { gap: 10px; flex-wrap: wrap; }
}
#supportFeedback > label { display: block; margin-top: 18px; font-size: 13px; color: var(--ph-control-text); }
#supportFeedback textarea { margin-top: 8px; resize: vertical; }
.ph-preference-submit { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ph-signature-blue); color: white; font: 600 14px Poppins,sans-serif; cursor: pointer; }
#supportFeedback button:disabled { opacity: .6; cursor: wait; }
.ph-promos-page .ph-deals-results-top { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; }
.ph-promos-page .ph-deals-results-actions { display: contents; }
.ph-promos-page #promotionFilters { grid-column: 1; min-width: 0; width: 100%; }
.ph-promos-page .ph-promo-dropdown { width: 100%; }
.ph-promos-page .ph-promo-dropdown > summary { min-width: 0; width: 100%; }
.ph-promos-page #dealsFilterToggleBtn { grid-column: 2; }
.ph-promos-page .ph-view-controls { grid-column: 3; margin: 0; }
.ph-promos-page #dealsRefreshBtn { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
.ph-deals-homepage .ph-deals-results-actions .ph-deals-filter-toggle-btn { height: 44px; min-height: 44px; font: 400 13px/20px Poppins,sans-serif; }
.ph-promos-page #dealsFilterToggleBtn { height: 44px; min-height: 44px; }
.ph-favorite-filters { grid-template-columns: 1fr; }
.ph-favorite-filters select[hidden] { display: none; }
.ph-multi-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-multi-options .ph-multi-search { flex-basis: 100%; width: 100%; }
.ph-multi-options label { min-height: 44px; padding: 9px 13px; border: 1px solid var(--ph-control-border); border-radius: 999px; font-size: 13px; font-weight: 400; }
.ph-multi-options label:has(input:checked) { background: var(--ph-control-wash); border-color: var(--ph-signature-blue); color: var(--ph-signature-blue); font-weight: 600; }
.ph-multi-options label[hidden] { display: none; }

/* Shared pill choices for single- and multiple-selection filters. */
.ph-pretty-select.is-open .ph-pretty-select-menu { display:flex; flex-wrap:wrap; gap:8px; padding:12px; }
.ph-pretty-select-option, .ph-multi-options label {
  box-sizing:border-box; width:auto; max-width:100%; min-height:44px;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 13px; border:1px solid var(--ph-control-border); border-radius:999px;
  background:#fff; color:var(--ph-control-text); font:400 13px/20px Poppins,sans-serif;
  cursor:pointer; overflow-wrap:anywhere;
}
.ph-pretty-select-option.is-selected, .ph-multi-options label:has(input:checked) {
  background:var(--ph-control-wash); border-color:var(--ph-signature-blue);
  color:var(--ph-signature-blue); font-weight:600;
}
.ph-multi-options label { position:relative; }
.ph-multi-options label input[type="checkbox"] { position:absolute; width:1px; height:1px; opacity:0; margin:0; }
.ph-pretty-select-option.is-selected::after, .ph-multi-options label:has(input:checked)::after,
.ph-promo-controls button[aria-pressed="true"]::after { content:"✓" / ""; font-size:15px; flex-shrink:0; }
.ph-pretty-select-option:focus-visible, .ph-multi-options label:has(input:focus-visible) { outline:2px solid var(--ph-signature-blue); outline-offset:2px; }
