/* Advent calendar town (/gifts/advent/): on top of the shared maker look (/gifts/globes/maker.css). */

.av [hidden] { display: none !important; }
.av .wm-seg button { padding: 6px 8px; white-space: normal; line-height: 1.25; }
.av-chips, .av-mono { margin-top: 10px; }
.av-chips .wm-chip, .av-mono .wm-chip { font-size: 0.76rem; padding: 5px 10px; }
.av-mono .wm-chip i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.av-ord, .av-theme { margin-top: 8px; }
.av-h3 { font-size: 0.84rem; margin: 16px 0 8px; color: var(--ink); font-weight: 600; }

/* the map: the window, its handle, the day numbers */
.av .av-mapwrap { max-width: none; position: relative; margin-top: 10px; }
.av .av-map { aspect-ratio: 1; }
.av-map.av-picking .maplibregl-canvas { cursor: crosshair; }
.av-handle {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #d4a537; cursor: grab; padding: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); display: grid; place-items: center; color: #1d2320; font-size: 15px;
}
.av-handle:active { cursor: grabbing; }
.av-num {
    min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; background: rgba(20, 23, 22, 0.86); color: #fff;
    font: 700 11px/18px "Schibsted Grotesk", system-ui, sans-serif; text-align: center; pointer-events: none;
    box-shadow: 0 0 0 1.5px #fff;
}
.av-num.av-home { background: #d4a537; color: #1d2320; }
.av-pickbar {
    position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px;
    background: rgba(20, 23, 22, 0.88); color: var(--ink); font: inherit; font-size: 0.8rem; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}

/* the days */
.av-btns { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.av-btns .wm-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold); }
.av-days {
    list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
    max-height: 340px; overflow-y: auto; font-size: 0.8rem;
}
.av-days li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.av-days b {
    flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.av-days span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.av-x { flex: none; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.av-x:hover, .av-x:focus-visible { color: var(--ink); background: var(--field); }
#avHomeRow { margin-top: 10px; display: grid; gap: 8px; justify-items: start; }
#avHomeRow .wm-field { width: 100%; }
#avHomeDay { width: 100%; background: var(--field); color: var(--ink); border: 0; border-radius: 8px; padding: 8px; font: inherit; }

/* the filaments in use */
.av-swatches { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 0.78rem; color: var(--muted); }
.av-swatches li { display: flex; align-items: center; gap: 6px; }
.av-swatches i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }

.av-dl { flex-wrap: wrap; }
.av-warn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-warn:empty { display: none; }
.av-warn li { font-size: 0.78rem; line-height: 1.4; color: #f3d38a; background: rgba(217, 177, 74, 0.1); border-radius: 8px; padding: 7px 9px; }

@media (max-width: 560px) {
    .av .wm-stagebar .wm-btn span { display: none; }
    .av-days { grid-template-columns: 1fr; }
}
