/* Top-left Custom HTML widget only. Native menu geometry remains untouched. */
.site-header .header-top .top-widgets-left { display: flex; flex-wrap: wrap; align-items: center; column-gap: 18px; row-gap: 0; }
.site-header .header-top .top-widgets-left > .widget:has(.erq-header-widget) { display: inline-flex; float: none; margin: 0; padding: 0; border: 0; }
.site-header .header-top .erq-header-widget { display: inline-flex; align-items: center; width: auto; max-width: 100%; min-height: 42px; margin: 0; padding: 0; background: transparent; }
.site-header .header-top .erq-header-widget .erq-counter { display: inline-flex; align-items: center; min-height: 42px; gap: 7px; color: #ddd !important; font-family: inherit; font-size: 12px; line-height: 1.4; white-space: nowrap; }
.site-header .header-top .erq-header-widget .erq-counter:hover { color: #f5cd24 !important; }
.site-header .header-top .erq-header-widget .erq-counter:focus-visible { outline: 2px solid #f5cd24; outline-offset: -2px; }
.site-header .header-top .erq-header-widget .erq-count { min-width: 23px; min-height: 23px; flex-shrink: 0; background: #f5cd24; color: #181818; }
.site-header .header-top .erq-header-widget svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 768px) {
    .site-header .header-top .top-widgets-left { column-gap: 14px; }
    .site-header .header-top .erq-header-widget,
    .site-header .header-top .erq-header-widget .erq-counter { min-height: 36px; }
}

/* EMALOG product quote-list action: match the comparison navigation button. */
.single-product .summary a.button.erq-list-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #e9edf1;
    color: #20262c;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    text-decoration: none;
}
.single-product .summary a.button.erq-list-link::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4H4v17h16V4h-3M8 2h8v4H8zM8 11h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4H4v17h16V4h-3M8 2h8v4H8zM8 11h8M8 16h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.single-product .summary a.button.erq-list-link:hover {
    background: #dde3e9;
    color: #181c20;
}
.single-product .summary a.button.erq-list-link:focus-visible {
    outline: 2px solid #f5b800;
    outline-offset: 3px;
}

/* EMALOG product actions: equal spacing, icon size and label alignment. */
body.single-product .summary { --emalog-product-action-gap: 10px; }
body.single-product .summary .single-product-meta-wrapper :is(.radwag-add-compare, .radwag-compare-link, button.button.erq-add, a.button.erq-list-link) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 50px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}
body.single-product .summary .single-product-meta-wrapper :is(.radwag-add-compare, .radwag-compare-link, button.button.erq-add, a.button.erq-list-link)::before {
    align-self: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
body.single-product .summary .single-product-meta-wrapper > .radwag-compare-link {
    margin-top: var(--emalog-product-action-gap);
}
body.single-product .summary .single-product-meta-wrapper .radwag-configuration {
    gap: var(--emalog-product-action-gap);
}
body.single-product .summary .single-product-meta-wrapper .erq-add-group {
    row-gap: var(--emalog-product-action-gap);
    column-gap: var(--emalog-product-action-gap);
    margin-bottom: var(--emalog-product-action-gap);
}
body.single-product .summary .single-product-meta-wrapper .erq-add-group > button.button.erq-add::before {
    content: "";
    display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 14h8M12 10v8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zM14 2v6h6M8 14h8M12 10v8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Keep the quantity and the labelled action on one line on narrow phones. */
@media (max-width: 359px) {
    body.single-product .summary .single-product-meta-wrapper .erq-add-group {
        grid-template-columns: 60px minmax(0, 1fr);
    }
    body.single-product .summary .single-product-meta-wrapper .erq-add-group > button.button.erq-add {
        padding-inline: 8px;
    }
}

/* Align the quote-list link with the action beside the quantity input. */
body.single-product .summary { --emalog-product-quantity-width: 80px; }
body.single-product .summary .single-product-meta-wrapper .erq-add-group {
    grid-template-columns: var(--emalog-product-quantity-width) minmax(0, 1fr);
}
body.single-product .summary .single-product-meta-wrapper a.button.erq-list-link {
    width: 100%;
    margin-inline-start: 0;
    padding-left: calc(14px + var(--emalog-product-quantity-width));
}
@media (max-width: 767px) {
    body.single-product .summary { --emalog-product-quantity-width: 72px; }
}
@media (max-width: 359px) {
    body.single-product .summary { --emalog-product-quantity-width: 60px; }
}
