/* ===== HEART BUTTON - Upper Right Corner Overlay ===== */
.eg-heart {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    background-color: transparent !important;
    border: none;
    border-radius: 0;
    padding: 0 !important;
    transition: transform 0.2s ease;
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 0;
    min-height: 0;
    z-index: 10;
    --eg-heart-transform: translate3d(0, 0, 0);
    transform: var(--eg-heart-transform);
}

.eg-heart:not(:focus-visible) {
    box-shadow: none !important;
}

.woocommerce ul.products li.product {
    position: relative;
    overflow: visible;
}

.woocommerce ul.products li.product .eg-heart {
    position: absolute;
    top: 0;
    right: 0;
    /* Anchor the heart's center on the card corner so it straddles the edge */
    --eg-heart-transform: translate3d(50%, -50%, 0);
}

.eg-heart.eg-heart--inline,
.eg-heart-single .eg-heart {
    position: relative;
    top: 0;
    right: 0;
    min-width: 36px;
    min-height: 36px;
    padding: 6px !important;
}

.eg-heart.eg-heart--inline {
    margin: 0;
}

.eg-heart.eg-heart--inline:hover {
    transform: var(--eg-heart-transform) scale(1.12);
}

.eg-heart-single {
    pointer-events: none;
}

.eg-heart-single .eg-heart {
    pointer-events: auto;
}

.single-product .woocommerce-product-gallery {
    position: relative;
}

.single-product .woocommerce-product-gallery .eg-heart-single {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 25;
}

/* Heart positioning for action/info layouts - positioned on product card */
/* (Picture-first gallery already has position: relative from WC Swiper Gallery) */

@media (max-width: 767px) {
    .single-product .woocommerce-product-gallery .eg-heart-single {
        top: 8px;
        right: 8px;
    }
}

/* Emoji heart styling */
.eg-heart-emoji {
    font-family: "Brandon Grotesque", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
    font-size: 1.85em;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    transition: filter 0.2s ease;
}

/* ===== HEART BUTTON IN CART ITEMS ===== */
/* Heart is now in the product-remove column, below the X button */
.eg-cart-item-wrapper {
    position: relative;
}

.eg-cart-heart-container {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.eg-cart-heart-container .eg-heart {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
}

/* Cart: ensure tooltip can extend into product column (no clip) */
.woocommerce-cart-form .eg-cart-heart-container {
    position: relative;
    overflow: visible !important;
}

/* Remove the old positioning that was for product-info corner placement */
.woocommerce-cart-form__contents .product-info {
    position: relative !important;
}

.eg-heart--none .eg-heart-emoji {
    text-shadow:
        -1px 0 0 rgba(45, 52, 54, 0.6),
        1px 0 0 rgba(45, 52, 54, 0.6),
        0 -1px 0 rgba(45, 52, 54, 0.6),
        0 1px 0 rgba(45, 52, 54, 0.6),
        0 0 3px rgba(45, 52, 54, 0.35);
    filter: drop-shadow(0 0 1px rgba(45, 52, 54, 0.45));
}

.eg-heart:hover {
    transform: var(--eg-heart-transform) scale(1.18);
}

.eg-heart--none:hover .eg-heart-emoji {
    filter: drop-shadow(0 2px 5px rgba(16, 19, 38, 0.35));
}

.eg-heart:active {
    transform: var(--eg-heart-transform) scale(0.98);
}

.eg-heart:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.45);
}

/* Loading state */
.eg-heart--loading {
    opacity: 0.6;
    cursor: pointer !important;
    animation: eg-heart-pulse 1s infinite;
    pointer-events: none;
}

@keyframes eg-heart-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Heart States - Emoji Style: Light Blue 🩵 & Green 💚 */
.eg-heart--none,
.eg-heart--now,
.eg-heart--later {
    background: transparent;
    border: none;
}

.eg-heart-tooltip {
    position: absolute;
    top: 2.4rem;
    right: 0.5rem;
    transform: translateY(-6px);
    background: rgba(16, 19, 38, 0.88);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: brandon-grotesque, sans-serif;
    letter-spacing: 0.02em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    z-index: 15;
}

.eg-heart-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variation modal */
.eg-variation-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.eg-variation-modal.is-visible {
    display: flex;
}

.eg-variation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 38, 0.55);
}

.eg-variation-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    width: min(520px, 100%);
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(16, 19, 38, 0.18);
    display: flex;
    flex-direction: column;
}

.eg-variation-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #5a6a64;
}

.eg-variation-modal__close:hover {
    color: #25352f;
}

.eg-variation-modal__header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(165, 204, 188, 0.35);
}

.eg-variation-modal__header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #101326;
}

.eg-variation-modal__subtitle {
    margin: 0.5rem 0 0;
    color: #4f625b;
    font-size: 0.95rem;
}

.eg-variation-modal__content {
    padding: 0 1.5rem 1.5rem;
    overflow-y: auto;
}

.eg-variation-modal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(165, 204, 188, 0.2);
}

.eg-variation-modal__row:last-child {
    border-bottom: none;
}

