.ugt-nearby-bin-finder,
.ugt-nearby-bin-finder * {
    box-sizing: border-box;
}

.ugt-nearby-bin-finder {
    width: 100%;
    position: relative;
    font-family: inherit;
    color: var(--ugt-nbf-panel-text, #111827);
}

.ugt-nbf-search {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0;
}

.ugt-nbf-search-icon {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8dee8;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 18px;
    line-height: 1;
}

.ugt-nbf-search-input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    border: 1px solid #d8dee8 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 46px !important;
    box-shadow: none !important;
    outline: none !important;
}

.ugt-nbf-search-input:focus {
    border-color: #c9d2df !important;
}

.ugt-nbf-search-btn,
.ugt-nbf-current-btn {
    height: 46px;
    min-height: 46px;
    border: 0 !important;
    border-radius: 8px;
    padding: 0 22px;
    margin-left: 10px;
    background: var(--ugt-nbf-button, #e0af3b) !important;
    color: var(--ugt-nbf-button-text, #111111) !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(224, 175, 59, .22);
    transition: transform .18s ease, filter .18s ease;
}

.ugt-nbf-current-btn {
    background: var(--ugt-nbf-primary, #4b1296) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(75, 18, 150, .18);
}

.ugt-nbf-search-btn:hover,
.ugt-nbf-search-btn:focus,
.ugt-nbf-current-btn:hover,
.ugt-nbf-current-btn:focus {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.ugt-nbf-map {
    width: 100%;
    height: var(--ugt-nbf-height, 520px);
    min-height: var(--ugt-nbf-height, 520px);
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    border: 1px solid #d8dee8;
}

.ugt-nbf-panel {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 5;
    width: min(680px, calc(100% - 44px));
    background: var(--ugt-nbf-panel-bg, #ffffff);
    color: var(--ugt-nbf-panel-text, #111827);
    border: 1px solid rgba(17, 24, 39, .10);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .12);
    text-align: center;
}

.ugt-nbf-panel.is-hidden {
    display: none;
}

.ugt-nbf-message {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.ugt-nbf-panel.loading .ugt-nbf-message::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border: 2px solid rgba(75, 18, 150, .25);
    border-top-color: var(--ugt-nbf-primary, #4b1296);
    border-radius: 50%;
    vertical-align: -2px;
    animation: ugtNbfSpin .7s linear infinite;
}

@keyframes ugtNbfSpin {
    to { transform: rotate(360deg); }
}

.ugt-nbf-info-window {
    max-width: 280px;
    font-family: inherit;
}


.ugt-nbf-info-title {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.ugt-nbf-info-address {
    margin: 0 0 12px;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.ugt-nbf-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 9px 14px;
    border-radius: 9px;
    background: var(--ugt-nbf-primary, #4b1296);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.ugt-nbf-no-api {
    height: 100%;
    min-height: var(--ugt-nbf-height, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff8e1;
    color: #5f4700;
    font-weight: 700;
    text-align: center;
}

.ugt-nearby-bin-finder .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .ugt-nbf-search {
        max-width: 100%;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        row-gap: 10px;
    }

    .ugt-nbf-current-btn {
        grid-column: 1 / -1;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .ugt-nbf-search {
        margin-bottom: 16px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .ugt-nbf-search-btn,
    .ugt-nbf-current-btn {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
    }

    .ugt-nbf-search-icon,
    .ugt-nbf-search-input,
    .ugt-nbf-search-btn,
    .ugt-nbf-current-btn {
        height: 44px;
        min-height: 44px;
    }

    .ugt-nbf-map {
        height: var(--ugt-nbf-mobile-height, 380px);
        min-height: var(--ugt-nbf-mobile-height, 380px);
        border-radius: 10px;
    }

    .ugt-nbf-panel {
        width: calc(100% - 24px);
        bottom: 12px;
        padding: 13px;
    }

    .ugt-nbf-message {
        font-size: 14px;
    }

    .ugt-nbf-no-api {
        min-height: var(--ugt-nbf-mobile-height, 380px);
    }
}

.ugt-nbf-input-wrap {
    position: relative;
    width: 100%;
}

.ugt-nbf-input-wrap .ugt-nbf-search-input {
    display: block;
}

.ugt-nbf-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    box-shadow: 0 16px 35px rgba(17, 24, 39, .14);
    overflow: hidden;
}

.ugt-nbf-suggestions.is-open {
    display: block;
}

.ugt-nbf-suggestion-item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.ugt-nbf-suggestion-item:last-child {
    border-bottom: 0;
}

.ugt-nbf-suggestion-item:hover,
.ugt-nbf-suggestion-item:focus {
    background: #f7f7fb;
    outline: none;
}
