.cw-presets { display: flex; flex-wrap: wrap; gap: .5rem; }
.cw-presets[hidden] { display: none; }
.cw-js .cw-check { display: none; }

.cw-card { position: relative; height: 100%; display: flex; flex-direction: column; text-align: center; }
.cw-popular { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 3; }
.cw-photo {
    display: flex; align-items: flex-end; justify-content: center;
    height: 150px; padding: 12px; border-radius: 8px; cursor: pointer;
    background-size: cover; background-position: center;
    border: 3px solid transparent; position: relative; z-index: 2;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1); transition: transform .2s, box-shadow .2s;
}
.cw-photo:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, .2); }
.cw-card input:checked + .cw-photo { border-color: #007bff; box-shadow: 0 8px 16px rgba(0, 0, 0, .3); }
.cw-card input:focus-visible + .cw-photo { outline: 3px solid #80bdff; outline-offset: 2px; }
.cw-name { color: #fff; font-size: 1.1rem; font-weight: 600; text-shadow: 1px 1px 4px rgba(0, 0, 0, .8); }
.cw-card.is-full .cw-photo { filter: grayscale(.9); }
.cw-info {
    flex: 1; background: #f8f9fa; border-radius: 0 0 8px 8px;
    margin-top: -8px; padding: 18px 8px 10px;
}
.cw-price { font-size: 1.4rem; font-weight: 700; margin-top: .25rem; }

.cw-policy { background: #f8f9fa; border-radius: 8px; padding: .75rem 1rem; }
.cw-policy-strict { background: #fff3cd; }

#cw-options.is-loading { opacity: .6; }
.flatpickr-input[readonly] { background-color: #fff; }

@media (max-width: 575.98px) {
    .cw-photo { height: 120px; }
}

/* Keeps the name readable on bright photos. */
.cw-photo::before {
    content: ""; position: absolute; inset: 0; border-radius: 5px;
    background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 60%);
}
.cw-name { position: relative; }

/* Phones: photo beside the details, so all three desks fit with little scrolling. */
@media (max-width: 575.98px) {
    .cw-card { flex-direction: row; }
    .cw-photo { flex: 0 0 44%; height: auto; min-height: 130px; }
    .cw-photo:hover { transform: none; }
    .cw-info { margin: 0 0 0 -8px; padding: 14px 8px 10px 16px; border-radius: 0 8px 8px 0; }
    .cw-popular { left: 22%; }
}
