/* assets/css/atp-fixes.css */
/* --- Main Layout & Promo Links --- */
.atp-shop-header-promo,
.atp-map-header-promo {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1em;
}
.atp-shop-header-promo a,
.atp-map-header-promo a {
    text-decoration: none;
    font-weight: 500;
    color: #155264;
}
.atp-shop-header-promo a:hover,
.atp-map-header-promo a:hover {
    text-decoration: underline;
}

/* --- Two-Column Layout for Filters & Results --- */
.atp-quotes-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px;
}

/* --- Filter Sidebar Styles --- */
.atp-filters-sidebar {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 30px;
}
.atp-filters-sidebar h3 {
    margin: 0 0 25px;
    font-size: 1.4em;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.atp-filter-group {
    margin-bottom: 22px;
}
.atp-filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #475569;
    font-size: 1em;
}
.atp-filter-group input[type="text"],
.atp-filter-group select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    font-size: 1em;
    transition: all 0.2s ease;
}
.atp-filter-group input[type="text"]:focus,
.atp-filter-group select:focus {
    border-color: #155264;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(21, 82, 100, 0.15);
    outline: none;
}
.atp-filter-radios {
    list-style: none;
    padding: 0;
    margin: 0;
}
.atp-filter-radios li {
    margin-bottom: 8px;
}
.atp-filter-radios li label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    font-weight: normal;
}
.atp-filter-radios li label:hover {
    background-color: #f1f5f9;
}
.atp-filter-radios li input {
    margin-right: 10px;
    accent-color: #155264;
}
.atp-filters-sidebar .button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #155264;
    border: none;
    border-radius: 8px;
}
.atp-filters-sidebar .button:hover {
    background-color: #0d3c4b;
}

/* --- AJAX Loading State --- */
#atp-ajax-product-list.loading {
    opacity: 0.4;
    transition: opacity 0.3s ease-in-out;
}


/* My Account Watchlist Table */
.woocommerce-account .woocommerce-table--order-details .product-action {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .atp-quotes-layout {
        grid-template-columns: 1fr;
    }
    .atp-filters-sidebar {
        position: static;
    }
}
/* === Bottom Actions: Submit & Watch Buttons (Refined Look) === */

.wd-bottom-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; /* Increased gap for better spacing */
    width: 100%;
}

/* --- Common styling for BOTH buttons --- */
.wd-bottom-actions .button,
.wd-bottom-actions .atp-watchlist-btn {
    flex: 1; /* Each button takes up 50% of the available space */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px; /* Space between icon and text */
    padding: 12px 15px !important;
    font-size: 1em !important;
    font-weight: 600 !important; /* Slightly bolder text */
    letter-spacing: 0.5px; /* Adds a touch of refinement */
    line-height: 1.4 !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    border: 2px solid transparent !important; /* Border for structure */
    transition: all 0.25s ease-in-out; /* Smooth transition for all properties */
    text-align: center;
}

/* --- [1] PRIMARY BUTTON: "Submit" (Solid & Prominent) --- */
.wd-bottom-actions .button {
    background-color: #155264 !important;
    border-color: #155264 !important;
    color: #fff !important;
}

.wd-bottom-actions .button:hover {
    background-color: #0d3c4b !important;
    border-color: #0d3c4b !important;
    transform: translateY(-2px); /* Subtle lift on hover */
    box-shadow: 0 4px 10px rgba(21, 82, 100, 0.2);
}


/* --- [2] SECONDARY BUTTON: "Watch" (Outline & Subtle) --- */
.atp-watchlist-btn {
    background-color: transparent !important;
    border-color: #cbd5e1 !important; /* Light grey border */
    color: #475569 !important;       /* Dark grey text */
}

.atp-watchlist-btn:hover {
    background-color: #f8fafc !important; /* Very light background on hover */
    border-color: #155264 !important;
    color: #155264 !important;
    transform: translateY(-2px); /* Subtle lift on hover */
}

/* Style for when the item IS being watched */
.atp-watchlist-btn.watching {
    background-color: #e0f2f1 !important; /* Light green background */
    border-color: #28a745 !important;
    color: #0d5c21 !important; /* Dark green text */
}
.atp-watchlist-btn.watching .fa-eye {
    font-weight: 900; /* Makes the Font Awesome icon solid */
}

.atp-watchlist-btn.watching:hover {
     background-color: #cce8e5 !important;
}

/* Icon styling */
.wd-bottom-actions .fa-solid,
.wd-bottom-actions .fa-regular {
    font-size: 1.1em; /* Makes icon slightly larger than text */
}