/* Automated Trading IO Public Styles */ 
.woocommerce-additional-fields{
    display: none !important;
}

/* Exchange Field Styling */
#exchange_field {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

#exchange_field h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

#exchange_field .form-row-wide {
    margin-bottom: 0;
}

/* #exchange_field select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: transparent;
}

#exchange_field select:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 1px #fff;
} */

/* Telegram ID Field Styling (if not already styled) */
#telegram_id_field {
    background: transparent;
    border: none;
    border-radius: 5px;
}

#telegram_id_field h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

/* Hide Points and Rewards checkout section by default */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Show the points section when user has enough points or reaches redeem options */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.show-points,
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.enabled,
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin: 20px 0 !important;
    padding: 15px !important;
}

/* Hide when inputs are disabled (more specific targeting) */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class input[disabled],
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class button[disabled] {
    display: none !important;
}

/* Hide the entire container when inputs are disabled */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class:has(input[disabled]),
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class:has(button[disabled]) {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class input[disabled] ~ *,
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class button[disabled] ~ * {
    display: none !important;
}

/* Hidden state styling */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Ensure smooth transitions */
.custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class {
    transition: all 0.3s ease-in-out;
}

/* Additional specificity for WooCommerce checkout */
.woocommerce-checkout .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class,
.woocommerce-checkout-review-order .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class {
    display: none !important;
}

.woocommerce-checkout .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.show-points,
.woocommerce-checkout .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.enabled,
.woocommerce-checkout .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.active,
.woocommerce-checkout-review-order .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.show-points,
.woocommerce-checkout-review-order .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.enabled,
.woocommerce-checkout-review-order .custom_point_checkout.woocommerce-info.wps_wpr_checkout_points_class.active {
    display: block !important;
}

/* ===== IMPROVED ALERT SYSTEM ===== */

/* Alert Container */
.atp-alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Individual Alert */
.atp-alert {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 12px;
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
    opacity: 0;
}

.atp-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.atp-alert.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Alert Types */
.atp-alert.atp-success {
    border-left-color: #10b981;
}

.atp-alert.atp-error {
    border-left-color: #ef4444;
}

.atp-alert.atp-warning {
    border-left-color: #f59e0b;
}

.atp-alert.atp-info {
    border-left-color: #3b82f6;
}

/* Alert Content */
.atp-alert-content {
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Alert Icon */
.atp-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atp-alert.atp-success .atp-alert-icon::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.atp-alert.atp-error .atp-alert-icon::before {
    content: "✕";
    color: #ef4444;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.atp-alert.atp-warning .atp-alert-icon::before {
    content: "⚠";
    color: #f59e0b;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

.atp-alert.atp-info .atp-alert-icon::before {
    content: "ℹ";
    color: #3b82f6;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
}

/* Alert Text */
.atp-alert-text {
    flex: 1;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Alert Close Button */
.atp-alert-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.atp-alert-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* Alert Progress Bar */
.atp-alert-progress {
    height: 3px;
    background: #e5e7eb;
    overflow: hidden;
}

.atp-alert-progress-bar {
    height: 100%;
    background: #3b82f6;
    transition: width 0.1s linear;
}

/* Alert Types Progress Colors */
.atp-alert.atp-success .atp-alert-progress-bar {
    background: #10b981;
}

.atp-alert.atp-error .atp-alert-progress-bar {
    background: #ef4444;
}

.atp-alert.atp-warning .atp-alert-progress-bar {
    background: #f59e0b;
}

.atp-alert.atp-info .atp-alert-progress-bar {
    background: #3b82f6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .atp-alert-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .atp-alert {
        margin-bottom: 8px;
    }
    
    .atp-alert-content {
        padding: 14px 16px;
    }
    
    .atp-alert-text {
        font-size: 13px;
    }
}

/* Legacy Alert Support (for backward compatibility) */
.atp_alert {
    display: none !important;
}

/* Toast-style alerts for bottom positioning */
.atp-alert-container.atp-bottom {
    top: auto;
    bottom: 20px;
}

.atp-alert-container.atp-bottom .atp-alert {
    transform: translateY(100%);
}

.atp-alert-container.atp-bottom .atp-alert.show {
    transform: translateY(0);
}

.atp-alert-container.atp-bottom .atp-alert.hide {
    transform: translateY(100%);
}

/* Center positioning for important alerts */
.atp-alert-container.atp-center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 500px;
}

.atp-alert-container.atp-center .atp-alert {
    transform: scale(0.8);
}

.atp-alert-container.atp-center .atp-alert.show {
    transform: scale(1);
}

.atp-alert-container.atp-center .atp-alert.hide {
    transform: scale(0.8);
}