/* t210u: favourite hearts, popover, account lists, and product packs */

.product-card { position: relative; }
.fav-heart {
    box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; margin: 0;
    border: 0; border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--brand-primary, #1b365d);
    box-shadow: 0 1px 4px rgba(16,24,32,.18);
    cursor: pointer; line-height: 1;
}
.fav-heart .material-icons { font-size: 22px; line-height: 1; }
.fav-heart .fav-heart__on { display: none; color: #c62828; }
.fav-heart.is-on .fav-heart__on { display: inline-block; }
.fav-heart.is-on .fav-heart__off { display: none; }
.fav-heart:hover, .fav-heart:focus-visible { background: #fff; color: #c62828; }
.fav-heart:focus-visible { outline: 2px solid var(--brand-accent, #de1912); outline-offset: 2px; }

.product-card > .fav-heart,
.product-card__media .fav-heart,
.product-card .fav-heart--card {
    position: absolute; top: 8px; right: 8px; z-index: 2;
}
.product__info .fav-heart,
.add-basket__row .fav-heart { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 6px; box-shadow: none; border: 1px solid var(--brand-primary, #1b365d); background: #fff; }
.basket-line { position: relative; }
.basket-line .fav-heart { width: 36px; height: 36px; flex: 0 0 36px; }

.fav-popover {
    position: absolute; z-index: 14000; width: min(280px, calc(100vw - 24px));
    background: #fff; border-radius: 8px; box-shadow: 0 12px 32px rgba(16,24,32,.22);
    padding: 12px;
}
.fav-popover[hidden] { display: none; }
.fav-popover__title { margin: 0 0 8px; font-weight: 700; }
.fav-popover__lists { list-style: none; margin: 0 0 10px; padding: 0; }
.fav-popover__lists li { margin: 0 0 4px; }
.fav-popover__lists label { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.fav-popover__row { display: flex; gap: 6px; align-items: center; }
.fav-popover__row .svb-input { margin: 0; flex: 1; }
.fav-popover__foot { margin: 10px 0 0; font-size: .85rem; }
.fav-popover__msg { margin: 0 0 8px; font-size: .85rem; }
.fav-popover__msg.is-error { color: #8a1c12; }
.fav-popover__msg.is-ok { color: #146c36; }

.fav-signin { position: fixed; inset: 0; z-index: 14000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fav-signin[hidden] { display: none; }
.fav-signin__backdrop { position: absolute; inset: 0; background: rgba(16,24,32,.45); }
.fav-signin__dialog { position: relative; z-index: 1; width: 100%; max-width: 400px; background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 16px 48px rgba(16,24,32,.22); }
.fav-signin__title { margin: 0 0 8px; font-size: 1.15rem; }
.fav-signin__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.fav-toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 15000;
    background: #146c36; color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 600;
    box-shadow: 0 6px 18px rgba(16,24,32,.2);
}
.fav-toast.is-error { background: #8a1c12; }
.fav-toast[hidden] { display: none; }

.fav-default-badge {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: #e8f6ee; color: #146c36; font-size: .75rem; font-weight: 700; vertical-align: middle;
}
.fav-unavailable { margin-top: 4px; color: #5b6673; font-size: .85rem; }
.fav-table tr.is-unavailable, .svb-table tr.is-unavailable { opacity: .7; background: #f6f7f8; }
.fav-qty, .fav-move { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.fav-qty__input, .fav-move .svb-input { width: auto; min-width: 4.5rem; margin: 0; }
.fav-create { margin: 0 0 16px; }
.fav-default-form { margin: 0 0 12px; }
.svb-lead, .svb-meta, .svb-back { color: #5b6673; }
.svb-back { margin: 0 0 8px; }
.print-only { display: none; }

.pack-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pack-card { display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; }
.pack-card__media img { width: 160px; height: 120px; object-fit: contain; background: #fff; }
.pack-card__title { margin: 0 0 6px; }
.pack-card__desc { margin: 0 0 8px; color: #5b6673; }
.pack-card__meta { margin: 0 0 12px; color: #5b6673; }
.pack-detail__head { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 12px; }
.pack-detail__image { width: 200px; height: 150px; object-fit: contain; background: #fff; border: 1px solid #e6e8eb; border-radius: 8px; }
.pack-add { margin-top: 8px; }

.fav-basket-items { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; }
.fav-basket-items li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.fav-basket-items .is-unavailable { color: #8a9299; }

@media (max-width: 700px) {
    .pack-card, .pack-detail__head { flex-direction: column; }
    .pack-card__media img, .pack-detail__image { width: 100%; height: auto; max-height: 180px; }
    .fav-move, .fav-qty { width: 100%; }
    .svb-detail__actions .btn-cta,
    .svb-detail__actions .button { flex: 1 1 calc(50% - 8px); }
}

@media print {
    .no-print, .fav-heart, .fav-popover, .fav-signin, .fav-toast { display: none !important; }
    .print-only { display: inline; }
}

.pack-basket-thumb { width: 64px; height: 48px; object-fit: cover; border: 1px solid #e3e7eb; border-radius: 4px; float: left; margin: 0 10px 6px 0; }
