/* Header compare / wishlist / cart — keep icons stable next to search
   Overrides old live inline header search CSS that crushed the icons. */

.tp-header-bottom-right {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.tp-header-search-2 {
    position: relative !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 160px) !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.tp-header-bottom-right > .tp-header-action,
.tp-header-action {
    position: relative !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 5 !important;
    width: auto !important;
    min-width: 110px !important;
}

.tp-header-action .tp-header-action-item {
    position: relative !important;
    flex: 0 0 auto !important;
}

.tp-header-action .tp-header-action-btn {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    border: 0 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    font-size: 20px !important;
    color: inherit !important;
    z-index: 1 !important;
}

.tp-header-action .tp-header-action-btn svg {
    width: auto !important;
    height: auto !important;
    transform: none !important;
}

.tp-header-action .tp-header-action-badge {
    position: absolute !important;
    right: -13px !important;
    top: -6px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    inset: auto -13px auto auto !important;
}

/* Stop search fields from overflowing into the icon area */
.bb-form-wrapper {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
}

.bb-form-wrapper form,
.bb-form-wrapper .header-location-search {
    position: relative !important;
    display: block !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.bb-form-wrapper input[type="text"],
.bb-form-wrapper input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Absolute search icons ONLY inside the search fields — never header actions */
.bb-form-wrapper form > button[type="submit"],
.bb-form-wrapper .header-location-search > button[type="button"] {
    position: absolute !important;
    inset-inline-end: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    background: transparent !important;
    height: auto !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2 !important;
}