.eg-variation-modal__info {
    flex: 1 1 auto;
    min-width: 0;
}

.eg-variation-modal__title {
    font-weight: 600;
    color: #101326;
    margin: 0;
    font-size: 1rem;
}

.eg-variation-modal__price {
    margin-top: 0.35rem;
    color: #5a6a64;
    font-size: 0.9rem;
}

.eg-variation-modal__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.eg-heart.eg-heart--variation {
    border: none;
    background: transparent;
}

body.eg-variation-modal-open {
    overflow: hidden;
}

/* ===== TOOLBAR - Search, Sort, Bulk Actions ===== */
.eg-list__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(240, 243, 239, 0.5);
    border: 1px solid rgba(165, 204, 188, 0.3);
    border-radius: 6px;
    flex-wrap: wrap;
}

.eg-list__toolbar-left,
.eg-list__toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eg-list__search {
    padding: 8px 12px;
    border: 1px solid rgba(165, 204, 188, 0.4);
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.eg-list__search:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.15);
}

.eg-list__sort {
    padding: 8px 12px;
    border: 1px solid rgba(165, 204, 188, 0.4);
    border-radius: 4px;
    font-size: 14px;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eg-list__sort:focus {
    outline: none;
    border-color: #87CEEB;
}

/* Primary actions - mega menu pill style */
.eg-list__select-all,
.eg-list__select-all-wishlist,
.eg-list__bulk-add-to-cart,
.eg-list__bulk-add-to-cart-wishlist {
    padding: 8px 20px;
    border: none;
    border-radius: 999px; /* Full pill shape */
    background: rgba(215, 237, 230, 0.6); /* Soft mint like mega menu */
    color: #2d5016;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    width: auto; /* Auto-width, not full-width */
    white-space: nowrap;
}

/* Move Selected dropdown - text link style */
.eg-list__bulk-move-select {
    padding: 0;
    padding-right: 1.25em; /* Space for dropdown arrow */
    font-size: 14px !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    font-family: brandon-grotesque, sans-serif;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0f4c3a;
    cursor: pointer;
    transition: color 0.2s ease;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-decoration: underline;
    background-image: url("data:image/svg+xml,%3Csvg fill='%230f4c3a' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 14px;
    width: auto;
}

.eg-list__bulk-move-select:hover {
    color: #0b3a2c;
}

.eg-list__bulk-move-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #9ca3af;
    text-decoration: none;
}

/* Move to Wishlist button */
.eg-list__bulk-move-to-wishlist {
    padding: 8px 16px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.4), rgba(220, 240, 220, 0.35));
    color: #2e7d32;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 36px;
}

/* Move to Shopping List button */
.eg-list__bulk-move-to-shopping {
    padding: 8px 16px;
    border: 2px solid #87CEEB;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(215, 237, 247, 0.4), rgba(224, 242, 250, 0.35));
    color: #1976d2;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 36px;
}

/* Remove from List button (red tint) */
.eg-list__bulk-remove,
.eg-list__bulk-remove-wishlist {
    padding: 8px 16px;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 235, 238, 0.5), rgba(255, 245, 245, 0.4));
    color: #c62828;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
    min-height: 36px;
}

.eg-list__select-all:hover,
.eg-list__select-all-wishlist:hover,
.eg-list__bulk-add-to-cart:not(:disabled):hover,
.eg-list__bulk-add-to-cart-wishlist:not(:disabled):hover {
    background: rgba(165, 204, 188, 0.5); /* Slightly darker on hover */
    transform: translateY(-1px);
}

.eg-list__bulk-move-to-wishlist:not(:disabled):hover {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.eg-list__bulk-move-to-shopping:not(:disabled):hover {
    background: linear-gradient(135deg, #87CEEB, #64B5F6);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(135, 206, 235, 0.3);
}

.eg-list__bulk-remove:not(:disabled):hover,
.eg-list__bulk-remove-wishlist:not(:disabled):hover {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: #fff;
    border-color: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.4);
}

.eg-list__bulk-add-to-cart:disabled,
.eg-list__bulk-add-to-cart-wishlist:disabled,
.eg-list__bulk-move-to-wishlist:disabled,
.eg-list__bulk-move-to-shopping:disabled,
.eg-list__bulk-remove:disabled,
.eg-list__bulk-remove-wishlist:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    /* Maintain same size/padding as active state */
    padding: 8px 20px !important;
    border-radius: 999px !important;
}

/* ===== SHOPPING LIST - Clean & Scannable ===== */
.eg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eg-list__group {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(135, 206, 235, 0.2);
    padding-bottom: 1rem;
}

