/**
 * File: assets/css/frontend/header-widgets/favorites-widget.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Split from assets/css/frontend/header-widgets/widgets.css (1.0.191, 300-line standard): cascade order is preserved by the enqueue chain; this file holds lines 1021-1329 of the original file, verbatim.
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
/* RC.47 premium Favorites workspace bridge: account-matched width, fixed chrome and bounded product scrolling. */
.hdf-header-action--account,
.hdf-header-action--favorite,
.hdf-header-action--favorites,
.hdf-header-action--wishlist {
    --hdf-engine-compact-widget-width: 22rem;
}

.hdf-header-action--account .hdf-header-action__widget,
.hdf-header-action--favorite .hdf-header-action__widget,
.hdf-header-action--favorites .hdf-header-action__widget,
.hdf-header-action--wishlist .hdf-header-action__widget {
    width: min(var(--hdf-engine-compact-widget-width), calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--hdf-engine-color-border-strong, var(--hdf-engine-color-border));
    border-radius: 14px;
    background: var(--hdf-engine-color-surface);
    box-shadow: none;
}

.hdf-header-favorites-panel {
    display: grid;
    width: min(var(--hdf-engine-compact-widget-width, 22rem), calc(100vw - 2rem));
    max-height: min(31rem, calc(100vh - 7rem));
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-top: 3px solid var(--hdf-engine-color-primary-strong);
    background: var(--hdf-engine-color-surface);
    color: var(--hdf-engine-color-text);
}

.hdf-header-favorites-head {
    display: grid;
    min-height: 70px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--hdf-engine-color-border);
    background: var(--hdf-engine-color-surface-subtle);
}

.hdf-header-favorites-head__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--hdf-engine-color-primary-strong) 28%, var(--hdf-engine-color-border));
    border-radius: 11px;
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong);
}

.hdf-header-favorites-head__icon .hdf-engine-icon {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.hdf-header-favorites-head strong,
.hdf-header-favorites-head small {
    display: block;
    min-width: 0;
}

.hdf-header-favorites-head strong {
    overflow: hidden;
    color: var(--hdf-engine-color-text);
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdf-header-favorites-head small {
    margin-top: 3px;
    color: var(--hdf-engine-color-text-muted);
    font-size: .72rem;
    line-height: 1.3;
}

.hdf-header-favorites-head__count {
    display: grid;
    min-width: 29px;
    height: 29px;
    place-items: center;
    padding: 0 7px;
    border-radius: var(--hdf-engine-radius-pill);
    background: var(--hdf-engine-color-primary-strong);
    color: var(--hdf-engine-color-surface);
    font-size: .75rem;
    font-weight: 800;
}

.hdf-header-favorites-scroll {
    min-height: 0;
    max-height: 20rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.hdf-header-favorites-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hdf-header-favorite-item {
    position: relative;
    display: flex;
    min-height: 70px;
    align-items: center;
    border-bottom: 1px solid var(--hdf-engine-color-border);
    background: var(--hdf-engine-color-surface);
}

.hdf-header-favorite-item:last-child {
    border-bottom: 0;
}

.hdf-header-favorite-item:hover {
    background: var(--hdf-engine-color-surface-subtle);
}

.hdf-header-favorite-item__link {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 8px 10px 14px;
    color: inherit;
    text-decoration: none;
}

.hdf-header-favorite-item .hdf-header-widget-thumb {
    width: 58px;
    height: 42px;
    flex-basis: 58px;
    border: 1px solid var(--hdf-engine-color-border);
    border-radius: 8px;
    object-fit: cover;
}

.hdf-header-favorite-item__copy,
.hdf-header-favorite-item__copy strong,
.hdf-header-favorite-item__copy small {
    display: block;
    min-width: 0;
}

