/* Membership privileges by package, terms in a side panel. */
.bw-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The section becomes a single column: heading and terms link above, table below. */
.membership-page.portal-landing .membership-benefits:has(.bw-privileges){display:block}
.bw-privileges-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:34px}
.bw-privileges-head .eyebrow{margin-bottom:14px}
.bw-privileges-head h2{margin:0;max-width:none}

/* Under the table: fare note and the terms link, both in small type. */
.bw-privileges-foot{display:flex;justify-content:space-between;align-items:baseline;gap:24px;margin-top:16px;font:400 12px/1.6 'DM Sans',sans-serif}
.bw-privileges-foot p{margin:0;opacity:.6}
.bw-terms-link{flex:none;padding:0;border:0;text-decoration:none;border-bottom:1px solid currentColor;background:none;color:inherit;cursor:pointer;font:500 12px/1.6 'DM Sans',sans-serif;letter-spacing:.2px;opacity:.8}
.bw-terms-link:hover,.bw-terms-link:focus-visible{opacity:1}
/* The site's glass button style (language/language.css: !important, ID-level specificity)
   covers every button; the close control stays a plain circle. */
#bw-terms-close#bw-terms-close{border-radius:50%!important;background-image:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

.bw-privileges{width:100%;border-collapse:separate;border-spacing:0;font:400 14px/1.5 'DM Sans',sans-serif}
.bw-privileges thead th{padding:0 12px 16px;text-align:center;font:600 11px/1 'DM Sans',sans-serif;letter-spacing:2.2px;text-transform:uppercase;opacity:.75}
/* Rules sit on the cells (not the rows), so each line fades in with its own row. */
.bw-privileges tbody th,.bw-privileges tbody td{border-top:1px solid rgba(127,127,127,.28)}
.bw-privileges tbody tr:last-child>*{border-bottom:1px solid rgba(127,127,127,.28)}
.bw-privileges tbody th{padding:20px 24px 20px 0;text-align:left;font-weight:400;width:46%}
.bw-privileges tbody th strong{display:block;font:600 15px/1.35 'Manrope',sans-serif;letter-spacing:-.01em}
.bw-privileges tbody th span{display:block;margin-top:4px;font-size:13px;opacity:.65}
.bw-privileges td{padding:20px 12px;text-align:center;white-space:nowrap;font-size:14px}
.bw-privileges td svg{vertical-align:middle}
.bw-privileges td > span[aria-hidden]{opacity:.35}

/* The side panel. */
.bw-terms-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(560px,100vw);max-width:none;height:100%;max-height:none;padding:0;border:0;border-left:1px solid #2a2a2a;background:#0f0f0f;color:#e8e8e8;overflow:auto}
.bw-terms-drawer{overscroll-behavior:contain}
.bw-terms-drawer::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(3px)}
.bw-terms-drawer[open]{animation:bw-drawer-in .55s cubic-bezier(.16,1,.3,1)}
.bw-terms-drawer[open]::backdrop{animation:bw-fade .45s ease-out}
.bw-terms-drawer.is-closing{animation:bw-drawer-out .32s cubic-bezier(.4,0,1,1) forwards}
.bw-terms-drawer.is-closing::backdrop{animation:bw-fade .32s ease-in reverse forwards}
@keyframes bw-drawer-in{from{transform:translateX(40px);opacity:0}}
@keyframes bw-drawer-out{to{transform:translateX(40px);opacity:0}}
@keyframes bw-fade{from{opacity:0}}
@media (prefers-reduced-motion:reduce){.bw-terms-drawer[open],.bw-terms-drawer[open]::backdrop{animation:none}}
.bw-terms-drawer .membership-terms{display:block;padding:56px 40px 48px;margin:0;background:none;color:inherit}
.bw-terms-drawer #terms-title:focus{outline:none}
.bw-terms-drawer .membership-terms h2{font-size:30px;line-height:1.15;margin:12px 0 14px}
.bw-terms-drawer .membership-terms p{font-size:13px;line-height:1.7;color:#bdbdbd}
.bw-terms-drawer .membership-accordions{margin-top:28px}
.bw-terms-drawer details{border-top:1px solid #2a2a2a;padding:16px 0}
.bw-terms-drawer details:last-child{border-bottom:1px solid #2a2a2a}
.bw-terms-drawer summary{cursor:pointer;font:600 14px/1.4 'Manrope',sans-serif;color:#fff}
.bw-terms-drawer details ul{margin:12px 0 0;padding-left:18px;font-size:12.5px;line-height:1.75;color:#bdbdbd}
.bw-terms-close{position:sticky;top:0;float:right;margin:14px 14px 0 0;width:40px;height:40px;border:1px solid #333;border-radius:50%;background:#151515;color:#fff;font-size:22px;line-height:1;cursor:pointer;z-index:1}

@media (max-width:760px){
  .bw-privileges-foot{flex-direction:column;gap:8px}
  .bw-privileges tbody th{width:auto;padding-right:10px}
  .bw-privileges tbody th span{display:none}
  .bw-privileges thead th{padding:0 4px 14px;letter-spacing:1.2px;font-size:10px}
  .bw-privileges td{padding:16px 4px;font-size:12.5px;white-space:normal;line-height:1.35}
  .bw-terms-drawer .membership-terms{padding:56px 22px 40px}
}
