/* Additions the WordPress templates need on top of theme.css */
img { max-width: 100%; }
.shell > script { display: none; }
body.admin-bar .side { top: 32px; height: calc(100vh - 32px); }
body.admin-bar .topbar { top: 32px; }

/* the first slide is visible before the script starts */
.js .hero .slide.is-active { visibility: visible; }

.chip[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip[aria-current="true"] small { color: rgba(255,255,255,.8); }
.toolbar .btn { flex: 0 0 auto; }

.pagination { margin: 36px 0 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line, #dfe6f3); border-radius: 12px; background: #fff; font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line, #dfe6f3); border-radius: 12px; background: #fff; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }

.entry { max-width: 76ch; }
.entry ul, .entry ol { padding-left: 1.3em; }
.desc table { width: 100%; border-collapse: collapse; margin: 12px 0; display: block; overflow-x: auto; }
.desc td, .desc th { border: 1px solid var(--line, #dfe6f3); padding: 8px 10px; text-align: left; vertical-align: top; }
.desc img { height: auto; }

.pcard-item { list-style: none; display: grid; }
.pcard__price .amount { font-weight: 700; }
.form.is-sending [type="submit"] { opacity: .6; pointer-events: none; }

form.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
form.toolbar #q { flex: 1 1 260px; width: auto; min-width: 0; }
form.toolbar #sort { flex: 0 1 240px; width: auto; }
@media (max-width: 560px) { form.toolbar #sort { flex: 1 1 0; } }

/* the reCAPTCHA badge also sits in the bottom right corner */
body:has(.grecaptcha-badge) .fab { bottom: 88px; }
