.nsw-search-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 99999;
}


/* SUURENNUSLASI HEADERISSA */

.nsw-search-toggle {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #ffffff;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.nsw-search-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}


.nsw-search-toggle:active {
    transform: scale(0.94);
}


.nsw-search-toggle svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* HAKUKENTTÄ */

.nsw-search-panel {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 360px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.20);

    overflow: hidden;
}


.nsw-search-panel[hidden] {
    display: none;
}


/* FORM */

.nsw-search-form {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 5px 7px 5px 15px;

    background: #ffffff;
}


/* PIENI HAKUIKONI KENTÄSSÄ */

.nsw-field-icon {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    fill: none;
    stroke: #667085;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* INPUT */

.nsw-search-input {
    flex: 1;

    min-width: 0;

    height: 48px;

    padding: 0 12px;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: #172033;

    font-family: inherit;
    font-size: 15px;

    box-shadow: none !important;
}


.nsw-search-input::placeholder {
    color: #8a94a6;
}


/* X-PAINIKE */

.nsw-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #667085;

    font-size: 25px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
}


.nsw-close:hover {
    background: #f1f3f5;
    color: #172033;
}


/* MOBIILI */

@media (max-width: 767px) {

    .nsw-search-toggle {
        width: 38px;
        height: 38px;
    }

    .nsw-search-toggle svg {
        width: 21px;
        height: 21px;
    }

    .nsw-search-panel {
        width: min(330px, calc(100vw - 30px));
        right: -10px;
    }

}