/* ==========================================================================
   Chevaliers Static Button Widget Styles
   ========================================================================== */

/* Base Wrapper & Link */
.chevaliers-static-button-wrapper {
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Alignment when static */
.elementor-btn-align-justify .chevaliers-static-button-wrapper {
    text-align: initial;
}
.elementor-btn-align-justify .chevaliers-static-button {
    display: flex;
    width: 100%;
}

.chevaliers-static-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    background-color: #0073aa;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 600;
}

.chevaliers-static-button:hover,
.chevaliers-static-button:focus {
    text-decoration: none;
    opacity: 0.9;
}

.chevaliers-static-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chevaliers-static-button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* ==========================================================================
   DESKTOP PLACEMENT (screen width >= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    .elementor-placement-static .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    .elementor-placement-left .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-right .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-bottom .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-bottom-left .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-bottom-right .chevaliers-static-button-wrapper,
    .elementor-placement-desktop-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
}

/* ==========================================================================
   TABLET PLACEMENT (768px <= screen width <= 991px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    .elementor-placement-tablet-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    .elementor-placement-tablet-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-tablet-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-tablet-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-tablet-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-tablet-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }

    /* Fallback if no tablet setting is set (inherits desktop) */
    :not([class*="elementor-placement-tablet-"]).elementor-placement-static .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    :not([class*="elementor-placement-tablet-"]).elementor-placement-left .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-tablet-"]).elementor-placement-right .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-tablet-"]).elementor-placement-bottom .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-tablet-"]).elementor-placement-bottom-left .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        left: var(--btn-offset-x, 20px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-tablet-"]).elementor-placement-bottom-right .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 20px) !important;
        right: var(--btn-offset-x, 20px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
}

/* ==========================================================================
   MOBILE PLACEMENT (screen width <= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .elementor-placement-mobile-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    .elementor-placement-mobile-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-mobile-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-mobile-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-mobile-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    .elementor-placement-mobile-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }

    /* Fallback if mobile is not set, but tablet IS set */
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]).elementor-placement-tablet-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }

    /* Fallback if neither mobile nor tablet is set (inherits desktop) */
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-static .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-static .chevaliers-static-button-wrapper {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
    }
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-left .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-right .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-bottom .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-bottom-left .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom-left .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        left: var(--btn-offset-x, 15px) !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-bottom-right .chevaliers-static-button-wrapper,
    :not([class*="elementor-placement-mobile-"]):not([class*="elementor-placement-tablet-"]).elementor-placement-desktop-bottom-right .chevaliers-static-button-wrapper {
        position: fixed !important;
        bottom: var(--btn-offset-y, 15px) !important;
        right: var(--btn-offset-x, 15px) !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        z-index: var(--btn-z-index, 9999) !important;
        width: auto !important;
    }
}
