/*
 * Aanvullingen voor de WordPress-versie.
 *
 * app.css wordt automatisch gemaakt uit de Vue-versie (tools/build_css.py); pas dat bestand
 * dus niet met de hand aan. Hier staan de paar plekken waar WordPress andere HTML gebruikt:
 * links en kleine formulieren waar de Vue-app knoppen had, en het zoekveld in het aanbod.
 */

[hidden] { display: none !important; }
a.btn { text-decoration: none; }
/* Links die een <button> vervangen: knoppen centreren tekst vanzelf, links niet */
a.btn, .userbar a.userbar-item, .c-Pagination a, .c-Product a.cta { text-align: center; }
/* De kalender wordt in #datepicker getekend; dat element zelf telt niet mee voor de opmaak */
#datepicker { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inline-form { display: contents; }
.is-disabled { pointer-events: none; }
a.link-plain.is-disabled { color: var(--text-4); }

/* Een link die eruitziet als de uitgeschakelde hoofdknop (Tijd & datum, zolang de periode niet compleet is) */
a.btn-primary.is-disabled { background: #e7e7e7; color: #b5b5b5; }
a.btn-primary.is-disabled img { opacity: .35; filter: grayscale(1) brightness(.6); }

/* Bovenbalk: "UITLOGGEN" is hier een link (in de Vue-app een knop) */
.userbar a.userbar-item { text-decoration: none; }

/* Aanbod: de inhoud van het filterpaneel staat in een <form>; laat de tussenruimte van het paneel daar gewoon gelden */
.c-Aanbod .filters > form { display: contents; }

/* Inloggen: foutmelding van de externe inlogdienst */
.c-Login .login-error { margin-top: 20px; max-width: 520px; }

/* Aanbod: de categorieën zijn <label>s rond een onzichtbaar selectievakje (werkt ook met toetsenbord) */
.c-Aanbod label.option { cursor: pointer; }
.c-Aanbod label.option:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.c-Aanbod .option.busy { opacity: .6; }
.c-Aanbod .sort-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; text-decoration: none; }
.c-Aanbod .sort-menu a:hover { background: var(--surface); }
.c-Aanbod .sort-menu a.sel { font-weight: 700; }
.c-Aanbod .search { position: relative; flex: 0 1 280px; }
.c-Aanbod .search input {
  width: 100%; height: 38px; padding: 0 14px 0 40px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; font: inherit; font-size: 14px;
}
.c-Aanbod .search input:focus { outline: none; border-color: var(--ink); }
.c-Aanbod .search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .6; pointer-events: none; }
.c-Aanbod .search-note { font-size: 14px; }
.c-ProductCard .inline-form + * { margin: 0; }
/* "Reserveren" staat in een klein formulier: geef de knop dezelfde halve breedte als in het origineel */
.c-ProductCard .actions .inline-form > * { flex: 1; }

/* Paginering: links in plaats van knoppen */
.c-Pagination a.page { display: grid; place-items: center; text-decoration: none; }
.c-Pagination a.arrow { text-decoration: none; }
.c-Pagination .arrow.is-disabled { border-color: var(--border-soft); color: #b8b8b8; }
.c-Pagination .arrow.is-disabled img { opacity: .4; }

/* Bestelling: de knoppen voor aantal en verwijderen staan in kleine formulieren */
.c-Bestelling .qty .inline-form button, .c-Bestelling .qty > button { width: 40px; height: 40px; display: grid; place-items: center; }
.c-Bestelling a.back { color: inherit; }
.c-Bestelling .agree a { color: inherit; }
.c-Bestelling .main > .error-box { margin-top: 16px; }

/* Product: de knop "Kies je leenperiode" is een link */
.c-Product a.cta { text-decoration: none; }
.c-Product .error-box[data-reserve-error] { margin-top: 12px; }

@media (max-width: 900px) {
  .c-Aanbod .toolbar { flex-wrap: wrap; }
  .c-Aanbod .search { flex: 1 1 100%; order: 3; }
}
