/* =============================================================
   WAM Frontend - Access Options on Product Page
   ============================================================= */

.wam-access-options {
    margin: 0 0 12px;
    clear: both;
    width: 100%;
    flex-basis: 100%;  /* break flex row so quantity stays with buttons */
}

.wam-access-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: currentColor;
}

/* Options list — horizontal wrap */
.wam-access-options-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual option item — compact pill */
.wam-access-option-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
    margin: 0;
    line-height: 1.4;
    user-select: none;
    white-space: nowrap;
}

.wam-access-option-item:hover {
    border-color: #96588a;
    background: #fdf8fc;
}

/* Selected state */
.wam-access-option-item.wam-selected,
.wam-access-option-item:has(input:checked) {
    border-color: #96588a;
    background: #fdf8fc;
}

/* Radio button */
.wam-access-option-item input[type="radio"] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: #96588a;
}

/* Option name + duration inline */
.wam-option-info {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.wam-option-name {
    font-size: 0.875em;
    font-weight: 600;
    color: currentColor;
}

.wam-option-duration {
    font-size: 0.775em;
    color: #767676;
    font-style: italic;
}

/* Description panel */
.wam-option-description {
    margin-top: 8px;
    padding: 7px 10px;
    background: #f8f8f8;
    border-left: 3px solid #96588a;
    border-radius: 0 4px 4px 0;
    font-size: 0.78em;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
    .wam-access-options-list {
        gap: 5px;
    }

    .wam-access-option-item {
        padding: 5px 10px;
    }
}
