/**
 * Toast Notification Styles
 */

.cutboy-notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    pointer-events: none;
}

.cutboy-notification {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.cutboy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.cutboy-notification.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.cutboy-notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.cutboy-notification-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cutboy-notification-content strong {
    font-weight: 600;
    display: inline;
    margin-right: 4px;
}

.cutboy-notification-content a {
    color: #2563eb;
    text-decoration: none;
    margin-left: 4px;
}

.cutboy-notification-content a:hover {
    text-decoration: underline;
}

.cutboy-notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.cutboy-notification-close:hover {
    color: #333;
}

/* Error Notification */
.cutboy-notification.error {
    border-left: 4px solid #dc2626;
}

.cutboy-notification.error .cutboy-notification-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Success Notification */
.cutboy-notification.success {
    border-left: 4px solid #16a34a;
}

.cutboy-notification.success .cutboy-notification-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* Info Notification */
.cutboy-notification.info {
    border-left: 4px solid #2563eb;
}

.cutboy-notification.info .cutboy-notification-icon {
    background: #dbeafe;
    color: #2563eb;
}

/* Warning Notification */
.cutboy-notification.warning {
    border-left: 4px solid #f59e0b;
}

.cutboy-notification.warning .cutboy-notification-icon {
    background: #fef3c7;
    color: #f59e0b;
}

/* Hide default WooCommerce notices when using notifications */
body.cutboy-use-notifications .woocommerce-error,
body.cutboy-use-notifications .woocommerce-message,
body.cutboy-use-notifications .woocommerce-info {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cutboy-notification-container {
        top: 10px;
        padding: 0 12px;
    }

    .cutboy-notification {
        padding: 12px 16px;
        font-size: 13px;
    }
}
