/* wpbakery-elements/rdv-button/css/rdv-button.css */

/* Positions flottantes */
.floating-rdv-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.floating-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-top-right {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
}

.floating-top-left {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 999;
}

.floating-middle-right {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 999;
}

.floating-middle-right .rdv-btn-orange {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 25px 12px;
    border-radius: 0;
    transform: rotate(180deg);
}

.rdv-btn-orange {
    padding: 15px 25px;
    background-color: var(--btn-color, #FF8C00);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rdv-btn-orange span {
    display: flex;
    transition: transform 0.3s ease;
}

.rdv-btn-orange:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rdv-btn-orange:hover span {
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.floating-middle-right .rdv-btn-orange i {
    margin-right: 0;
    margin-bottom: 8px;
    display: block;
    transform: scaleX(-1) rotate(-90deg);
}

/* Modale */
.rdv-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.rdv-modal-overlay.active {
    display: block;
}

.rdv-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    font-family: 'Open Sans';
    ;
}

.rdv-modal.active {
    display: block;
}

.rdv-modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.rdv-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdv-modal-close:hover {
    color: #333;
}

.rdv-modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

.rdv-modal-text {
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.rdv-modal-checkboxes {
    margin-bottom: 30px;
}

.rdv-checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rdv-checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--btn-color, #FF8C00);
}

.rdv-checkbox-group label {
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.rdv-checkbox-group label a {
    color: var(--btn-color, #FF8C00);
    text-decoration: none;
    font-weight: 500;
}

.rdv-checkbox-group label a:hover {
    text-decoration: underline;
}

.rdv-btn-confirm {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--btn-color, #FF8C00);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rdv-btn-confirm:hover:not(:disabled) {
    opacity: 0.9;
}

.rdv-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-rdv-btn {
        bottom: 20px;
        right: 20px;
    }

    .rdv-btn-orange {
        padding: 12px 20px;
        font-size: 14px;
    }

    .rdv-modal {
        width: 85%;
    }

    .rdv-modal-content {
        padding: 30px 20px;
    }
}