/* Dashboard Wrapper: Constrain width on large screens */
#affwp-affiliate-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Tabs: Compact & Responsive */
#affwp-affiliate-dashboard-tabs {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    gap: 6px; /* Reduced gap for tighter layout */
}

#affwp-affiliate-dashboard-tabs li {
    margin: 0;
}

#affwp-affiliate-dashboard-tabs li a {
    display: inline-block;
    padding: 8px 14px; /* Reduced padding */
    text-decoration: none;
    font-weight: 600;
    font-size: 13px; /* Smaller font size */
    color: #333;
    background: #f5f5f5;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap; /* Prevent awkward text breaks */
}

#affwp-affiliate-dashboard-tabs li.active a,
#affwp-affiliate-dashboard-tabs li a:hover {
    background: #ffcc00;
    color: #000;
}

/* Mobile: Clean Wrapping, No Scroll */
@media (max-width: 768px) {
    #affwp-affiliate-dashboard-tabs {
        flex-wrap: wrap; /* Allow clean stacking/wrapping */
        gap: 5px;
    }

    #affwp-affiliate-dashboard-tabs li a {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Cards Styling */
.affwp-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Headers */
.affwp-card__header h3 {
    font-size: 18px; /* Slightly reduced */
    margin: 0 0 8px;
}

.affwp-card__header p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* Affiliate Link Display */
.affwp-affiliate-link__display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.affwp-affiliate-link__input {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Copy Link Button */
.affwp-affiliate-link-copy-link.button {
    background: #ffcc00;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.affwp-affiliate-link-copy-link.button:hover {
    background: #e6b800;
}

/* Custom Link Generator */
.affwp-card__content--form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.affwp-card__content--form input[type="url"],
.affwp-card__content--form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* Campaign toggle */
#affwp-generator-toggle-campaign {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

/* Submit Button */
#affwp-generator-submit-btn {
    background: #ffcc00;
    border: none;
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

#affwp-generator-submit-btn:hover {
    background: #e6b800;
}

/* Responsive: Inputs stack on mobile */
@media (max-width: 768px) {
    .affwp-affiliate-link__display {
        flex-direction: column;
        gap: 8px;
    }

    .affwp-affiliate-link-copy-link.button,
    #affwp-generator-submit-btn {
        width: 100%;
        padding: 12px 0;
    }

    .affwp-card__header h3 {
        font-size: 16px;
    }

    .affwp-card__header p {
        font-size: 12px;
    }
}

/* Custom Links Table */
#affwp-custom-links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#affwp-custom-links-table th,
#affwp-custom-links-table td {
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

#affwp-custom-links-table th {
    background: #f9f9f9;
    text-align: left;
}



/* HIDE PRICES, Add to cart Styles */

/* --- TEMP: Catalog mode (front-end only) --- */

/* Hide all prices */
/*.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.price,
.woocommerce-Price-amount { display:none !important; }*/

/* Hide Add to Cart on archives & single product */
/*.woocommerce a.button.add_to_cart_button,
.woocommerce .ajax_add_to_cart,
.woocommerce ul.products li.product .button,
.woocommerce button.single_add_to_cart_button,
.single-product form.cart { display:none !important; }*/

/* Hide header mini-cart & widget carts */
/*.site-header-cart,
.widget_shopping_cart,
.woocommerce-mini-cart,
.added_to_cart { display:none !important; }*/

/* (Optional) Nuke menu/cart/checkout links from being clickable */
/*a[href*="/cart"],
a[href*="/checkout"] { display:none !important; }*/