/* Structural only: choice buttons inherit the active theme's .button style. */
.toprest-pack-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    gap: 0.75rem;
    margin-block: 0.5rem 1rem;
}

.toprest-pack-choice {
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.toprest-pack-choice.is-disabled,
.toprest-pack-choice:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toprest-pack-select-enhanced {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.toprest-quantity-label {
    display: block;
    margin-block: 0.75rem 0.4rem;
}

@media (max-width: 37.5rem) {
    .toprest-pack-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
