* {
    box-sizing: border-box;
}

*:active {
    outline: none;
}

*:focus {
    outline: none;
    box-shadow: var(--const-global-focus);
}

input,
button {
    font-family: inherit;
    font-size: inherit;
}

.sr,
.sr button {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap;
}

.hidden,
[hidden] {
    display: none;
}

.invisible {
    visibility: hidden;
}

.q2-element-dropdown {
    display: none;
    position: absolute;
    background-color: var(--app-white);
    color: var(--t-font-color);
    left: 0;
    width: 100%;
    z-index: 100;
    margin-top: 1px;
    box-shadow: var(--app-shadow-1);
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--app-tween-1);
}

.dropdown-open .q2-element-dropdown {
    display: block;
    height: auto;
    overflow: auto;
    opacity: 1;
    visibility: visible;
    margin-bottom: var(--app-scale-2);
}

[alignment='right'] .q2-element-dropdown {
    left: auto;
    right: 0;
}


q2-select {
    display: block;
    margin-top: var(--tct-select-margin-top, var(--app-scale-4, 30px));
    margin-bottom: var(--tct-select-margin-bottom, var(--app-scale-4, 30px));
}

q2-select .q2-select-container {
    position: relative;
    display: block;
}

q2-select .q2-select-container .q2-select-input {
    margin: 0;
}

q2-select .q2-select-container .custom-display-content {
    position: absolute;
    bottom: 0;
    left: calc(var(--tct-scale-2, var(--app-scale-2, 10px)) + 1px);
    height: 44px;
    width: calc(100% - 34px - var(--tct-scale-3, var(--app-scale-3, 15px)));
    overflow: hidden;
    cursor: pointer;
    transition: left var(--tct-tween-2, var(--app-tween-1, 0.2s ease));
}

q2-select .q2-select-container .custom-display-content:not([hidden]) {
    display: flex;
    align-items: center;
}

q2-select .q2-select-container.is-searchable.is-focused .custom-display-content,
q2-select .q2-select-container.is-searchable .custom-display-content:active {
    left: calc(var(--tct-scale-3, var(--app-scale-3, 15px)) + 1px);
}

q2-select .q2-select-container.has-error .custom-display-content {
    width: calc(100% - 68px - var(--tct-scale-3, var(--app-scale-3, 15px)));
}

q2-select .q2-select-container.dropdown-open .q2-select-dropdown {
    overflow-y: auto;
    max-height: 300px;
}

q2-select .q2-select-container .multi-select-header {
    padding: var(--tct-scale-1, var(--app-scale-1, 5px))
        var(--tct-scale-2, var(--app-scale-2, 10px));
}

q2-select .q2-select-container .show-all-options {
    margin-right: var(--tct-scale-1, var(--app-scale-1, 5px));
    margin-left: var(--tct-scale-2, var(--app-scale-2, 10px));
}
