/* 1. Hide the duplicate cart link only in homepage product cards. */
#agape-home .agape-products li.product a.added_to_cart.wc-forward {
    display: none !important;
}

/* 2. Temporary confirmation with accessible status text and cart access. */
.agape-cart-toast[hidden] {
    display: none !important;
}

.agape-cart-toast {
    box-sizing: border-box;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99990;
    width: min(360px, calc(100% - 32px));
    padding: 22px 46px 20px 20px;
    border: 1px solid #dce2ec;
    border-left: 4px solid #d9ae36;
    border-radius: 10px;
    background: #fff;
    color: #0d2342;
    box-shadow: 0 8px 32px rgba(7, 26, 46, .18);
    animation: agape-cart-toast-enter .2s ease-out;
}

body.admin-bar .agape-cart-toast {
    top: 56px;
}

.agape-cart-toast .agape-cart-toast__message {
    margin: 0 0 14px;
    color: #0d2342;
    font: 600 14px/1.5 Arial, sans-serif;
}

.agape-cart-toast button.agape-cart-toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: #0d2342 !important;
    -webkit-text-fill-color: #0d2342;
    font: 400 26px/1 Arial, sans-serif;
    cursor: pointer;
}

.agape-cart-toast a.agape-cart-toast__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #d9ae36;
    border-radius: 7px;
    background: var(--ag-btn-gold, linear-gradient(180deg, #f6d878, #dfa92c)) !important;
    color: #081c35 !important;
    -webkit-text-fill-color: #081c35;
    font: 700 14px/1.4 Arial, sans-serif;
    text-decoration: none;
}

.agape-cart-toast a.agape-cart-toast__link:hover {
    background: var(--ag-btn-gold-hover, linear-gradient(180deg, #ffe39a, #e9b73d)) !important;
}

.agape-cart-toast :focus-visible {
    outline: 3px solid #b1841a;
    outline-offset: 3px;
}

/* 3. Keep the confirmation within the mobile viewport. */
@media (max-width: 700px) {
    .agape-cart-toast { top: 16px; right: 16px; }
    body.admin-bar .agape-cart-toast { top: 62px; }
}

@keyframes agape-cart-toast-enter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .agape-cart-toast { animation: none; }
}
