/* ProRide Accessibility Panel Pro (HE) - v1.3.2 */
:root{
  --prhe-red: #b10f2c;
  --prhe-red2:#8f0b22;
  --prhe-border:#e5e7eb;
  --prhe-muted:#6b7280;
  --prhe-bg:#ffffff;
  --prhe-shadow: 0 22px 70px rgba(0,0,0,.25);
  --prhe-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

/* floating button */
#prhe-fab{
  position: fixed;
  z-index: 9999997;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 0;
  color:#fff;
  box-shadow: var(--prhe-shadow);
  cursor:pointer;
  place-items:center;
}
#prhe-fab:focus{ outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }

#prhe-overlay{
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display:none;
  background: rgba(0,0,0,.35);
  direction: ltr;
}
#prhe-overlay.open{ display:block; }

#prhe-modal{
  position:absolute;
  inset: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--prhe-bg);
  box-shadow: var(--prhe-shadow);
  direction: rtl;
  text-align:right;
  font-family: var(--prhe-font);
  overflow:hidden;
}

/* on desktop, dock to side */
@media (min-width: 900px){
  #prhe-modal{
    top: 0; bottom: 0;
    height: 100vh;
    width: 520px;
    border-radius: 0 22px 22px 0;
    right: 0;
  }
  #prhe-overlay{ background: rgba(0,0,0,.45); }
}

/* header (red with white curves) */
#prhe-header{
  position: relative;
  background: linear-gradient(180deg, var(--prhe-red), var(--prhe-red2));
  color:#fff;
  padding: 14px 14px 18px;
}
#prhe-header::before,
#prhe-header::after{
  content:"";
  position:absolute;
  bottom:-26px;
  width: 160px;
  height: 64px;
  background:#fff;
  border-radius: 999px;
}
#prhe-header::before{ left:-60px; }
#prhe-header::after{ right:-60px; }

#prhe-toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.prhe-iconbtn{
  border:0;
  background: transparent;
  color:#fff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.prhe-iconbtn:hover{ background: rgba(255,255,255,.10); }

#prhe-langpill{
  display:flex;
  align-items:center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

#prhe-title{
  position: relative;
  z-index: 1;
  margin-top: 10px;
  display:flex;
  justify-content:center;
}
#prhe-title span{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* body */
#prhe-content{
  position: relative;
  height: calc(100vh - 182px);
  overflow:auto;
  padding: 34px 16px 18px;
}

/* section headers + collapse button */
.prhe-section{ margin-bottom: 18px; }
.prhe-sechead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.prhe-sechead h4{
  margin:0;
  font-size: 18px;
  font-weight: 700;
  color: var(--prhe-red);
}
.prhe-collapse{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border:0;
  background: var(--prhe-red);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}

/* tiles grid */
.prhe-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 520px){
  .prhe-grid{ grid-template-columns: repeat(2, 1fr); }
}

.prhe-tile{
  border: 1px solid var(--prhe-border);
  background:#fff;
  border-radius: 8px;
  padding: 14px 12px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height: 104px;
  gap: 10px;
  color: var(--prhe-red);
}
.prhe-tile:hover{ box-shadow: 0 10px 22px rgba(0,0,0,.06); transform: translateY(-1px); }
.prhe-tile[aria-pressed="true"]{
  background: #6b7280;
  border-color: #6b7280;
  color:#fff;
}
.prhe-tile[aria-pressed="true"] .prhe-tlabel{ color:#fff; }
.prhe-tile svg{ width: 40px; height: 40px; }
.prhe-tlabel{
  text-align:center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--prhe-red);
}

/* content controls cards (like screenshot) */
.prhe-card{
  border: 1px solid var(--prhe-border);
  border-radius: 8px;
  background:#fff;
  padding: 12px;
  margin-bottom: 14px;
}
.prhe-cardhead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.prhe-cardhead h5{
  margin:0;
  font-size: 15px;
  font-weight: 600;
  color: var(--prhe-red);
}
.prhe-cardhead p{
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--prhe-muted);
}
.prhe-cardico svg{ width: 34px; height: 34px; color: var(--prhe-red); }

