/*
 * Ürün detay sayfası için ana sayfa mobil
 * footer ve canlı destek görünümü.
 *
 * HTML ortaktır; yalnız mobil görsel kapsam eklenir.
 */

@media (max-width: 720px) {

    body:has(.sr-product-page) .sr-footer {
        margin-top: 12px;
        background:
            radial-gradient(
                circle at 18% 0%,
                rgba(34, 197, 94, .10),
                transparent 35%
            ),
            rgba(2, 6, 23, .96);
    }

    body:has(.sr-product-page) .sr-footer-inner {
        width: calc(100% - 24px);
        padding: 18px 0 14px;
        display: grid;
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        align-items: start;
        gap: 14px 10px;
    }

    body:has(.sr-product-page) .sr-footer-brand {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns:
            auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom:
            1px solid
            rgba(148, 163, 184, .12);
    }

    body:has(.sr-product-page) .sr-footer-logo {
        margin: 0;
        gap: 8px;
        font-size: 17px;
        white-space: nowrap;
    }

    body:has(.sr-product-page) .sr-footer-mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 13px;
        box-shadow:
            0 0 22px
            rgba(34, 197, 94, .24);
    }

    body:has(.sr-product-page)
    .sr-footer-brand > p {
        margin: 0;
        overflow: hidden;
        color: #aeb7c5;
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body:has(.sr-product-page)
    .sr-footer-disclaimer {
        display: none;
    }

    body:has(.sr-product-page) .sr-footer-col {
        min-width: 0;
    }

    body:has(.sr-product-page) .sr-footer-col h3 {
        margin: 0 0 7px;
        color: #f8fafc;
        font-size: 12px;
        line-height: 1.2;
    }

    body:has(.sr-product-page) .sr-footer-col a {
        margin: 0 0 6px;
        overflow: hidden;
        color: #86efac;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:has(.sr-product-page) .sr-footer-bottom {
        width: calc(100% - 24px);
        min-height: 0;
        padding: 10px 0 13px;
        display: block;
        color: #7f8a9a;
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
    }

    body:has(.sr-product-page)
    .sr-footer-bottom span {
        display: block;
    }

    body:has(.sr-product-page)
    .sr-footer-bottom span:last-child {
        display: none;
    }

    /*
     * Ana sayfadaki kompakt sohbet düğmesi
     */

    body:has(.sr-product-page) .sr-live-chat {
        right: 12px !important;
        bottom: 12px !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 !important;
        display: grid !important;
        place-items: center !important;
        overflow: visible !important;
        border-radius: 17px !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button::before {
        width: 34px !important;
        height: 34px !important;
        border-radius: 11px !important;
        font-size: 13px !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button
    > span:not(.sr-live-dot) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button
    .sr-live-dot {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        width: 9px !important;
        height: 9px !important;
        border:
            2px solid
            rgba(2, 6, 23, .92) !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat[data-open="1"]
    .sr-live-chat-button {
        opacity: 0;
        pointer-events: none;
    }

    body:has(.sr-product-page)
    .sr-live-chat-panel {
        right: 0 !important;
        bottom: 0 !important;
        width:
            calc(100vw - 24px) !important;
        height:
            min(
                620px,
                calc(100vh - 86px)
            ) !important;
        max-height:
            calc(100vh - 86px) !important;
        border-radius: 20px !important;
    }
}

/*
 * Ana sayfadaki kompakt footer ikinci katmanı.
 */

@media (max-width: 760px) {

    body:has(.sr-product-page) .sr-footer {
        margin-top: 10px !important;
        padding-top: 16px !important;
        padding-bottom: 8px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-inner {
        width: calc(100% - 20px) !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body:has(.sr-product-page)
    .sr-footer-brand {
        display: grid !important;
        grid-template-columns:
            auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 9px !important;
        margin: 0 0 10px !important;
        padding: 0 0 10px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-mark {
        width: 43px !important;
        height: 43px !important;
        min-width: 43px !important;
        border-radius: 12px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-logo {
        width: auto !important;
        min-width: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }

    body:has(.sr-product-page)
    .sr-footer-brand strong {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.05 !important;
    }

    body:has(.sr-product-page)
    .sr-footer-brand p {
        display: -webkit-box !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #aeb7c6 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body:has(.sr-product-page)
    .sr-footer-col {
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.sr-product-page)
    .sr-footer-col h3 {
        margin: 0 0 6px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    body:has(.sr-product-page)
    .sr-footer-col a {
        display: block !important;
        margin: 0 0 4px !important;
        overflow: hidden !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body:has(.sr-product-page)
    .sr-footer-bottom {
        margin-top: 8px !important;
        padding: 8px 0 2px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
}

@media (max-width: 420px) {

    body:has(.sr-product-page) .sr-footer {
        padding-top: 13px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-inner {
        width: calc(100% - 16px) !important;
        gap: 12px 7px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-logo {
        font-size: 15px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-brand > p {
        font-size: 9px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-col h3 {
        font-size: 11px !important;
    }

    body:has(.sr-product-page)
    .sr-footer-col a {
        font-size: 9px !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button {
        width: 50px !important;
        min-width: 50px !important;
        height: 50px !important;
        min-height: 50px !important;
        border-radius: 16px !important;
    }

    body:has(.sr-product-page)
    .sr-live-chat-button::before {
        width: 31px !important;
        height: 31px !important;
        border-radius: 10px !important;
    }
}
