/**
 * File: assets/css/frontend/header-widgets/widgets-part2.css
 * Purpose: Split piece of a larger source file (1.0.191 file-size programme; cascade/build order unchanged). Continuation part 2 of assets/css/frontend/header-widgets/widgets.css (split for the 300-line standard; cascade order is preserved by the enqueue chain).
 * Scope: Same feature scope as the source file named in the provenance line; not a standalone design source.
 * Package: HyperDAF Engine
 */
.hdf-header-widget-button--primary:hover,
.hdf-header-widget-button--primary:focus-visible,
.hdf-header-widget-empty a:hover,
.hdf-header-widget-empty a:focus-visible {
    border-color: var(--hdf-engine-color-primary-hover, var(--hdf-engine-color-primary-strong));
    background: var(--hdf-engine-color-primary-hover, var(--hdf-engine-color-primary-strong));
    color: var(--hdf-engine-color-surface);
}

.hdf-header-widget-empty {
    display: grid;
    justify-items: start;
    text-align: left;
}

.hdf-header-widget-empty p {
    max-width: 32ch;
    margin: 0 0 .8rem;
    color: var(--hdf-engine-color-text-muted, var(--hdf-engine-color-text-muted));
    line-height: 1.5;
}

.hdf-header-widget-empty .hdf-header-widget-button {
    min-width: 8.5rem;
    justify-self: start;
}

.hdf-header-widget-clear {
    padding: .65rem var(--hdf-widget-pad);
    text-align: right;
}

.hdf-header-widget-clear button {
    border: 0;
    background: transparent;
    color: var(--hdf-engine-color-danger);
    cursor: pointer;
    font-weight: 600;
}

.hdf-header-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hdf-engine-color-border, var(--hdf-engine-color-border));
}

.hdf-product-list-actions,
.hdf-single-product-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hdf-product-list-actions {
    position: absolute;
    z-index: 3;
    top: .65rem;
    right: .65rem;
}

.hdf-product-list-action {
    margin: 0;
}

.hdf-product-list-action__button {
    display: inline-flex;
    min-width: 2.35rem;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .5rem;
    border: 1px solid var(--hdf-engine-color-border, var(--hdf-engine-color-border));
    border-radius: .55rem;
    background: rgba(255, 255, 255, .94);
    color: var(--hdf-engine-color-text-primary, var(--hdf-engine-color-text));
    cursor: pointer;
    box-shadow: none;
}

.hdf-product-list-action__button svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
}

.hdf-product-list-action__button.is-active {
    border-color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    background: var(--hdf-engine-color-surface-selected);
    color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
}

.hdf-product-list-actions .hdf-product-list-action__button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.hdf-single-product-list-actions {
    margin-top: .75rem;
}

.hdf-single-product-list-actions .hdf-product-list-action__button {
    background: var(--hdf-engine-color-surface, var(--hdf-engine-color-surface));
    box-shadow: none;
}

@media (max-width: 520px) {
    .hdf-header-account-actions,
    .hdf-header-cart-actions {
        grid-template-columns: 1fr;
    }
}

/* Global catalogue-card placement; header dropdown list actions retain their own rules above. */
.hdf-product-card .hdf-product-list-actions {
    position: absolute;
    left: .85rem;
    right: auto;
    top: auto;
    bottom: .85rem;
    z-index: 3;
    display: flex;
    gap: .45rem;
}

.hdf-product-card .hdf-product-list-actions form {
    margin: 0;
}

.hdf-product-card .hdf-product-list-actions button {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(17, 24, 39, .13);
    border-radius: var(--hdf-engine-radius-pill);
    background: var(--hdf-engine-color-surface);
    box-shadow: none;
    color: var(--hdf-engine-color-text);
    cursor: pointer;
}

.hdf-product-card .hdf-product-list-actions button:hover,
.hdf-product-card .hdf-product-list-actions button:focus-visible,
.hdf-product-card .hdf-product-list-actions button.is-active {
    border-color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
    color: var(--hdf-engine-color-primary-strong, var(--hdf-engine-color-primary-strong));
}

.hdf-product-card .hdf-product-list-actions button span:not([aria-hidden]) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}


/* Native HyperDAF header action icon family supplied by Engine feature owners. */
.hdf-header-action__button .hdf-engine-icon--header {
    display: block;
    width: calc(var(--hdf-component-header-action-icon-size) * .86);
    height: calc(var(--hdf-component-header-action-icon-size) * .86);
    overflow: visible;
    color: currentColor;
    opacity: .8;
    transform: translateZ(0);
    transition:
        opacity var(--hdf-motion-duration-fast, 160ms) var(--hdf-motion-easing-standard, ease),
        transform var(--hdf-motion-duration-fast, 160ms) var(--hdf-motion-easing-standard, ease);
}

.hdf-header-action__button:hover .hdf-engine-icon--header,
.hdf-header-action__button:focus-visible .hdf-engine-icon--header,
.hdf-header-action__button[aria-expanded="true"] .hdf-engine-icon--header {
    opacity: 1;
    transform: scale(1.035);
}

.hdf-header-action__button .hdf-engine-icon--header-notification {
    width: calc(var(--hdf-component-header-action-icon-size) * .8);
    height: calc(var(--hdf-component-header-action-icon-size) * .8);
}

.hdf-header-action__button .hdf-engine-icon--header-account,
.hdf-header-action__button .hdf-engine-icon--header-favorite,
.hdf-header-action__button .hdf-engine-icon--header-favorite-active {
    width: calc(var(--hdf-component-header-action-icon-size) * .84);
    height: calc(var(--hdf-component-header-action-icon-size) * .84);
}

.hdf-header-action__button .hdf-engine-icon--header-cart {
    width: calc(var(--hdf-component-header-action-icon-size) * .88);
    height: calc(var(--hdf-component-header-action-icon-size) * .84);
}

.hdf-header-action__button .hdf-engine-icon--header-collections {
    width: calc(var(--hdf-component-header-action-icon-size) * .9);
    height: calc(var(--hdf-component-header-action-icon-size) * .9);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.hdf-header-action__button .hdf-engine-icon--header-favorite-active {
    color: var(--hdf-engine-color-primary-strong, currentColor);
    opacity: .9;
}

