/* Widget Bouton Ajout Devis */
.dp-btn-add-estimate-wrapper {
    display: block;
}

.dp-btn-add-estimate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background-color: #0073aa;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    box-sizing: border-box;
}



.dp-btn-add-estimate:active {
    transform: translateY(0);
}

.dp-btn-add-estimate.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Icône */
.dp-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dp-btn-icon i,
.dp-btn-icon svg {
    width: 1em;
    height: 1em;
}

/* Texte du bouton */
.dp-btn-text {
    display: inline-block;
}

.dp-btn-add-estimate.is-loading .dp-btn-text {
    opacity: 0.5;
}

.dp-btn-add-estimate.is-loading .dp-btn-icon {
    opacity: 0.5;
}

/* Spinner */
.dp-btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: dp-spin 0.6s linear infinite;
}

.dp-btn-add-estimate.is-loading .dp-btn-spinner {
    display: inline-block;
}

@keyframes dp-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Alignement justify */
.dp-btn-add-estimate-wrapper[style*="text-align: justify"] .dp-btn-add-estimate {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .dp-btn-add-estimate {
        padding: 10px 20px;
        font-size: 14px;
    }
}
