/* Beehive Delivery Authorization Plugin Styles */

/* OTP Modal Styles */
#beehive-otp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.beehive-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.beehive-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.beehive-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.beehive-modal-content p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

#beehive-otp-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-weight: bold;
}

#beehive-otp-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.beehive-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.beehive-modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#beehive-verify-otp {
    background: #4CAF50;
    color: white;
}

#beehive-verify-otp:hover {
    background: #45a049;
}

#beehive-cancel-otp {
    background: #f44336;
    color: white;
}

#beehive-cancel-otp:hover {
    background: #da190b;
}

/* Delivery Button Styles */
.beehive-delivery-button {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.beehive-delivery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.beehive-delivery-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Success Message Styles */
.beehive-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
    z-index: 9999;
    font-weight: 600;
    max-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Shortcode Widget Styles */
#beehive-delivery-auth-widget {
    max-width: 400px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 20px 0;
}

.beehive-auth-style-default {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.beehive-auth-status {
    text-align: center;
    margin-bottom: 15px;
}

.beehive-phone-input {
    margin-bottom: 15px;
}

.beehive-phone-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.beehive-phone-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.beehive-phone-input button {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.beehive-phone-input button:hover {
    background: #1976D2;
}

.beehive-delivery-options h4 {
    margin: 0 0 15px 0;
    color: #333;
}

/* Loading States */
.beehive-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.beehive-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.beehive-error {
    color: #f44336;
    padding: 10px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin: 10px 0;
}

.beehive-success {
    color: #4CAF50;
    padding: 10px;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    margin: 10px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .beehive-modal-content {
        padding: 20px;
        margin: 20px;
        width: auto;
    }
    
    .beehive-success-message {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    #beehive-delivery-auth-widget {
        margin: 10px 0;
        padding: 15px;
    }
}

/* Debug Mode Styles */
.beehive-debug-info {
    background: #fffacd;
    border: 1px solid #ffd700;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    margin: 10px 0;
    max-height: 200px;
    overflow-y: auto;
}