/* Rental length buttons above the product pricing panels (appearance/assets/layouts/rental-lengths.js). */
.io-rental-lengths {
    clear: both;
    margin: 0.75rem 0 1rem;
    max-width: 100%;
}

.io-rental-lengths-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.6rem;
}

.io-rental-lengths-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.io-rental-length {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    color: #111827;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 0.15rem;
    line-height: 1.25;
    margin: 0;
    min-height: 64px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.io-rental-length strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.io-rental-length-price {
    color: var(--e-global-color-accent, #398900);
    font-size: 1rem;
    font-weight: 700;
}

.io-rental-length small {
    color: #6b7280;
    font-size: 0.75rem;
}

.io-rental-length:hover {
    border-color: #9ca3af;
}

.io-rental-length:focus-visible {
    outline: 2px solid var(--e-global-color-accent, #398900);
    outline-offset: 2px;
}

.io-rental-length.is-selected {
    border-color: var(--e-global-color-accent, #398900);
    box-shadow: 0 0 0 3px rgba(57, 137, 0, 0.16);
}

.io-rental-length.is-unavailable {
    color: #6b7280;
}

.io-rental-length.is-unavailable .io-rental-length-price {
    color: #b91c1c;
    font-weight: 600;
}

.io-rental-lengths-more {
    align-self: center;
    background: transparent;
    border: 0;
    color: var(--e-global-color-accent, #398900);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    min-height: 44px;
    padding: 0.5rem;
    text-decoration: underline;
}

.io-rental-lengths-note {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0.6rem 0 0;
}

@media (max-width: 600px) {
    .io-rental-lengths-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .io-rental-length {
        min-height: 56px;
        padding: 0.55rem 0.6rem;
    }
}
