/* Kevin 8 Nov, D7 + D10: the "Pay your way" band (#pay) and the top bar.
   Used on the landing page, the buyer site and the "How to pay" page. */

.pb { padding: 56px 0; background: #FDF6EA; font-family: inherit; }
.pb-inner { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.pb-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5f9b2f; }
.pb-title { margin: 0 0 24px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; line-height: 1.15; color: #183615; }
.pb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pb-card { position: relative; padding: 24px 22px 20px; border: 1.5px solid #eadfcc; border-radius: 14px; background: #fff; }
.pb-card--now { border: 2px solid #EE9F3A; }
.pb-card--promo { border: 2px solid #5f9b2f; }
.pb-badge { position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 999px; background: #EE9F3A; color: #183615; font-size: 12px; font-weight: 700; }
.pb-badge--promo { background: #5f9b2f; color: #fff; }
.pb-card-title { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; color: #183615; }
.pb-points { margin: 0; padding: 0; list-style: none; }
.pb-points li { position: relative; margin: 0 0 6px; padding-left: 22px; font-size: 15px; line-height: 1.45; color: #3b4a39; }
.pb-points li::before { content: "✓"; position: absolute; left: 0; color: #5f9b2f; font-weight: 700; }
.pb-fee { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: #183615; }
.pb-fee s { margin-right: 6px; font-weight: 400; color: #8a8f98; }
.pb-fee--promo strong { color: #2e7d32; }
.pb-first { margin-left: 4px; font-weight: 400; color: #6b7280; }
/* N1: the badge row ("Limited offer" + the countdown beside it, same line) */
.pb-badges { position: absolute; top: -13px; left: 18px; right: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pb-badges .pb-badge { position: static; }
.pb-card--promo { padding-top: 30px; }
/* N1: state ② free, no promo */
.pb-free { margin: 12px 0 0; }
.pb-free-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e6f4dc; color: #2e6b1f; font-size: 13px; font-weight: 700; }
.pb-haggle { margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: #3b4a39; }
@media (max-width: 767px) {
    .pb { padding: 44px 0; }
    .pb-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ---------- D10 ①: the top bar on every page ---------- */
.pay-bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 44px 7px 16px; background: #183615; color: #fff; font-size: 14px; line-height: 1.35; text-align: center; }
.pay-bar--promo { background: #EE9F3A; color: #183615; }
.pay-bar-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pay-bar a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.pay-bar-close { position: absolute; right: 2px; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.pay-bar-close:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* ---------- D10 ②: the line under prices ---------- */
.pay-line { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: #eef7e8; color: #2f5d34; font-size: 12px; font-weight: 600; line-height: 1.5; }
.pay-line--promo { background: #fdf1ea; color: #b45309; }

/* ---------- D10 ③: checkout labels ---------- */
.pay-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #eef7e8; color: #2e7d32; font-size: 12px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.pay-tag--fee { background: #f3f4f6; color: #374151; }
.pay-tag--promo { background: #fdf1ea; color: #b45309; }
.pay-tag s { margin-right: 4px; font-weight: 400; opacity: .7; }

/* ---------- N1: the countdown pill (partials/countdown.blade.php) ---------- */
/* Parts swapped at zero: hidden must win over any display rule. */
[data-cd-when][hidden] { display: none !important; }
.cd { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #183615; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; box-shadow: 0 0 0 2px #EE9F3A; font-variant-numeric: tabular-nums; }
.cd--red { background: #A3361B; }
.cd--small { margin-left: 6px; padding: 1px 8px; font-size: 11.5px; vertical-align: middle; }
.cd--pulse { animation: cd-pulse 1.6s ease-in-out infinite; }
@keyframes cd-pulse { 0%, 100% { box-shadow: 0 0 0 2px #EE9F3A; } 50% { box-shadow: 0 0 0 5px rgba(238, 159, 58, .45); } }
@media (prefers-reduced-motion: reduce) { .cd--pulse { animation: none; } }
.pay-tag-wrap { white-space: nowrap; }