/* Multi-column grid layout on larger screens */
@media (min-width: 768px) {
    /* Apply grid to the entire list container */
    .eg-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        column-gap: 1.5rem;
    }
    
    /* Groups now participate in the parent grid */
    .eg-list__group {
        display: contents; /* Allow children to participate in parent grid */
        margin-bottom: 0; /* Remove margin since we're using grid gap */
    }
    
    /* Category headers span all columns */
    .eg-list__group h3 {
        grid-column: 1 / -1;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    /* First category header has no top margin */
    .eg-list__group:first-child h3 {
        margin-top: 0;
    }
    
    .eg-list__unavailable-heading {
        grid-column: 1 / -1;
        margin-top: 2rem;
    }
    
    /* Handle nested ul in wishlists */
    .eg-list__group > ul {
        display: contents; /* Allow li elements to participate in parent grid */
    }
    
    /* List items flow naturally in the grid */
    .eg-list__group > li,
    .eg-list__group > ul > li {
        /* No special styling needed - they'll flow naturally in the grid */
    }
}

/* Three-column layout on very large screens */
@media (min-width: 1400px) {
    .eg-list {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 2rem;
    }
}

/* Different colors for shopping list vs wishlist groups */
.eg-list__group[data-list="now"] {
    border-bottom-color: rgba(135, 206, 235, 0.3);
}

.eg-list__group[data-list="later"] {
    border-bottom-color: rgba(46, 204, 113, 0.3);
}

.eg-list__group:last-child {
    border-bottom: none;
}

.eg-list__group h3 {
    font-family: brandon-grotesque, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #222;
    margin-bottom: 0.75rem;
}

/* Remove bullets from list items */
.eg-list__group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Group headers - no emoji so cards provide context */
.eg-list__group[data-list="now"] h3::before,
.eg-list__group[data-list="later"] h3::before {
    content: none;
}


/* ===== PRODUCT CARDS IN LISTS ===== */
.eg-list__item {
    margin-bottom: 1rem;
    padding: 12px; /* Compact padding */
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative; /* Positioning context for absolute heart */
    overflow: visible; /* Allow heart to hang off edge */
}

/* Sky blue background for shopping list items (very muted) */
.eg-list[data-list-type="shopping"] .eg-list__item {
    background: linear-gradient(135deg, rgba(215, 237, 247, 0.3), rgba(224, 242, 250, 0.25));
}

/* Light green background for wishlist items (very muted) */
.eg-list__group[data-list="later"] .eg-list__item {
    background: linear-gradient(135deg, rgba(200, 230, 201, 0.3), rgba(220, 240, 220, 0.25));
}

.eg-list__item.eg-list__item--transitioning {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.eg-list__item:hover {
    border-color: #a5ccbc;
    box-shadow: 0 2px 8px rgba(165, 204, 188, 0.15);
}

.eg-list__item--unavailable {
    opacity: 0.6;
    background: rgba(240, 243, 239, 0.5);
}

.eg-list__item-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eg-list__item-card--no-image {
    padding-top: 0.25rem;
}

.eg-list__item-card--no-image .eg-list__item-image img {
    object-fit: contain;
}

.eg-list__item-heart {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    transform: translate3d(50%, -50%, 0) !important; /* Hang off corner */
    z-index: 10 !important;
    margin: 0 !important;
}

.eg-list__item-heart .eg-heart {
    position: relative;
    top: 0;
    right: 0;
    min-width: 0;
    min-height: 0;
    padding: 0;
    transform: none !important;
}

.eg-list__item-heart .eg-heart-emoji {
    font-size: 1.6em;
}

/* Top section: checkbox + image + info stretches (item notes now absolutely positioned) */
.eg-list__item-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem; /* Increased from 0.75rem for more breathing room */
    padding-right: 140px; /* Space for absolutely positioned item notes button */
}

/* Add more horizontal space in two-column layout */
@media (min-width: 600px) {
    .eg-list__item-top {
        gap: 1.25rem; /* Even more space on larger screens */
    }
    
    .eg-list__item-left {
        gap: 1rem; /* More space between elements */
    }
}

.eg-list__item-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

/* Bulk checkbox */
.eg-list__bulk-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #87CEEB;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Wishlist checkboxes - green accent */
.eg-list__bulk-checkbox--wishlist {
    accent-color: #4CAF50;
}

/* Product image */
.eg-list__item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.eg-list__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.eg-list__item-image:hover img {
    transform: scale(1.05);
}

.eg-list__item-image--unavailable {
    opacity: 0.5;
    filter: grayscale(50%);
}

/* Product info */
.eg-list__item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Brand name styling - smaller italic like rest of site */
.eg-list__item-brand {
    font-size: 11px;
    font-style: italic;
    color: #666;
    margin: 0 !important;
    padding: 0 !important;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.eg-list__item-title {
    font-weight: 600;
    font-size: 15px;
    color: #222 !important; /* Black text instead of blue hyperlink */
    text-decoration: none !important;
    transition: color 0.2s;
    line-height: 1.3;
    font-family: brandon-grotesque, sans-serif;
    margin: 2px 0 0 0 !important; /* Minimal gap after brand */
    padding: 0 !important;
}

.eg-list__item-title:hover {
    color: #87CEEB !important;
    text-decoration: none !important;
}

.eg-list__item-title a {
    color: #222 !important; /* Remove blue hyperlink styling */
    text-decoration: none !important;
}

.eg-list__item-title:hover,
.eg-list__item-title a:hover {
    color: #87CEEB !important;
    text-decoration: none !important;
}

.eg-list__item-price {
    font-size: 14px;
    font-weight: 400; /* Regular weight, not bold */
    color: #2d5016;
    font-family: brandon-grotesque, sans-serif;
}

/* Stock status badges */
.eg-list__item-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    font-family: brandon-grotesque, sans-serif;
    width: fit-content;
}

