/* TM Panier Magique - Popup Styles */

.tmpm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: tmpmFadeIn 0.3s ease;
}

@keyframes tmpmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tmpm-popup-container {
    background: #fff;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tmpmSlideUp 0.4s ease;
}

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

.tmpm-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    z-index: 10;
}

.tmpm-popup-close:hover {
    background: #eee;
    color: #333;
}

.tmpm-popup-content {
    padding: 40px 30px;
    text-align: center;
}

.tmpm-popup-icon {
    margin-bottom: 20px;
}

.tmpm-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.tmpm-popup-text {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.tmpm-popup-form {
    text-align: left;
}

.tmpm-form-group {
    margin-bottom: 15px;
}

.tmpm-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
}

.tmpm-input:focus {
    border-color: #FF6B35;
}

.tmpm-popup-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tmpm-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.tmpm-popup-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tmpm-button-loading {
    display: inline-flex;
    align-items: center;
}

.tmpm-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tmpmSpin 0.8s linear infinite;
}

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

.tmpm-popup-privacy {
    margin: 15px 0 0 0;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.tmpm-popup-success {
    padding: 50px 30px;
    text-align: center;
}

.tmpm-success-icon {
    width: 60px;
    height: 60px;
    background: #4ECDC4;
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tmpm-popup-success h3 {
    color: #333;
    margin: 0 0 10px 0;
}

.tmpm-popup-success p {
    color: #666;
    margin: 0;
}
