/* Homepage filter section */
a {
    text-decoration: none;
}

/* ===== COMMON MENU STYLES ===== */
.ion-menu {
    padding: 1rem;
    background-color: #fafafa;
    color: #100F87;
    width: 250px;
    height: auto;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.ion-menu h5,
.ion-main-content h5,
.ion-main-content .section-price h4 {
    color: #100F87;
}

.ion-menu .fa,
.ion-menu .fas {
    font-weight: 400;
}
.ion-menu a {
    display: block;
    padding-bottom: 0.6rem;
    color: #100F87;
    border-radius: 8px;
}

/*.ion-menu a:hover {*/
/*    background-color: #334155;*/
/*    color: #fff;*/
/*}*/

/*.ion-menu a.ion-active {*/
/*    background-color: #475569;*/
/*    color: #fff;*/
/*    font-weight: bold;*/
/*}*/

.ion-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
}

.ion-submenu.ion-open {
    max-height: 500px; /* Enough to show all submenu items */
}

.ion-sidebar {
    display: none;
}
.ion-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .ion-checkbox-container {
        font-size: 1rem;
        gap: 8px;
    }

    input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
}
.ion-main-content {
    /*padding: 2rem;*/
}

/* ===== OFFCANVAS (MOBILE) ===== */
.ion-offcanvas {
    position: fixed;
    top:0;
    left: -250px;
    /*background-color: #1e293b;*/
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1000;
}

.ion-offcanvas.ion-show {
    left: 0;
    padding-top: 50px;
    z-index: 999;
}
.ion-offcanvas.ion-menu {
    border-radius: 0;
}
.ion-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
}

.ion-overlay.ion-show {
    display: block;
}

.ion-close-btn {
    background: none;
    border: none;
    font-size: 56px;
    color: #100F87;
    margin-bottom: 1rem;
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
    font-weight: 200;
}
/* ===== LARGE SCREENS ===== */
@media (min-width: 1024px) {
    .ion-sidebar {
        display: block;
        top: 0;
        left: 0;
        height: auto;
    }

    .ion-offcanvas,
    .ion-overlay,
    .ion-filter-btn {
        display: none !important;
    }

    .ion-main-content {
        margin-left: 20px;
        width: 100%;
    }
}

