/* TextMe WooCommerce OTP Modal Styles */
.textme-wc-otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.textme-wc-otp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.textme-wc-otp-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: textme-wc-otp-modal-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes textme-wc-otp-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.textme-wc-otp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.textme-wc-otp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    flex: 1;
}

.textme-wc-otp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    right: 20px;
    top: 20px;
}

.textme-wc-otp-modal-close:hover {
    background-color: #f8f9fa;
    color: #666;
}

.textme-wc-otp-modal-body {
    padding: 30px;
}

.textme-wc-otp-user-info {
    text-align: center;
    margin-bottom: 30px;
}

.textme-wc-otp-user-info p {
    margin: 0 0 8px;
    color: #333;
    font-size: 16px;
}

.textme-wc-otp-instruction {
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.5;
}

.textme-wc-otp-input-group {
    margin-bottom: 25px;
}

.textme-wc-otp-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.textme-wc-otp-input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
}

.textme-wc-otp-input-group input:focus {
    outline: none;
    border-color: #53dec0;
    box-shadow: 0 0 0 4px rgba(83, 222, 192, 0.15);
    transform: translateY(-1px);
}

.textme-wc-otp-input-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.textme-wc-otp-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.textme-wc-otp-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.textme-wc-otp-btn-primary {
    background: linear-gradient(135deg, #53dec0 0%, #45c4a8 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(83, 222, 192, 0.3);
}

.textme-wc-otp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(83, 222, 192, 0.4);
}

.textme-wc-otp-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e8e8e8;
}

.textme-wc-otp-btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
    color: #333;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.textme-wc-otp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.textme-wc-otp-btn-spinner {
    display: none;
}

.textme-wc-otp-btn:disabled .textme-wc-otp-btn-text {
    display: none;
}

.textme-wc-otp-btn:disabled .textme-wc-otp-btn-spinner {
    display: inline;
}

.textme-wc-otp-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 20px;
    display: none;
    text-align: center;
}

.textme-wc-otp-message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.textme-wc-otp-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.textme-wc-otp-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.textme-wc-otp-help-text {
    margin: 0;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
    .textme-otp-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .textme-otp-modal-header,
    .textme-otp-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .textme-otp-actions {
        flex-direction: column;
    }
    
    .textme-otp-btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .textme-otp-modal-content {
        background: #2d2d2d;
        color: #fff;
    }
    
    .textme-otp-modal-header {
        border-bottom-color: #444;
    }
    
    .textme-otp-modal-header h3 {
        color: #fff;
    }
    
    .textme-otp-modal-close {
        color: #ccc;
    }
    
    .textme-otp-modal-close:hover {
        background-color: #444;
        color: #fff;
    }
    
    .textme-otp-modal-body p {
        color: #ccc;
    }
    
    .textme-otp-input-group label {
        color: #fff;
    }
    
    .textme-otp-input-group input {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }
    
    .textme-otp-input-group input:focus {
        border-color: #53dec0;
    }
    
    .textme-otp-btn-secondary {
        background-color: #3d3d3d;
        color: #ccc;
        border-color: #555;
    }
    
    .textme-otp-btn-secondary:hover:not(:disabled) {
        background-color: #4d4d4d;
        color: #fff;
    }
}
