/**
 * Module pqtherapeutenew - Styles CSS Checkout
 * Pour le formulaire de code thérapeute dans le tunnel de commande
 */

/* ============================================
   CODE THÉRAPEUTE - CHECKOUT
   ============================================ */

.therapeute-code-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.therapeute-code-form h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.therapeute-code-form h4 i {
    color: #28a745;
    font-size: 20px;
}

.therapeute-code-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.therapeute-code-input-wrapper input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.therapeute-code-input-wrapper input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.therapeute-code-input-wrapper input::placeholder {
    color: #adb5bd;
    text-transform: none;
    letter-spacing: normal;
}

.therapeute-code-input-wrapper button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.therapeute-code-input-wrapper button:hover {
    background: #218838;
}

.therapeute-code-input-wrapper button:active {
    transform: scale(0.98);
}

.therapeute-code-input-wrapper button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Messages */
.therapeute-message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.therapeute-message i {
    font-size: 18px;
}

.therapeute-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.therapeute-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.therapeute-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Code appliqué */
.therapeute-code-applied {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.therapeute-code-applied .applied-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.therapeute-code-applied .applied-code {
    display: flex;
    align-items: center;
    gap: 10px;
}

.therapeute-code-applied .applied-code i {
    color: #28a745;
    font-size: 24px;
}

.therapeute-code-applied .applied-code strong {
    font-family: monospace;
    font-size: 18px;
    color: #155724;
    letter-spacing: 1px;
}

.therapeute-code-applied .applied-discount {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.therapeute-code-applied .remove-code {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 13px;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.therapeute-code-applied .remove-code:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Message invité */
.therapeute-guest-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.therapeute-guest-message i {
    color: #856404;
    font-size: 24px;
}

.therapeute-guest-message a {
    color: #0056b3;
    font-weight: 600;
}

/* Spinner loading */
.therapeute-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .therapeute-code-input-wrapper {
        flex-direction: column;
    }
    
    .therapeute-code-input-wrapper button {
        width: 100%;
    }
    
    .therapeute-code-applied .applied-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Bouton suppression code thérapeute injecté dans le récap panier */
.pqtherapeute-delete-btn {
    cursor: pointer;
    color: #999;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1;
    transition: color 0.2s;
}
.pqtherapeute-delete-btn:hover {
    color: #dc3545;
    text-decoration: none;
}
.pqtherapeute-delete-btn .material-icons {
    font-size: 18px;
    vertical-align: middle;
}
