.unlock_addon_header_search {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.unlock_addon_search_inline {
    width: 100%;
}

.unlock_addon_search_form {
    width: 100%;
}

#unlockafe-search-a3536ad-input {
    margin-left: -10px;
}

.unlock_addon_search_field_group {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 17, 21, 0.1);
    border-radius: 999px;
    padding: 10px 12px 10px 18px;
    box-shadow: 0 10px 30px rgba(15, 17, 21, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.unlock_addon_search_field_group:focus-within {
    border-color: #0f1115;
    box-shadow: 0 10px 35px rgba(15, 17, 21, 0.18);
}

.unlock_addon_search_icon {
    color: #6f6f72;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.unlock_addon_search_field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #0f1115;
    padding: 8px 0;
}

.unlock_addon_search_field:focus {
    outline: none;
}

.unlock_addon_search_field::placeholder {
    color: #9fa0a6;
}

.unlock_addon_search_submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    background: #0f1115;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unlock_addon_search_submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 17, 21, 0.25);
}

.unlock_addon_search_toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(15, 17, 21, 0.12);
    border-radius: 999px;
    padding: 10px 18px;
    background: #ffffff;
    color: #0f1115;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unlock_addon_search_toggle:hover {
    background: #0f1115;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(15, 17, 21, 0.25);
}

/* Layout-3: Icon only – no label, compact toggle */
.unlock_addon_header_search_layout-3 .unlock_addon_search_toggle.unlock_addon_search_toggle_icon_only {
    padding: 10px 14px;
    min-width: auto;
}
.unlock_addon_header_search_layout-3 .unlock_addon_search_toggle.unlock_addon_search_toggle_icon_only .unlock_addon_search_toggle_icon {
    margin: 0;
}

.unlock_addon_search_panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
}

.unlock_addon_search_panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.unlock_addon_search_panel_inner {
    width: 100%;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    padding: 32px;
    padding-top: 48px; /* Extra padding at top for close button */
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(15, 17, 21, 0.25);
    position: relative;
    overflow: visible; /* Ensure close button is not clipped */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Popup options list (layout-3) */
.unlock_addon_search_panel_options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.unlock_addon_search_option {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid rgba(15, 17, 21, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #0f1115;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.unlock_addon_search_option:hover {
    background: rgba(15, 17, 21, 0.06);
    border-color: rgba(15, 17, 21, 0.2);
}
.unlock_addon_search_option.is-active {
    background: #0f1115;
    color: #ffffff;
    border-color: transparent;
}
.unlock_addon_search_form_options_popup {
    margin-top: 0;
}

/* Popup animation modifiers */
.unlock_addon_search_panel--none {
    transition: none;
}
.unlock_addon_search_panel--none .unlock_addon_search_panel_inner {
    transition: none;
}
.unlock_addon_search_panel--slide-down .unlock_addon_search_panel_inner {
    transform: translateY(-24px);
}
.unlock_addon_search_panel--slide-down.is-open .unlock_addon_search_panel_inner {
    transform: translateY(0);
}
.unlock_addon_search_panel--slide-up .unlock_addon_search_panel_inner {
    transform: translateY(24px);
}
.unlock_addon_search_panel--slide-up.is-open .unlock_addon_search_panel_inner {
    transform: translateY(0);
}
.unlock_addon_search_panel--zoom-in .unlock_addon_search_panel_inner {
    transform: scale(0.95);
}
.unlock_addon_search_panel--zoom-in.is-open .unlock_addon_search_panel_inner {
    transform: scale(1);
}
.unlock_addon_search_panel--zoom-out .unlock_addon_search_panel_inner {
    transform: scale(1.05);
}
.unlock_addon_search_panel--zoom-out.is-open .unlock_addon_search_panel_inner {
    transform: scale(1);
}
.unlock_addon_search_panel--fade .unlock_addon_search_panel_inner {
    /* Fade uses panel opacity only; no extra transform */
}

.unlock_addon_search_close {
    position: absolute;
    top: 5px;
    right: 29px;
    background: none;
    border: none;
    font-size: 20px;
    color: #0f1115;
    cursor: pointer;
    z-index: 10001;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* border-radius: 50%; */
    transition: all 0.2s ease;
}

.unlock_addon_search_close:hover {
    background: none;
    color:black;
}

.unlock_addon_search_close i {
    display: block;
    line-height: 1;
}

.unlock_addon_search_overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 20, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
}

.unlock_addon_search_overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.unlock_addon_search_open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .unlock_addon_search_field_group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 16px;
    }

    .unlock_addon_search_submit {
        width: 100%;
        justify-content: center;
    }

    .unlock_addon_search_panel_inner {
        margin: 0 16px;
        padding: 24px 18px 28px;
        padding-top: 48px; /* Extra padding at top for close button on mobile */
    }

    .unlock_addon_search_close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .unlock_addon_search_toggle {
        width: 100%;
        justify-content: center;
    }
}



