/* ==========================================================
   DR. PIZZA – SAJÁT CSS (LETISZTÍTOTT)
   ========================================================== */


/* ==========================================================
   1. BANNER CTA
   ========================================================== */

.slider-pro .sp-slide .dp-banner-cta {
    position: absolute !important;
    z-index: 30 !important;
    bottom: 13% !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    padding: 14px 25px;

    background: #5f8500;
    color: #ffffff !important;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.15px;

    text-decoration: none !important;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;

    box-shadow:
        0 5px 16px rgba(45, 70, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transform: translateX(-50%) !important;

    transition:
        background-color .22s ease,
        transform .22s ease,
        box-shadow .22s ease !important;
}

.slider-pro .sp-slide .dp-banner-cta.dp-cta-left {
    left: 23.6% !important;
}

.slider-pro .sp-slide .dp-banner-cta.dp-cta-right {
    left: 76.4% !important;
}

.slider-pro .sp-slide .dp-banner-cta:hover {
    background: #76a500;
    color: #ffffff !important;

    transform:
        translateX(-50%)
        translateY(-2px) !important;

    box-shadow:
        0 8px 22px rgba(45, 70, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {

    .slider-pro .sp-slide .dp-banner-cta {
        bottom: 8% !important;
        padding: 7px 11px !important;

        font-size: 11px !important;
        font-weight: 700;
        line-height: 1.1 !important;

        border-radius: 5px;
        box-shadow: 0 3px 9px rgba(0, 0, 0, 0.20);
    }

    .slider-pro .sp-slide .dp-banner-cta.dp-cta-left {
        left: 21% !important;
    }

    .slider-pro .sp-slide .dp-banner-cta.dp-cta-right {
        left: 79% !important;
    }

    .slider-pro .sp-slide .dp-banner-cta:hover {
        transform:
            translateX(-50%)
            translateY(-1px) !important;
    }
}

/* ==========================================================
   2. FORGÓ PIZZA / FATÁNYÉR
   ========================================================== */

.slider-pro .sp-slide .dp-rotating-pizza {
    position: absolute !important;
    z-index: 10 !important;

    display: block !important;

    width: 25% !important;
    aspect-ratio: 1 / 1;

    right: 6% !important;
    top: 50% !important;

    background-image: url("https://www.drpizza.eu/shop_ordered/15369/pic/forgotanyer-mini-webp.webp") !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;

    pointer-events: none;

    transform-origin: center center !important;

    animation: dpPizzaRotate 20s linear infinite !important;
    will-change: transform;
}

@keyframes dpPizzaRotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }

    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 767px) {
    .slider-pro .sp-slide .dp-rotating-pizza {
        width: 24% !important;
        right: 6% !important;
        top: 50% !important;
    }
}


/* ==========================================================
   FORGÓ PIZZA – MOBIL
   ========================================================== */

@media (max-width: 767px) {
    .slider-pro .sp-slide .dp-rotating-pizza {
        width: 24% !important;
        right: 6% !important;
        top: 50% !important;

        background-image: url("https://www.drpizza.eu/shop_ordered/15369/pic/forgotanyer-mini-webp.webp") !important;

        animation: dpPizzaRotate 20s linear infinite !important;
    }
}
/* ==========================================================
   3. FEJLÉC USP + ÜGYFÉLSZOLGÁLAT
   ========================================================== */

.dp-header-banner-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* USP sáv */

.dp-top-usp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 7px 12px;

    background: #5f8500;
    color: #ffffff !important;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;

    border-radius: 6px;
    box-sizing: border-box;
}

.dp-top-usp span {
    color: #ffffff !important;
    white-space: nowrap;
}

.dp-top-usp span:not(:last-child)::after {
    content: "•";
    margin-left: 12px;
    opacity: 0.65;
}


/* Ügyfélszolgálati sor */

.dp-header-help {
    font-size: 13px;
    line-height: 1.4;
    color: #333333;
}

.dp-header-help a {
    color: #8db600;
    font-weight: 600;
    text-decoration: none;
}

.dp-header-help a:hover {
    text-decoration: underline;
}

/* ==========================================================
   4. MOBIL FEJLÉC USP + KONTAKT
   ========================================================== */

