/* SarisanDijital V48
   Mobil paket seçiminde tek aktif paket ve görünür sabit satın alma çubuğu. */

/* Aynı anda birden fazla kartın eski görsel durumlarıyla seçili görünmesini engeller. */
body.page-category .pack--list .pack:not(.selected)::before,
body.page-category .pack--list .pack:not(.selected)::after {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    /* Sabit çubuk paketleri kapatmasın. */
    body.page-category {
        padding-bottom: 118px !important;
    }

    body.page-category .service--area.category-service-v43,
    body.page-category .service--area.category-service-v43.active,
    body.page-category .service--base.service--bases,
    body.page-category .service--content {
        overflow: visible !important;
    }

    body.page-category .service--base.service--bases {
        padding-bottom: 30px !important;
    }

    /* V47'de normal akışa alınan alanı tekrar görünür ve sabit hale getir. */
    body.page-category .service--content .service--bottom,
    body.page-category .service--content .service--bottom.active-bar {
        position: fixed !important;
        inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px !important;
        z-index: 1200 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(124px, 38%) !important;
        width: auto !important;
        max-width: 720px !important;
        min-width: 0 !important;
        min-height: 72px !important;
        margin: 0 auto !important;
        padding: 9px !important;
        gap: 9px !important;
        align-items: center !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border: 1px solid rgba(13, 23, 51, .12) !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, .97) !important;
        box-shadow: 0 18px 48px rgba(22, 31, 68, .20) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    body.page-category .service--content .selected--pack {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        align-items: center !important;
        gap: 9px !important;
        overflow: hidden !important;
    }

    body.page-category .service--content .selected--pack .icon {
        display: grid !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        place-items: center !important;
        border-radius: 13px !important;
        color: var(--main-color) !important;
        background: color-mix(in srgb, var(--main-color) 10%, #fff) !important;
        font-size: 18px !important;
    }

    body.page-category .service--content .selected--pack .text {
        display: flex !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 3px !important;
        overflow: hidden !important;
        line-height: 1.15 !important;
    }

    body.page-category .service--content .selected--pack .text > span:first-child {
        display: flex !important;
        max-width: 100% !important;
        align-items: baseline !important;
        gap: 4px !important;
        color: #0d1733 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.page-category .service--content .selected--pack [data-selected_price] {
        display: inline-flex !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        color: var(--main-color) !important;
        background: transparent !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }

    body.page-category .service--content .pack--action {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        align-items: center !important;
    }

    body.page-category .service--content .pack--action .pack--butto,
    body.page-category .service--content .active-bar .pack--butto {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 15px !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        border-radius: 15px !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        box-shadow: 0 12px 26px color-mix(in srgb, var(--main-color) 25%, transparent) !important;
    }

    body.page-category .service--content .pack--action .pack--butto i {
        flex: 0 0 auto !important;
        font-size: 18px !important;
    }
}

@media (max-width: 430px) {
    body.page-category {
        padding-bottom: 112px !important;
    }

    body.page-category .service--content .service--bottom,
    body.page-category .service--content .service--bottom.active-bar {
        inset-inline: 9px !important;
        grid-template-columns: minmax(0, 1fr) 116px !important;
        min-height: 68px !important;
        padding: 8px !important;
        gap: 7px !important;
        border-radius: 18px !important;
    }

    body.page-category .service--content .selected--pack .icon {
        display: none !important;
    }

    body.page-category .service--content .selected--pack .text > span:first-child {
        font-size: 12px !important;
    }

    body.page-category .service--content .selected--pack [data-selected_price] {
        font-size: 14px !important;
    }

    body.page-category .service--content .pack--action .pack--butto,
    body.page-category .service--content .active-bar .pack--butto {
        height: 48px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
    }
}
