@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.dz-checkout-container {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.dz-checkout-container * {
    box-sizing: border-box;
}

.dz-checkout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.dz-checkout-container h3 {
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    text-align: center;
    font-weight: 700;
    font-size: 1.35rem;
    margin-top: 0;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dz-form-group {
    margin-bottom: 18px;
}

.dz-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.dz-form-group label span {
    color: #ef4444;
    margin-left: 2px;
}

.dz-checkout-container input[type="text"],
.dz-checkout-container input[type="tel"],
.dz-checkout-container input[type="number"],
.dz-checkout-container select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 46px;
}

.dz-checkout-container input:hover,
.dz-checkout-container select:hover {
    border-color: #d1d5db;
    background-color: #ffffff;
}

.dz-checkout-container input:focus,
.dz-checkout-container select:focus {
    border-color: #10b981;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
    outline: none;
}

.dz-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.dz-col-1 {
    flex: 1;
}

.dz-col-2 {
    flex: 2;
}

.dz-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.dz-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    opacity: 0;
}

.dz-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #059669, #047857);
}

.dz-submit-btn:hover::after {
    left: 125%;
    opacity: 1;
}

.dz-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.dz-submit-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.dz-form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: dzSlideIn 0.3s ease;
}

.dz-form-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.dz-form-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

@keyframes dzSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner CSS */
.dz-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: dzSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes dzSpin {
    to { transform: rotate(360deg); }
}

/* Pulse animation on button load */
.dz-pulse {
    animation: dzPulseBtn 2s infinite;
}

@keyframes dzPulseBtn {
    0% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
    70% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6); }
    100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
}

/* ==============================================================================
   CSS RÉSUMÉ DE COMMANDE (FRONTEND)
   ============================================================================== */
.dz-order-summary {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

.dz-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.925rem;
    color: #4b5563;
    margin-bottom: 10px;
}

.dz-summary-row:last-child {
    margin-bottom: 0;
}

.dz-summary-row span:last-child {
    font-weight: 600;
    color: #1f2937;
}

.dz-summary-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 14px 0;
}

.dz-total-row {
    font-size: 1.05rem;
    color: #111827;
}

.dz-total-row span:first-child {
    font-weight: 700;
}

.dz-total-row span:last-child {
    font-size: 1.25rem;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.05);
}

/* ==============================================================================
   CSS CONSOLE D'ADMINISTRATION (BACKEND WORDPRESS)
   ============================================================================== */
.dz-admin-wrap {
    font-family: 'Outfit', sans-serif;
    max-width: 950px;
    margin: 20px 20px 20px 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
}

.dz-admin-wrap * {
    box-sizing: border-box;
}

.dz-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.dz-admin-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dz-admin-title span.dz-logo-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dz-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dz-status-badge.default {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.dz-status-badge.custom {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.dz-admin-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 25px;
}

.dz-admin-section h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 15px;
}

.dz-admin-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.dz-import-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
}

.dz-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    height: 40px;
}

.dz-admin-btn-primary {
    background-color: #10b981;
    color: #ffffff !important;
}

.dz-admin-btn-primary:hover {
    background-color: #059669;
}

.dz-admin-btn-secondary {
    background-color: #ffffff;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.dz-admin-btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.dz-admin-btn-danger {
    background-color: #fef2f2;
    color: #b91c1c !important;
    border: 1px solid #fca5a5;
}

.dz-admin-btn-danger:hover {
    background-color: #fee2e2;
}

/* Tableau d'administration customisé */
.dz-fees-table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.dz-fees-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.dz-fees-table th {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e5e7eb;
    z-index: 10;
}

.dz-fees-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: middle;
}

.dz-fees-table tr:hover td {
    background-color: #f9fafb;
}

.dz-fees-table tr:last-child td {
    border-bottom: none;
}

/* Inputs additionnels pour la table */
.dz-admin-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: #374151;
    background-color: #f9fafb;
    box-sizing: border-box;
    transition: all 0.2s ease;
    height: 32px !important;
    margin: 0 !important;
}

.dz-admin-input:focus {
    border-color: #10b981 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
}

.dz-admin-text-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    color: #374151;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    height: 36px !important;
}

.dz-admin-text-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
}

.dz-delete-icon {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: inline-block;
    padding: 4px;
}

.dz-delete-icon:hover {
    opacity: 0.7;
}

/* ==============================================================================
   CSS BOUTON D'ACHAT FLOTTANT (STICKY BUY BUTTON)
   ============================================================================== */
.dz-floating-button-wrapper {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 0 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dz-floating-button-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

.dz-floating-button {
    pointer-events: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: dzFloatPulse 2s infinite;
}

.dz-floating-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
}

.dz-floating-button:active {
    transform: scale(0.95);
}

@keyframes dzFloatPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 10px 35px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
}