.prhe-pills{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.prhe-pill{
  border: 1px solid var(--prhe-border);
  background:#fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--prhe-red);
  cursor:pointer;
}
.prhe-pill[aria-pressed="true"]{
  background: var(--prhe-red);
  border-color: var(--prhe-red);
  color:#fff;
}

.prhe-sliderrow{
  display:flex;
  align-items:center;
  gap: 10px;
}
.prhe-sbtn{
  width: 42px;
  height: 34px;
  border-radius: 999px;
  border:0;
  background: rgba(177,15,44,.70);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.prhe-sbtn:hover{ background: rgba(177,15,44,.85); }
.prhe-range{
  flex: 1 1 auto;
  accent-color: var(--prhe-red);
  height: 6px;
}
.prhe-sval{
  min-width: 46px;
  text-align:center;
  font-weight: 600;
  color: var(--prhe-red);
}

/* left +/- vertical controls like reference */
#prhe-zoomrail{
  position: fixed;
  top: 170px;
  left: 14px;
  z-index: 2147483647;
  display:none;
  flex-direction:column;
  gap: 8px;
}
#prhe-overlay.open #prhe-zoomrail{ display:flex; }
.prhe-zoombtn{
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border:0;
  background: var(--prhe-red);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

/* footer bar */
#prhe-footer{
  position:absolute;
  left:0; right:0; bottom:0;
  background: linear-gradient(180deg, var(--prhe-red), var(--prhe-red2));
  color:#fff;
  padding: 14px 14px 10px;
}
#prhe-footnav{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
}
.prhe-footbtn{
  border:0;
  background: transparent;
  color:#fff;
  cursor:pointer;
  padding: 10px 8px;
  border-radius: 10px;
}
.prhe-footbtn:hover{ background: rgba(255,255,255,.10); }

#prhe-powered{
  margin-top: 10px;
  text-align:center;
  font-size: 14px;
  opacity: .95;
}

/* --- Page effect classes (applied only when user enables an option) --- */



/* --- Site contrast modes (wrapper-only, keep accessibility panel untouched) --- */

/* Light contrast: white background + dark text (only inside site wrapper) */
html.prapphe-contrast .mkdf-wrapper{
  background:#ffffff !important;
  color:#111827 !important;
}
html.prapphe-contrast .mkdf-wrapper :where(*){ 
  background-color: transparent !important;
  color:#111827 !important;
  border-color:#111827 !important;
  text-shadow:none !important;
  box-shadow:none !important;
}
html.prapphe-contrast .mkdf-wrapper :where(main,section,article,aside,header,footer,nav,div,form,table,thead,tbody,tfoot,tr,td,th){
  background-color:#ffffff !important;
}
html.prapphe-contrast .mkdf-wrapper a{ color:#0b3a8a !important; text-decoration: underline !important; }

/* Dark contrast: black background + light text (only inside site wrapper) */
html.prapphe-invert .mkdf-wrapper{
  background:#000000 !important;
  color:#f9fafb !important;
}
html.prapphe-invert .mkdf-wrapper :where(*){ 
  background-color: transparent !important;
  color:#f9fafb !important;
  border-color:#f9fafb !important;
  text-shadow:none !important;
  box-shadow:none !important;
}
html.prapphe-invert .mkdf-wrapper :where(main,section,article,aside,header,footer,nav,div,form,table,thead,tbody,tfoot,tr,td,th){
  background-color:#000000 !important;
}
html.prapphe-invert .mkdf-wrapper a{ color:#93c5fd !important; text-decoration: underline !important; }

/* Monochrome: apply filter only to site wrapper (prevents breaking fixed UI like cart/panel) */
html.prapphe-grayscale .mkdf-wrapper{
  filter: grayscale(1) contrast(1.10) !important;
}
html.prapphe-stop-anim *, html.prapphe-stop-anim *::before, html.prapphe-stop-anim *::after{
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

html.prapphe-underline a{ text-decoration: underline !important; text-underline-offset: .12em; }
html.prapphe-highlight a{
  outline: 3px solid rgba(250,204,21,.55) !important;
  outline-offset: 2px !important;
  border-radius: 6px;
}

html.prapphe-readable-font body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
}

html.prapphe-hide-images img,
html.prapphe-hide-images picture,
html.prapphe-hide-images figure{
  opacity: 0 !important;
  visibility: hidden !important;
}

/* v176-mini: hide slider value label */
.prhe-sval{ display:none !important; }
