.billing-cycle-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.billing-cycle-box input[type="radio"] {
    display: none;
}

.billing-cycle-box.active,
.billing-cycle-box:has(input:checked) {
    background: #2f6df6;
    color: #ffffff;
    border-color: #1444aa;
}

.billing-cycle-box:hover {
    border-color: #9cbafa;
}

.cycle-name {
    display: block;
    font-size: 15px;
}

.billing-cycle-box {
    position: relative;
    padding: 14px 10px;
    border: 1px solid #1444aa;
    border-radius: 7px;
    background: #f5f5f5;
    color: #000;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.2s ease;
    min-width: 110px;
    text-align: center;
}

/* Wrapper */
.qty-slider-wrapper {
    padding: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
}

/* Full line */
.irs-line {
    height: 6px !important;
    background: #dfe7ff !important;
    border: none !important;
    border-radius: 30px !important;
    top: 25px !important;
}

/* Active blue line */
.irs-bar {
    height: 6px !important;
    background: #2f6df6 !important;
    border: none !important;
    top: 25px !important;
}

/* Left edge */
.irs-bar-edge {
    height: 6px !important;
    background: #2f6df6 !important;
    border: none !important;
    top: 25px !important;
}

/* Circle handle */
.irs-slider {
    width: 22px !important;
    height: 22px !important;
    top: 17px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 4px solid #2f6df6 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

/* Remove old icon */
.irs-slider:before {
    display: none !important;
}

/* Hide top popup */
.irs-single,
.irs-from,
.irs-to {
    display: none !important;
}

/* Min/max labels */
.irs-min,
.irs-max {
    background: transparent !important;
    color: #666 !important;
    font-size: 13px !important;
    top: 5px !important;
}

/* Grid labels */
.irs-grid-text {
    font-size: 13px !important;
    color: #666 !important;
}

/* Grid lines */
.irs-grid-pol {
    background: #ccc !important;
}

.irs-slider.single {
    width: 34px !important;
    height: 34px !important;
    top: 11px !important;
    border-radius: 50% !important;
    background: #2f6df6 !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700;
}

.irs-slider.single:before {
    display: none !important;
}

.slider-count {
    line-height: 1;
}


.option-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.config-option-box {
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.config-option-box:hover {
    border-color: #2f6df6;
}

.config-option-box.active {
    background: #2f6df6;
    border-color: #2f6df6;
    color: #fff;
}

.config-option-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Main wrapper */
.os-selector-wrapper {
    margin-top: 15px;
}

/* Top category tabs */
.os-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

/* Category button */
.os-category {
    padding: 12px 22px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    user-select: none;
}

/* Active category */
.os-category.active {
    background: #2f6df6;
    border-color: #2f6df6;
    color: #fff;
}

/* Hover */
.os-category:hover {
    border-color: #2f6df6;
}

/* Options area */
.os-options-group {
    display: none;
    flex-wrap: wrap;
    gap: 14px;
}

/* Active options group */
.os-options-group.active {
    display: flex;
}

/* Individual option cards */
.config-option-box {
    min-width: 220px;
    padding: 18px 20px;
    border: 1px solid #e3e3e3;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Hover */
.config-option-box:hover {
    border-color: #2f6df6;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Active selected card */
.config-option-box.active {
    background: #f4f8ff;
    border-color: #2f6df6;
    color: #2f6df6;
    box-shadow: 0 4px 16px rgba(47,109,246,0.15);
}

/* Active checkmark */
.config-option-box.active:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 12px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #2f6df6;
    color: #fff;

    font-size: 12px;
    font-weight: bold;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 767px) {

    .config-option-box {
        min-width: 100%;
    }

    .os-category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
}


#osOptionsPopup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

#osOptionsPopup.active {
    display: block;
}

.os-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.os-popup-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    z-index: 2;
    max-height: 80vh;
    overflow-y: auto;
}

.os-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.os-popup-header span {
    font-size: 20px;
    font-weight: 700;
}

.os-popup-close {
    border: none;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

/* Popup option layout */
.os-popup-group {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
}

.os-popup-group.active {
    display: flex;
}


.os-options-group {
    display: none;
    margin-top: 18px;
}

.os-options-group.active {
    display: block;
}

.os-sub-select {
    max-width: 450px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: none;
    font-size: 14px;
    padding: 0 14px;
}

.os-sub-select:focus {
    border-color: #2f6df6;
    box-shadow: 0 0 0 3px rgba(47,109,246,0.12);
}


#osOptionsPopup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

#osOptionsPopup.active {
    display: block;
}

.os-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.os-popup-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    margin: 100px auto;
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    z-index: 2;
}

.os-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.os-popup-close {
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.os-sub-select {
    height: 48px;
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: none;
}

.os-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.os-category {
    display: flex;
    align-items: center;
    gap: 10px;
}

.os-category-image {
    width: 26px;
    height: 26px;
    object-fit: contain;
}