.qwff-wrap,
.qwff-wrap *,
.qwff-wrap *::before,
.qwff-wrap *::after {
    box-sizing: border-box;
}

.qwff-wrap {
    --qwff-tab-active-bg: #ff9518;
    --qwff-tab-active-text: #ffffff;
    --qwff-button-bg: #ff9518;
    --qwff-button-hover-bg: #ef8610;
    --qwff-button-text: #ffffff;
    --qwff-white: #ffffff;
    --qwff-text: #111111;
    --qwff-field-text: #111111;
    --qwff-placeholder: #111111;
    --qwff-border: #dedede;
    --qwff-focus-border: #b7b7b7;
    --qwff-field-bg: #fbfbfb;
    --qwff-field-height: 55px;
    --qwff-button-width: 180px;
    --qwff-gap: 12px;
    --qwff-max-width: 1034px;
    --qwff-tab-height: 52px;
    --qwff-radius: 8px;
    width: calc(100% - 36px);
    max-width: var(--qwff-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 10;
    color: var(--qwff-text);
    font-family: inherit;
    container-type: inline-size;
}

.qwff-wrap button,
.qwff-wrap select {
    font-family: inherit;
}

.qwff-tabs {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    max-width: 100%;
    border-radius: var(--qwff-radius) var(--qwff-radius) 0 0;
    vertical-align: bottom;
}

.qwff-wrap .qwff-tab {
    min-width: 116px;
    min-height: var(--qwff-tab-height);
    height: var(--qwff-tab-height);
    margin: 0;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: var(--qwff-white);
    color: var(--qwff-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .2s ease, color .2s ease;
}

.qwff-wrap .qwff-tab:hover,
.qwff-wrap .qwff-tab:focus,
.qwff-wrap .qwff-tab.is-active {
    border: 0;
    background: var(--qwff-tab-active-bg);
    color: var(--qwff-tab-active-text);
    box-shadow: none;
}

.qwff-wrap .qwff-tab:focus-visible,
.qwff-wrap .qwff-search:focus-visible,
.qwff-wrap .qwff-select:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.qwff-tab-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
}

.qwff-panel-shell {
    min-height: 96px;
    padding: 20px 24px;
    position: relative;
    background: var(--qwff-white);
    border-radius: 0 var(--qwff-radius) var(--qwff-radius) var(--qwff-radius);
    box-shadow: 0 3px 3px rgba(0, 0, 0, .18);
}

.qwff-panel {
    width: 100%;
    min-width: 0;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(120px, var(--qwff-button-width));
    align-items: center;
    column-gap: var(--qwff-gap);
    row-gap: var(--qwff-gap);
}

.qwff-panel.is-active {
    display: grid;
}

.qwff-field {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.qwff-wrap .qwff-select {
    width: 100%;
    min-width: 0;
    min-height: var(--qwff-field-height);
    height: var(--qwff-field-height);
    margin: 0;
    padding: 0 50px 0 24px;
    border: 1px solid var(--qwff-border);
    border-radius: 3px;
    background-color: var(--qwff-field-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 25px center;
    background-size: 10px 7px;
    color: var(--qwff-field-text);
    font-size: 15px;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    text-indent: 0;
    text-transform: none;
    box-shadow: none;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.qwff-wrap .qwff-select.qwff-is-placeholder {
    color: var(--qwff-placeholder);
}

.qwff-wrap .qwff-select option {
    color: var(--qwff-field-text);
    background: var(--qwff-white);
}

.qwff-wrap .qwff-select:hover,
.qwff-wrap .qwff-select:focus {
    border-color: var(--qwff-focus-border);
    background-color: var(--qwff-white);
    box-shadow: none;
}

.qwff-wrap .qwff-select:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.qwff-wrap .qwff-select.qwff-invalid {
    border-color: #d63638;
}

.qwff-wrap .qwff-search {
    width: 100%;
    min-width: 0;
    min-height: var(--qwff-field-height);
    height: var(--qwff-field-height);
    margin: 0;
    padding: 0 22px;
    border: 1px solid var(--qwff-button-bg);
    border-radius: 3px;
    background: var(--qwff-button-bg);
    color: var(--qwff-button-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .2px;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.qwff-wrap .qwff-search:hover,
.qwff-wrap .qwff-search:focus {
    border-color: var(--qwff-button-hover-bg);
    background: var(--qwff-button-hover-bg);
    color: var(--qwff-button-text);
    box-shadow: none;
}

.qwff-wrap .qwff-search:active {
    transform: translateY(1px);
}

.qwff-status {
    display: none;
    grid-column: 1 / -1;
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.35;
}

.qwff-status:not(:empty) {
    display: block;
}

.qwff-status.is-error {
    color: #b42318;
}

.qwff-panel.is-loading .qwff-select {
    cursor: progress;
}

.qwff-admin-message {
    padding: 12px 16px;
    border-left: 4px solid #d63638;
    background: #fff;
}

@container (max-width: 850px) {
    .qwff-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 560px) {
    .qwff-wrap {
        width: 100%;
    }

    .qwff-tabs {
        width: 100%;
    }

    .qwff-wrap .qwff-tab {
        width: 50%;
        min-width: 0;
        padding-right: 12px;
        padding-left: 12px;
    }

    .qwff-panel-shell {
        padding: 16px;
        border-radius: 0 0 var(--qwff-radius) var(--qwff-radius);
    }

    .qwff-panel {
        grid-template-columns: 1fr;
    }

    .qwff-wrap .qwff-select,
    .qwff-wrap .qwff-search {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .qwff-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .qwff-wrap {
        width: calc(100% - 24px);
    }

    .qwff-tabs {
        width: 100%;
    }

    .qwff-wrap .qwff-tab {
        width: 50%;
        min-width: 0;
        padding-right: 12px;
        padding-left: 12px;
    }

    .qwff-panel-shell {
        padding: 16px;
        border-radius: 0 0 var(--qwff-radius) var(--qwff-radius);
    }

    .qwff-panel {
        grid-template-columns: 1fr;
    }

    .qwff-wrap .qwff-select,
    .qwff-wrap .qwff-search {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .qwff-wrap {
        width: calc(100% - 16px);
    }

    .qwff-panel-shell {
        padding: 12px;
    }

    .qwff-wrap .qwff-tab {
        gap: 7px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 14px;
    }

    .qwff-tab-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qwff-wrap .qwff-tab,
    .qwff-wrap .qwff-select,
    .qwff-wrap .qwff-search {
        transition: none;
    }
}
