/* Navy Yard Transit purchase widget — single-page Logan Express-style layout */
/* Demo site: hide everything below the widget (theme footer) */
body footer, .wp-block-template-part:has(footer), .site-footer { display: none !important; }

.nyp-widget { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #14213d; max-width: 1080px; margin: 0 auto; padding: 8px 12px 64px; }
.nyp-loading, .nyp-hint { color: #5b6b85; padding: 14px 4px; font-size: 15px; }
.nyp-error { background: #fdecec; color: #9d2b2b; border: 1px solid #f3c1c1; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.nyp-hidden { display: none; }

.nyp-layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .nyp-layout { grid-template-columns: 1fr; } .nyp-side { order: -1; } }
.nyp-main { display: flex; flex-direction: column; gap: 18px; }
.nyp-side { position: sticky; top: 24px; }

.nyp-card { background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(15, 35, 66, .04); }
.nyp-card-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: #0b2b53; }

.nyp-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.nyp-pill-lg { border: 1px solid #cdd6e4; background: #fff; color: #33415e; border-radius: 999px; padding: 11px 22px; font-size: 15px; font-weight: 700; cursor: pointer; }
.nyp-pill-lg.active { background: #0b2b53; border-color: #0b2b53; color: #fff; }

.nyp-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
@media (max-width: 620px) { .nyp-routes { grid-template-columns: 1fr; } }
.nyp-route-card { border: 2px solid #e2e8f2; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.nyp-route-card:hover { border-color: #9fd328; }
.nyp-route-card.active { border-color: #9fd328; background: #f7fce9; }
.nyp-route-name { font-weight: 700; font-size: 16px; }
.nyp-route-note { margin-top: 4px; font-size: 13px; color: #5b6b85; line-height: 1.45; }
.nyp-pass-details { margin-top: 12px; }

.nyp-tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.nyp-tier-card { border: 1px solid #e2e8f2; border-radius: 12px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nyp-tier-card-name { font-weight: 700; font-size: 16px; }
.nyp-tier-card-price { color: #0b2b53; font-weight: 700; font-size: 15px; }
.nyp-stepper { display: flex; align-items: center; gap: 12px; }
.nyp-step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cdd6e4; background: #fff; font-size: 17px; cursor: pointer; color: #0b2b53; line-height: 1; }
.nyp-step:hover { background: #f2f6e6; }
.nyp-step-val { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; }

.nyp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 620px) { .nyp-grid2 { grid-template-columns: 1fr; } }
.nyp-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #33415e; font-weight: 600; }
.nyp-field.nyp-wide { grid-column: 1 / -1; }
.nyp-req { color: #c0392b; font-style: normal; }
.nyp-input { border: 1px solid #cdd6e4; border-radius: 8px; padding: 10px 11px; font-size: 15px; color: #14213d; background: #fafbfd; width: 100%; box-sizing: border-box; }
.nyp-input:focus { outline: 2px solid #9fd328; border-color: #9fd328; background: #fff; }

.nyp-demo-note { font-size: 13px; color: #58601f; background: #f7fce9; border: 1px solid #dcedb2; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; }
.nyp-terms { font-size: 13px; color: #5b6b85; margin: 8px 0 14px; }
.nyp-terms a { color: #0b2b53; font-weight: 700; }

.nyp-buy { display: block; width: 100%; background: #9fd328; color: #14290a; font-weight: 800; font-size: 16px; letter-spacing: .03em; border: none; border-radius: 10px; padding: 15px; cursor: pointer; }
.nyp-buy:hover { background: #8cc11d; }
.nyp-buy:disabled { opacity: .6; cursor: default; }

.nyp-summary-card { border-top: 4px solid #9fd328; }
.nyp-sum-type { font-size: 13px; color: #5b6b85; margin-bottom: 12px; line-height: 1.6; }
.nyp-sum-type strong { color: #14213d; font-size: 15px; }
.nyp-sum-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid #eef2f8; }
.nyp-sum-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; padding-top: 12px; margin-top: 6px; }
.nyp-sum-total strong { font-size: 22px; color: #0b2b53; }

.nyp-confirm { text-align: center; background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; padding: 48px 24px; }
.nyp-confirm-check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #9fd328; color: #14290a; font-size: 34px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nyp-confirm-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.nyp-confirm-body { color: #5b6b85; font-size: 15px; line-height: 1.6; max-width: 460px; margin: 0 auto 18px; }
.nyp-confirm .nyp-buy { max-width: 260px; margin: 0 auto; }
