/* زرار الرجوع لأعلى + دايرة تقدم السكرول - ثابت أسفل يمين الشاشة
   الحقول اللي فيها !important + سكوب بالـ ID هدفها إنها تكسر أي ستايل عام
   جاي من الثيم أو Elementor بيأثر على button/svg/path (زي مربع/بوردر أحمر
   أو أيقونة مختفية) - نفس المشكلة اللي حصلت قبل كده مع زرار فورم التواصل. */

#chf-back-to-top,
#chf-back-to-top * {
    box-sizing: border-box !important;
}

#chf-back-to-top.chf-btt {
    position: fixed !important;
    right: 26px;
    bottom: 26px;
    z-index: 9999;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#chf-back-to-top.chf-btt.chf-btt--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#chf-back-to-top .chf-btt__button {
    position: relative;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    border-radius: 50% !important;
    background: var(--chf-btt-bg, #222168) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 24px rgba(34, 33, 104, 0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

#chf-back-to-top .chf-btt__button::before,
#chf-back-to-top .chf-btt__button::after {
    content: none !important;
    display: none !important;
}

#chf-back-to-top .chf-btt__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(34, 33, 104, 0.35) !important;
}

#chf-back-to-top .chf-btt__button:focus-visible {
    outline: 2px solid var(--chf-btt-progress, #6bbdcd) !important;
    outline-offset: 3px;
}

#chf-back-to-top .chf-btt__ring {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg);
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
}

#chf-back-to-top .chf-btt__ring-track {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.28) !important;
    stroke-width: 3;
}

#chf-back-to-top .chf-btt__ring-progress {
    fill: none !important;
    stroke: var(--chf-btt-progress, #6bbdcd) !important;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 131.9469 131.9469;
    stroke-dashoffset: 131.9469;
    transition: stroke-dashoffset 0.1s linear;
}

/* الأيقونة (السهم) نفسها SVG - كبرناها وخلينا خطها أغلظ عشان تبان واضحة وبولد */
#chf-back-to-top .chf-btt__icon {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    color: #fff !important;
    pointer-events: none;
    border: none !important;
    background: none !important;
}

#chf-back-to-top .chf-btt__icon path {
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 3.2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

@media (max-width: 600px) {
    #chf-back-to-top.chf-btt {
        right: 16px;
        bottom: 16px;
    }

    #chf-back-to-top .chf-btt__button {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }

    #chf-back-to-top .chf-btt__icon {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
    }
}