@media (max-width: 767px) {

    #header_content {
        height: 173px !important;
        position: relative !important;
    }

    #header_banner {
        display: block !important;

        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;

        width: 100% !important;
        height: 53px !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #header_banner .dp-header-banner-content {
        width: 100% !important;

        gap: 3px;

        margin: 0 !important;
        padding: 0 !important;
    }

    #header_banner .dp-top-usp {
        width: 100% !important;

        gap: 6px;

        margin: 0 !important;
        padding: 6px 5px;

        border-radius: 0;

        font-size: 10px;
        line-height: 1.15;

        white-space: nowrap;
    }

    #header_banner .dp-top-usp span:not(:last-child)::after {
        margin-left: 6px;
        opacity: 0.7;
    }

    #header_banner .dp-header-help {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 5px 6px 6px;

        text-align: center;

        font-size: 10px;
        line-height: 1.2;

        box-sizing: border-box;
    }

    #header_banner .dp-header-help a {
        font-weight: 700;
        white-space: nowrap;
    }

    #header_banner .dp-header-help span {
        font-size: 9px;
        white-space: nowrap;
    }
}


/* ==========================================================
   5. STICKY FEJLÉC – DESKTOP + MOBIL
   ========================================================== */

#header_bottom_wrap {
    position: relative;
}

#dp-sticky-tools {
    display: none;
}

#header_bottom.header_fixed #dp-sticky-tools {
    display: block;

    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    height: 50px;

    pointer-events: none;
    z-index: 5;
}

#dp-sticky-tools a {
    pointer-events: auto;
}


/* ----------------------------------------------------------
   KÖZÖS – LOGÓ
   ---------------------------------------------------------- */

#dp-sticky-tools .dp-sticky-logo {
    position: absolute;
    top: 0;

    height: 50px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    z-index: 6;
}

#dp-sticky-tools .dp-sticky-logo img {
    display: block;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* ----------------------------------------------------------
   KÖZÖS – TELEFON
   ---------------------------------------------------------- */

#dp-sticky-tools .dp-sticky-phone {
    position: absolute;
    top: 0;

    height: 50px;

    display: flex;
    align-items: center;

    color: #5f8500 !important;

    text-decoration: none !important;

    z-index: 6;
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width: 768px) {

    #header_bottom.header_fixed #mainmenu {
        box-sizing: border-box;
        padding-left: 90px !important;
        padding-right: 155px !important;
    }


    /* Logó */

    #dp-sticky-tools .dp-sticky-logo {
        left: 10px;
        width: 72px;
    }

    #dp-sticky-tools .dp-sticky-logo img {
        max-width: 72px;
        max-height: 34px;
    }


    /* Telefonszám */

    #dp-sticky-tools .dp-sticky-phone {
        right: 12px;

        font-size: 13px;
        font-weight: 700;
        line-height: 1;

        white-space: nowrap;
    }

    #dp-sticky-tools .dp-sticky-phone:hover {
        color: #486600 !important;
    }
}


/* ==========================================================
   MOBIL
   ========================================================== */

@media (max-width: 767px) {

    #header_bottom.header_fixed #mobile_mainmenu {
        position: relative;
        z-index: 2;
    }


    /* Logó */

    #dp-sticky-tools .dp-sticky-logo {
        left: 8px;
        width: 52px;
    }

    #dp-sticky-tools .dp-sticky-logo img {
        max-width: 50px;
        max-height: 30px;
    }


    /* Telefonikon */

    #dp-sticky-tools .dp-sticky-phone {
        right: 10px;

        width: 34px;

        justify-content: center;

        background: transparent !important;

        border-radius: 0;

        font-size: 0;
    }

    #dp-sticky-tools .dp-sticky-phone::before {
        content: "";

        width: 18px;
        height: 18px;

        display: block;

        background-color: #5f8500;

        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V20a1 1 0 01-1 1C10.61 21 3 13.39 3 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.02l-2.2 2.19z'/%3E%3C/svg%3E") center / contain no-repeat;

        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V20a1 1 0 01-1 1C10.61 21 3 13.39 3 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.02l-2.2 2.19z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    #dp-sticky-tools .dp-sticky-phone:active::before {
        background-color: #486600;
    }
}


/* ==========================================================
   6. MOBIL TELJESÍTMÉNY-OPTIMALIZÁLÁS
   ========================================================== */

@media (max-width: 767px) {

    /* Slider Pro – felesleges átmenet kikapcsolása */
    .slider-pro .sp-mask {
        transition: none !important;
        -webkit-transition: none !important;
    }

    /* Mennyiség +/- gombok – felesleges átmenetek kikapcsolása */
    .qtyminus,
    .qtyplus {
        transition: none !important;
        -webkit-transition: none !important;
    }

    /* Képernyő alatt lévő blokkok késleltetett renderelése */
    #newsletter {
        content-visibility: auto;
        contain-intrinsic-size: auto 343px;
    }

    #provider,
    #partners {
        content-visibility: auto;
        contain-intrinsic-size: auto 80px;
    }
}