/* Shared controls for every mockup page: WhatsApp button, back to top with scroll progress, dropdowns.
   Colours come from the option's own tokens (--navy-*, --amber-*, --ink, --line). */

/* Official WhatsApp button: brand green #25D366 with the white glyph */
.wa-fab { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(18, 140, 126, .35), 0 2px 6px rgba(0, 0, 0, .12); transition: transform .2s ease, box-shadow .2s ease; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.6s ease-out infinite; }
.wa-fab .i { width: 32px; height: 32px; margin: 0 14px; flex: none; }
.wa-fab-label { position: absolute; right: 72px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 8px 12px; border-radius: 10px; background: #fff; color: #0b3b24; font-size: 14px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 13, 46, .16); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.wa-fab:hover, .wa-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(18, 140, 126, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { opacity: 1; transform: translate(0, -50%); }
.wa-fab:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* Back to top, with a ring that fills as the page scrolls */
.to-top { position: fixed; right: 30px; bottom: 98px; z-index: 44; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-900); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 13, 46, .18); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy-700); }
.to-top:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.to-top .i { width: 20px; height: 20px; position: relative; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3.5; }
.to-top-ring .track { stroke: var(--navy-50); }
.to-top-ring .bar { stroke: var(--amber-500); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

/* Dropdowns: a custom closed state everywhere, and a styled list where the browser supports appearance: base-select */
.pj-select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 48px; padding: 11px 46px 11px 14px; border: 1.5px solid #9aa6b6; border-radius: 12px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001a57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.pj-select:hover { border-color: var(--navy-700); background-color: var(--navy-50); }
.pj-select:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 1px; border-color: var(--navy-700); }
@supports (appearance: base-select) {
  .pj-select, .pj-select::picker(select) { appearance: base-select; }
  .pj-select::picker-icon { display: none; }
  .pj-select::picker(select) { margin-top: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(0, 13, 46, .18); }
  .pj-select option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .pj-select option:hover, .pj-select option:focus-visible { background: var(--navy-50); outline: none; }
  .pj-select option:checked { background: var(--navy-900); color: #fff; }
  .pj-select option::checkmark { order: 1; margin-left: auto; color: var(--amber-500); }
}

/* Phones: the bottom bars already hold WhatsApp, so the round button steps aside */
@media (max-width: 760px) {
  .wa-fab { display: none; }
  .to-top { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before { animation: none; }
}

/* WhatsApp inside the phone bars: the green tells it apart from the other buttons */
.btn-wa { background: #25d366; color: #062b16; }
.btn-wa:hover { background: #3be07c; }
.bnav .bnav-wa i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #25d366; color: #fff; }
.bnav .bnav-wa i .i { width: 18px; height: 18px; }