.eg-list__item-stock--in {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.eg-list__item-stock--out {
    background: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

/* Action buttons - single row at bottom, floated right */
.eg-list__item-actions {
    display: flex;
    align-items: center; /* Vertically center all buttons */
    justify-content: flex-end !important; /* Force right alignment */
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-height: 32px; /* Ensure consistent height for alignment */
    width: 100%; /* Full width to enable flex-end alignment */
    margin-left: auto; /* Push to right if needed */
    position: relative; /* Positioning context */
}

/* ADD TO button - minimal styling, same height as pill buttons */
.eg-list__quick-add {
    padding: 3px 8px !important; /* Match height of MOVE button (3px vertical) */
    border: 1px solid rgba(16, 19, 38, 0.15) !important; /* Very subtle border */
    border-radius: 999px !important; /* Full pill shape like MOVE button */
    background: rgba(224, 247, 249, 0.5) !important; /* Very light, subtle background */
    color: #000 !important;
    font-family: brandon-grotesque, sans-serif;
    font-size: 11px !important;
    font-weight: 500 !important; /* Less bold */
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: none !important; /* Remove shadow for minimal look */
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    height: auto !important;
    width: auto !important;
    line-height: 1.2 !important; /* Match other buttons */
    vertical-align: middle !important;
    flex-shrink: 0; /* Prevent shrinking */
    order: 1; /* First in flex order */
}

.eg-list__quick-add:hover:not(:disabled) {
    background: linear-gradient(135deg, #a5ccbc, #92b2a8) !important;
    transform: translateY(-1px);
    border-color: rgba(16, 19, 38, 0.35) !important;
}

/* REMOVE button - text link styling, always anchored to lower right */
.eg-list__remove-single {
    padding: 0;
    border: none;
    background: transparent;
    color: #0f4c3a;
    font-family: brandon-grotesque, sans-serif;
    font-size: 11px !important;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    height: auto !important;
    width: auto !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    flex-shrink: 0; /* Prevent shrinking */
    order: 3; /* Always last in flex order */
}

.eg-list__remove-single:hover,
.eg-list__remove-single:focus-visible {
    color: #0b3a2c;
}

.eg-list__quick-add:disabled {
    opacity: 0.45;
    cursor: wait;
    text-decoration: none;
}

.eg-list__quick-add--success {
    color: #1b6d47 !important;
    text-decoration: none;
}

/* Basket icon in add button - proportional to button size */
.eg-quick-add-basket-icon {
    width: 1.8em !important; /* Smaller to match minimal button */
    height: 1.8em !important;
    flex-shrink: 0;
    vertical-align: middle;
    display: inline-block !important;
    text-decoration: none; /* Remove underline for cleaner minimal look */
    margin: 0 0.1em;
}

/* Pipe separators between actions - removed since buttons now have different styling */

/* Checked toggle */
.eg-list__checked-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #0f4c3a;
    font-size: 0.85rem;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.eg-list__checked-toggle:hover,
.eg-list__checked-toggle:focus-visible {
    color: #0b3a2c;
}

.eg-list__checked-toggle:focus-visible {
    outline: 2px solid rgba(15, 76, 58, 0.35);
    outline-offset: 2px;
    border-radius: 3px;
}

.eg-list__checked-toggle.is-checked {
    color: #1b6d47;
    font-weight: 600;
    text-decoration: none;
}

.eg-list__checked-icon {
    font-size: 0.85rem;
}

.eg-list__move {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.eg-list__move[data-eg-move-to="later"] {
    color: #1f7f55;
}

.eg-list__move[data-eg-move-to="now"] {
    color: #2c6a94;
}

.eg-list__move:hover,
.eg-list__move:focus-visible {
    color: #0b3a2c;
}

.eg-list__move:focus-visible {
    outline: 2px solid rgba(42, 128, 104, 0.35);
    outline-offset: 2px;
    border-radius: 3px;
}

.eg-list__move-icon {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    text-shadow: none;
    filter: none;
}

.eg-list__move-text {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.eg-wishlist__manage-hint {
    margin: -0.35rem 0 1rem;
    color: #4c5a63;
    font-size: 0.88rem;
    line-height: 1.4;
    font-family: brandon-grotesque, sans-serif;
}

/* Wishlist toolbar */
.eg-wishlist__toolbar {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(240, 243, 239, 0.5);
    border: 1px solid rgba(165, 204, 188, 0.3);
    border-radius: 6px;
}

.eg-wishlist__toolbar .eg-list__toolbar-right {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Unavailable section */
.eg-list__unavailable-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(231, 76, 60, 0.3);
}

.eg-list__unavailable-heading {
    font-family: brandon-grotesque, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c0392b;
    margin-bottom: 1rem;
}

/* Remove button (Small underlined text in lower left under checkbox/image) */
.eg-list__remove-single {
    position: absolute;
    bottom: -6px;
    left: 4px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    font-size: 10px;
    line-height: 1;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 400;
    transition: color 0.2s ease;
    z-index: 5;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.eg-list__remove-single:hover {
    color: #d32f2f;
    text-decoration-style: solid;
}

.eg-list__remove-single:active {
    transform: scale(0.95);
}

.eg-list__remove-single .eg-remove-icon {
    display: none; /* Hide the X icon */
}

/* Legacy remove button */
.eg-list__remove {
    background: none;
    border: 1px solid transparent;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: brandon-grotesque, sans-serif;
    transition: all 0.15s ease;
}

.eg-list__remove:hover {
    color: #b00;
    border-color: rgba(187, 0, 0, 0.3);
    background: rgba(187, 0, 0, 0.05);
}

.eg-list__remove:active {
    transform: scale(0.95);
}

/* ===== MOVE DROPDOWN STYLING - Light mega menu pill style ===== */
.eg-list__move-menu {
    display: inline-flex;
    align-items: center;
    width: auto !important; /* Override any full-width styles */
    flex-shrink: 0; /* Prevent shrinking */
    order: 2; /* Middle in flex order */
}

.eg-list__move-select {
    padding: 3px 24px 3px 10px !important; /* Adjusted padding for better vertical alignment */
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: brandon-grotesque, sans-serif;
    border: none;
    border-radius: 999px; /* Full pill shape like mega menu */
    background: rgba(215, 237, 230, 0.4) !important; /* Light mint like mega menu */
    color: #2d5016 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-decoration: none !important;
    background-image: url("data:image/svg+xml,%3Csvg fill='%232d5016' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: 1.2 !important; /* Better vertical alignment */
    vertical-align: middle !important;
}

.eg-list__move-select:hover {
    background: rgba(165, 204, 188, 0.35) !important;
    transform: translateY(-1px);
}

.eg-list__move-select:focus {
    outline: 2px solid rgba(15, 76, 58, 0.35);
    outline-offset: 2px;
}

/* Bulk move dropdown wrapper */
.eg-list__bulk-move-wrapper {
    display: inline-flex;
    align-items: center;
}

/* .eg-list__bulk-move-select styling moved to top of file (line 390) */

/* ===== NOTES - Item and General (Match Cart Styling) ===== */
.eg-list__item-note-wrapper {
    margin-top: 8px;
    padding-left: 1.75rem;
    padding-right: 3rem; /* Space for heart button */
    position: relative;
}

/* Item notes button - absolutely positioned in upper right, below heart */
.eg-list__item-note-details {
    position: absolute !important;
    top: 32px !important; /* Below the heart which hangs off top edge */
    right: 8px !important;
    z-index: 5 !important; /* Below heart (z-index: 10) but above content */
}

.eg-list__item-note-toggle {
    list-style: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 6px 18px 6px 6px !important; /* More right padding for arrow */
    margin: 0 !important;
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-family: brandon-grotesque, sans-serif !important;
    white-space: nowrap !important;
    position: relative !important; /* For absolute positioned arrow */
}

.eg-list__item-note-toggle:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
    border-color: #9ca3af !important;
}

/* Show arrow using ::after - right pointing triangle */
.eg-list__item-note-toggle::after {
    content: "\25B8" !important; /* Right-pointing triangle */
    position: absolute !important;
    right: 0.1em !important;
    top: 50% !important;
    transform: translateY(-40%) rotate(0deg) !important;
    font-size: 1.1em !important;
    color: gray !important;
    transition: transform 0.2s ease !important;
}

details[open] .eg-list__item-note-toggle::after {
    transform: translateY(-40%) rotate(90deg) !important; /* Points down when open */
}

/* Hide default disclosure triangle */
.eg-list__item-note-toggle::-webkit-details-marker {
    display: none !important;
}

.eg-list__item-note-toggle::marker {
    display: none !important;
}

/* Content area for expanded note - positions below the toggle */
.eg-list__item-note-details > div {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 6px !important;
    padding: 8px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    min-width: 250px !important;
    max-width: 300px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 20 !important; /* Above everything when open */
}

.eg-list__item-note-details label {
    display: block !important;
    font-size: 12px !important;
    margin-bottom: 4px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-family: brandon-grotesque, sans-serif !important;
}

/* Textarea matches cart styling */
.eg-list__item-note {
    width: 100% !important;
    height: 50px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    resize: vertical !important;
    font-family: brandon-grotesque, sans-serif !important;
    color: #374151 !important;
    background: #fff !important;
    transition: all 0.2s ease;
}

.eg-list__item-note:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.1);
}

.eg-list__item-note::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Note status indicator */
.eg-note-status {
    display: inline-block;
    font-size: 11px;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.eg-note-status--saving {
    color: #999;
}

.eg-note-status--saved {
    color: #2ecc71;
}

.eg-note-status--error {
    color: #e74c3c;
}

/* General notes section */
.eg-list__general-notes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(240, 243, 239, 0.5);
    border: 1px solid rgba(165, 204, 188, 0.3);
    border-radius: 6px;
}

.eg-list__general-notes label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: brandon-grotesque, sans-serif;
}

.eg-general-notes-field {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    border: 1px solid rgba(165, 204, 188, 0.4);
    border-radius: 4px;
    background: #fff;
    resize: none;
    overflow: hidden;
    min-height: 60px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.eg-general-notes-field:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.15);
}

.eg-general-notes-field::placeholder {
    color: #999;
    font-style: italic;
}

.eg-list__status {
    font-size: 12px;
    font-style: italic;
    color: #e74c3c;
    margin-top: 0.25rem;
}

/* ===== CONTROLS - Compact Buttons ===== */
.eg-list__controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Secondary actions - text link style */
.eg-list__clear-checked,
.eg-list__clear-all,
.eg-list__email-list {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0f4c3a;
    font-weight: 500;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    font-family: brandon-grotesque, sans-serif;
    cursor: pointer;
    transition: color 0.2s ease;
    box-shadow: none;
    text-decoration: underline;
    width: auto;
    white-space: nowrap;
}

.eg-list__clear-checked:hover,
.eg-list__clear-all:hover,
.eg-list__email-list:hover,
.eg-list__bulk-remove-wishlist:hover:not(:disabled) {
    color: #0b3a2c;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.eg-list__clear-checked:disabled,
.eg-list__bulk-remove-wishlist:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #9ca3af;
    text-decoration: none;
    background: transparent !important; /* Keep transparent, no gray box */
    border: none !important;
    padding: 0 !important;
}

/* ===== FAVORITES PANEL ===== */
.eg-favorites-panel {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.eg-favorites-panel__column {
    flex: 1;
    min-width: 300px;
}

.eg-panel__remove,
.eg-panel__send {
    background: none;
    border: none;
    color: #87CEEB;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-family: brandon-grotesque, sans-serif;
    transition: color 0.15s ease;
}

.eg-panel__remove:hover,
.eg-panel__send:hover {
    color: #5FA8D3;
    text-decoration: underline;
}

/* ===== LEGEND & INSTRUCTIONS ===== */
.eg-list__intro {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(135, 206, 235, 0.08);
    border-left: 3px solid #87CEEB;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #355060;
    font-family: brandon-grotesque, sans-serif;
    line-height: 1.5;
}

.eg-list__intro-text {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.eg-list__intro-text strong {
    font-weight: 700;
}

.eg-list__intro-link {
    color: #2a8068;
    font-weight: 600;
    text-decoration: none;
}

.eg-list__intro-link:hover,
.eg-list__intro-link:focus-visible {
    text-decoration: underline;
}

.eg-list__instructions {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #cfe4f2;
    border-radius: 6px;
    background: #f6fbff;
    color: #2f4a59;
    font-family: brandon-grotesque, sans-serif;
    line-height: 1.55;
}

.eg-list__instructions--shopping {
    border-color: #b9ddf1;
    background: #f0f8ff;
}

.eg-list__instructions--wishlist {
    border-color: #cfeadf;
    background: #f6fbf7;
}

.eg-list__instructions-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.eg-list__instructions-flow {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-align: center;
    color: #1d5f7a;
}

.eg-list__instructions-legend,
.eg-list__instructions-steps {
    margin: 0 0 0.75rem;
    padding: 0;
}

.eg-list__instructions-legend {
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.eg-list__instructions-steps {
    list-style: decimal;
    margin-left: 1.25rem;
}

.eg-list__instructions-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eg-list__instructions-heart {
    font-size: 1.35rem;
    line-height: 1;
}

.eg-list__instructions-link {
    margin: 0;
}

.eg-list__instructions-link a {
    color: #2a8068;
    font-weight: 600;
}

.eg-list__instructions-link a:hover,
.eg-list__instructions-link a:focus-visible {
    text-decoration: underline;
}

/* ===== BUY AGAIN - Previously Purchased Items ===== */

.eg-buy-again__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.eg-buy-again__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.eg-buy-again__item:hover {
    border-color: #a5ccbc;
    box-shadow: 0 4px 12px rgba(165, 204, 188, 0.2);
    transform: translateY(-2px);
}

.eg-buy-again__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding-right: 1.75rem;
}

.eg-buy-again__title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-family: brandon-grotesque, sans-serif;
}

.eg-buy-again__meta {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    font-family: brandon-grotesque, sans-serif;
}

.eg-buy-again__item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.eg-buy-again__categories {
    color: #4d655e;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ===== FIRST-TIME TOOLTIP FOR NON-LOGGED-IN USERS ===== */
/* Matches existing heart tooltip aesthetic: positioned near the heart they clicked */
.eg-first-time-tooltip {
    position: absolute;
    top: 3.5rem;
    right: 0.5rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.3s ease;
    max-width: 280px;
}

/* In the cart the heart sits in the leftmost column, so push tooltip to the right */
.eg-first-time-tooltip--cart {
    right: auto;
    left: 100%;
    margin-left: 6px;
}

.eg-first-time-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.eg-first-time-tooltip__content {
    background: rgba(76, 175, 80, 0.95); /* Same green as wishlist tooltips */
    color: #ffffff;
    border-radius: 6px; /* Match existing tooltips */
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Match existing tooltips */
}

.eg-first-time-tooltip__content p {
    margin: 0 0 0.4rem 0;
    font-size: 0.75rem; /* Smaller, more subtle like existing */
    line-height: 1.4;
    color: #ffffff;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.eg-first-time-tooltip__content p:last-of-type {
    margin-bottom: 0.6rem;
}

.eg-first-time-tooltip__dismiss {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: brandon-grotesque, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.eg-first-time-tooltip__dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== SAVE BANNER FOR NON-LOGGED-IN USERS ===== */
/* Matches existing tooltip aesthetic but slightly larger for importance */
.eg-save-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateY(-10px);
    opacity: 0;
    z-index: 9998;
    transition: all 0.3s ease;
    max-width: 360px;
}

.eg-save-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.eg-save-banner__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(135, 206, 235, 0.95); /* Sky blue like shopping list tooltips */
    border-radius: 6px; /* Match existing tooltips */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Match existing tooltips */
}

.eg-save-banner__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.eg-save-banner__text {
    flex: 1;
    font-size: 0.75rem; /* Match existing tooltip size */
    font-weight: 600;
    color: #ffffff;
    font-family: brandon-grotesque, sans-serif;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.eg-save-banner__cta {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: brandon-grotesque, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.eg-save-banner__cta:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.eg-save-banner__dismiss {
    padding: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eg-save-banner__dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* List page login reminder banner for logged-out users */
.eg-list-login-reminder {
    background: rgba(215, 237, 230, 0.95);
    border: 2px solid #0f4c3a;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 0 1.5rem 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.eg-list-login-reminder__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eg-list-login-reminder__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.eg-list-login-reminder__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eg-list-login-reminder__text strong {
    color: #0f4c3a;
    font-family: brandon-grotesque, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.eg-list-login-reminder__text span {
    color: #2a5a4a;
    font-size: 0.85rem;
}

.eg-list-login-reminder__cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #0f4c3a;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 999px;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eg-list-login-reminder__cta:hover {
    background: #1a6b52;
    transform: translateY(-1px);
}

.eg-list-login-reminder__login {
    color: #0f4c3a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.eg-list-login-reminder__login:hover {
    color: #1a6b52;
}

.eg-list-login-reminder__dismiss {
    background: none;
    border: none;
    color: #0f4c3a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.eg-list-login-reminder__dismiss:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .eg-first-time-tooltip {
        right: 0;
        left: 0;
        max-width: none;
        margin: 0 0.5rem; /* Add margin on mobile */
    }
    
    .eg-save-banner {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .eg-save-banner__content {
        padding: 0.65rem 0.85rem;
        gap: 0.6rem;
    }
    
    .eg-list-login-reminder {
        padding: 0.85rem 1rem;
        margin: 0 0 1rem 0;
    }
    
    .eg-list-login-reminder__content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .eg-list-login-reminder__text {
        align-items: center;
    }
    
    .eg-list-login-reminder__cta {
        width: 100%;
        max-width: 200px;
    }
    
    .eg-list-login-reminder__dismiss {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ===== RESPONSIVE - Mobile First ===== */
@media (max-width: 768px) {
    .eg-heart {
        top: 6px;
        right: 6px;
    }
    
    /* Product cards */
    .eg-list__item-card {
        flex-direction: column;
    }
    
    .eg-list__item-left {
        width: 100%;
    }
    
    .eg-list__item-image {
        width: 100px;
        height: 100px;
    }
    
    .eg-list__item-actions {
        flex-direction: row;
        justify-content: flex-end; /* Keep right-aligned on all screens */
        align-items: center;
        width: 100%;
        flex-wrap: nowrap; /* Keep buttons in single line to prevent position shifting */
        overflow-x: auto; /* Allow horizontal scroll if needed on very small screens */
    }
    
    /* Don't force buttons full-width on tablets - keep natural size */
    .eg-list__quick-add,
    .eg-panel__send {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .eg-list__item-note-wrapper {
        padding-left: 0;
    }
    
    .eg-list__group h3 {
        font-size: 1.1rem;
    }
    
    .eg-list__controls {
        flex-direction: column;
    }
}

/* Only go full-width on very small screens (400px or less) */
@media (max-width: 400px) {
    /* Toolbar can stack vertically on very small screens */
    .eg-list__toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .eg-list__toolbar-left,
    .eg-list__toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Search stays natural width */
    .eg-list__search {
        width: 100%;
    }
    
    /* Primary buttons can go full-width on tiny screens if needed */
    .eg-list__select-all,
    .eg-list__select-all-wishlist,
    .eg-list__bulk-add-to-cart,
    .eg-list__bulk-add-to-cart-wishlist {
        width: 100%;
        justify-content: center;
    }
    
    /* Secondary text links stay auto-width */
    .eg-list__clear-checked,
    .eg-list__clear-all,
    .eg-list__email-list,
    .eg-list__bulk-remove-wishlist {
        width: auto;
        justify-content: flex-start;
    }
    
    .eg-list__quick-add {
        flex: 1;
        min-width: 120px;
    }
    
    .eg-list__favorites-panel {
        flex-direction: column;
    }
    
    .eg-buy-again__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .eg-heart {
        top: 6px;
        right: 6px;
    }
    
    .eg-list__item label {
        font-size: 0.95rem;
    }
    
    .eg-list__checkbox {
        width: 24px;
        height: 24px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .eg-list__controls,
    .eg-list__remove,
    .eg-heart {
        display: none;
    }
    
    .eg-list__item {
        page-break-inside: avoid;
    }
}

/* Removed old Wishlist Manager button styling - now using text link style defined above */

.eg-wishlist {
    margin-top: 1.5rem;
}

.eg-wishlist__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.eg-wishlist__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eg-wishlist__tab {
    border: 1px solid rgba(16, 19, 38, 0.18);
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #101326;
    cursor: pointer;
    transition: all 0.2s ease;
}

.eg-wishlist__tab:hover,
.eg-wishlist__tab:focus-visible {
    border-color: rgba(22, 112, 95, 0.55);
    color: #0f4c3a;
}

.eg-wishlist__tab.is-active {
    background: linear-gradient(135deg, #c5f1eb, #d8f3e5);
    color: #0f4c3a;
    border-color: rgba(22, 112, 95, 0.65);
}

/* List Management Section */
.eg-wishlist__list-management {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(245, 247, 250, 0.6);
    border: 1px solid rgba(165, 204, 188, 0.3);
    border-radius: 8px;
    margin-top: 0.75rem;
}

.eg-wishlist__management-label {
    font-family: brandon-grotesque, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: #2d5016;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.eg-wishlist__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Base pill button styling - minimal like mega menu */
.eg-wishlist__action {
    border: 1px solid rgba(16, 19, 38, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #2d5016;
    font-family: brandon-grotesque, sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 999px; /* Full pill shape */
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.eg-wishlist__action:hover:not([disabled]):not(.is-disabled),
.eg-wishlist__action:focus-visible {
    background: rgba(215, 237, 230, 0.6);
    border-color: rgba(45, 80, 22, 0.4);
    transform: translateY(-1px);
}

/* Icon styling */
.egf-action-icon {
    font-size: 14px;
    line-height: 1;
}

/* Test Mode Badge */
.eg-test-mode-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 5px;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 3px;
    color: #e65100;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* DELETE button - subtle red styling */
.eg-wishlist__action--delete {
    background: rgba(255, 245, 245, 0.8);
    border-color: rgba(211, 47, 47, 0.3);
    color: #c62828;
}

.eg-wishlist__action--delete:hover:not([disabled]):not(.is-disabled) {
    background: rgba(255, 235, 238, 0.9);
    border-color: rgba(211, 47, 47, 0.5);
    color: #a1281f;
}

.eg-wishlist__action[disabled],
.eg-wishlist__action.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: none;
}

.eg-wishlist__panel {
    display: none;
}

.eg-wishlist__panel.is-active {
    display: block;
}

.eg-wishlist__empty {
    margin: 1rem 0 2rem;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(16, 19, 38, 0.04);
    color: #4c5a63;
    font-style: italic;
}

@media (max-width: 768px) {
    .eg-wishlist__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .eg-wishlist__list-management {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .eg-wishlist__management-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .eg-wishlist__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .eg-list__item-actions .eg-list__move-menu {
        align-self: flex-start;
    }
}

/* ===== FRESH GRIND BADGE IN SHOPPING LIST ===== */
.eg-list__item-badge-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.eg-list__item-badge-container .eg-badge {
    --eg-badge-size: 1.75rem;
}

/* Shopping list fresh grind toggle inherits from product badges CSS */
.eg-badge--fresh-grind-toggle-list {
    cursor: pointer;
    position: relative;
}

.eg-badge--fresh-grind-toggle-list .eg-badge-checkmark {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #4CAF50;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.eg-badge--fresh-grind-toggle-list.selected {
    background: rgba(76, 175, 80, 0.25) !important;
    border-color: rgba(76, 175, 80, 0.6) !important;
}

.eg-badge--fresh-grind-toggle-list.selected .eg-badge-checkmark {
    display: flex;
}

.eg-badge--fresh-grind-toggle-list.selected::after {
    content: attr(data-tooltip-selected);
}

@media (max-width: 768px) {
    .eg-list__item-badge-container .eg-badge {
        --eg-badge-size: 1.5rem;
    }
    
    .eg-badge--fresh-grind-toggle-list .eg-badge-checkmark {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

/* ===== LOGGED-IN TOP BAR QUICK LINKS ===== */
.egf-topbar-quick-link a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.egf-topbar-quick-link a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.45);
    border-radius: 2px;
}