/* Utility */
.ion-filter-btn {
    margin-bottom: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #2B3F7C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}


.ion-arrow {
    float: right;
    transition: transform 0.3s ease;
}

.ion-submenu.ion-open ~ .ion-arrow,
.ion-has-submenu.open > a .ion-arrow {
    transform: rotate(180deg); /* ▼ becomes ▲ */
}
/* main content */
.ion-main-content .container {
    padding: 0;
}
.ion-main-content .best_plans {
    padding-bottom: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #100F87;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #FAFAFA;
    padding-left: 40px;
    padding-right: 40px;
}

@media only screen and (max-width: 480px) {
    .ion-main-content .best_plans {
        padding-left: 40px;
        padding-right: 10px;
    }
}
.ion-main-content .section-spec div {
    display: flex;
    flex-direction: column;
    text-align: center;
}
@media only screen and (max-width: 480px) {
    .ion-main-content .best_plans {
        padding-bottom: 0.5rem;
        padding-top:  0.5rem;
    }
}
.ion-main-content .best_plans:hover {
    background-color: #F7F7F8;
}
@media only screen and (max-width: 480px) {
    .ion-main-content .best_plans {
        flex-direction: column;
    }
    .ion-main-content .section-price {
        justify-content: space-between;
        margin-top: 0;
    }
    .ion-main-content .price-mo p {
        color:var(--gray-base);
        font-size: 12px;
    }
    .ion-main-content .price-mo h4 {
        font-size: 18px;
        color: #100F87;
        font-weight: bold;
    }
}
.ion-main-content .section-plan {
    align-items: center;
    padding-right: 25px;
}
@media (min-width: 320px) and (max-width:768px) {
    .ion-main-content .section-plan {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        padding-left: 0;
    }
}

@media (min-width: 768px) and (max-width:1024px) {
    .ion-main-content .section-price .btn {
        width: auto;
    }
}

@media only screen and (max-width: 1024px) {
    .ion-main-content .best_plans .logo {
        position: absolute;
        right: 20px;
    }
}


@media only screen and (min-width: 1025px) {
    .ion-main-content .best_plans .logo {
        display: flex;
        align-items: center;
    }
}
.ion-main-content .section-spec {
    display: flex;
    font-size: 14px;
}

@media only screen and (max-width: 480px) {
    .ion-main-content .section-spec {
        flex-direction: column;
    }
}
.ion-main-content .section-spec-contain {
    padding-left: 16px;
    display: flex;
}
@media only screen and (max-width: 480px) {
    .ion-main-content .section-spec-contain {
        padding-left: 16px;
        display: inline;
    }
}
@media (min-width: 320px) and (max-width:768px) {
    .ion-main-content .section-spec-contain {
        padding-left: 0;
        padding-top: 8px;
    }
}
.ion-main-content .section-spec div {
    padding-right: 25px;
}
@media only screen and (max-width: 480px) {
    .ion-main-content .section-spec div {
        padding-right: 4px;
        flex-direction: row;
        align-items: end;
    }
}

.ion-main-content .section-price {
    display: inline-flex;
    align-items: center;
}
.ion-main-content .price-mo {
    padding-right: 40px;
    text-align: center;
}
@media only screen and (max-width: 480px) {
    .ion-main-content .price-mo {
        padding-right:0;
        text-align:left;
    }
    .ion-main-content .price-mo p {

    }
}
@media (min-width: 768px) and (max-width:1024px) {
    .ion-main-content .price-mo {
        padding-right: 16px;
    }
    .ion-main-content .price-mo p {
        font-size: 14px;
    }
    .ion-main-content .price-mo h4 {
        font-size: 16px;
        line-height: 1;

    }
}
.ion-main-content .section-price h4 {
    margin-bottom: 0;
}
.ion-main-content .section-price .btn {
    width: 180px;
}
@media (min-width: 320px) and (max-width:1024px) {
    .ion-main-content .section-price .btn {
        width:72px;
    }
    .ion-main-content .section-price .btn.btn-unavailable {
        width:110px;
    }
}
.ion-main-content h2 {
    word-break: break-word;
}
@media (max-width: 1024px) {
    .ion-main-content h1, .ion-main-content h2 {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}
.ion-main-content h5 {
    margin-bottom: 0;
}
@media (max-width: 480px) {
    .ion-main-content h5 {
        margin-bottom: 0;
        word-break: break-word;
        padding-right: 5px;
    }
}
@media (max-width: 480px) {
    .ion-main-content .cloud .best_plans {
        padding-left: 0;
    }
}

.ion-main-content .plan {
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
}
@media (max-width: 480px) {
    .ion-main-content .plan {
        padding: 0.4rem 0.4rem 0 0;
    }
}

.ion-main-content .plan-list-item__label:before {
    align-items: center;
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .08);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 0 1px rgba(0, 0, 0, .08);
    display: flex;
    font-size: 10px;
    height: 26px;
    justify-content: center;
    left: -38px;
    line-height: 10px;
    position: absolute;
    text-align: center;
    top: 8px;
    transform: rotate(-45deg);
    white-space: pre-wrap;
    width: 120px;
    z-index: 1;
}
.ion-main-content .plan-list-item__label.highlight:before {
    background-color: #D92632;
    color: #fff;
    content: "SAVE 48%";
}
.ion-main-content .plan-list-item__label.activity:before {
    background-color: var(--text-primary-color);
    color: #fff;
    content: "40% OFF";
}
.ion-main-content .plan-list-item__label.promo:before {
    background-color: #ff9800;
    color: #fff;
    border-color: #ff9800;
    content: "ON SALE";
}
@media only screen and (max-width: 480px) {
    .ion-main-content .spec-cores span:first-child,
    .ion-main-content .spec-mem span:first-child,
    .ion-main-content .spec-storage span:first-child,
    .ion-main-content .spec-bw span:first-child {
        color: var(--text-body-color);
    }
}
.spec-bw {
    position: relative;
}
.spec-bw span.cn-bw {
    font-size: 12px;
    line-height: 1;
    position: absolute;
    bottom: 0;
    left: -14px;
}

@media only screen and (max-width: 480px) {
    .spec-bw span.cn-bw {
        font-size: 12px;
        line-height: 1;
        position: absolute;
        bottom: 0;
        right: -188px;
        top: 10px;
    }
}
.spec-bw.cn h5 {
    padding-left: 14px;
}
@media only screen and (max-width: 480px) {
    .spec-bw.cn h5 {
        padding-left: 0;
    }
}
/* Modal Overlay */
.ion-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal Box */
.ion-modal {
    background: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 90%;
    /*width: 400px;*/
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* Close Button */
.ion-modal .ion-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ion-flex-col {
    flex: 1 1 calc(25% - 20px);
    padding:2px 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    cursor: pointer;
    position: relative;
}

@media (max-width: 768px) {
    .ion-flex-col {
        flex: 1 1 100%;
    }

    /* RADIO */
    .radio-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .radio-option {
        position: relative;
        padding-left: 30px;
        cursor: pointer;
        font-size: 1rem;
        user-select: none;
    }

    .radio-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

    .radio-option span {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        height: 18px;
        width: 18px;
        background-color: #fff;
        border: 2px solid #007bff;
        border-radius: 50%;
    }

    .radio-option input:checked ~ span::after {
        content: "";
        position: absolute;
        top: 1px;
        left: 1px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #007bff;
    }
}
.radio-option input {
    top: 6px;
    position: absolute;
    right: 6px;
}
.ion-flex-col {
    margin-right: 10px;
}
.ion-flex-col .payment {
    font-weight: bold;
    color: #100F87;
    font-size: 1.3rem;
}
.ion-flex-col .saving{
    font-weight: bold;
}
label.ion-flex-col:hover {
    border:1px solid var(--badge-warning-color);
}
@media (max-width: 768px) {
    .ion-modal {
        width: 400px;
    }
    .session {
        padding-left: 20px;
    }
    .radio-option br {
        display: none;
    }
}