.oh-tag-selector {
    --oh-tag-popup-width: min(340px, calc(100vw - 24px));
    position: relative;
    flex: 0 1 340px;
    width: min(340px, 100%);
    min-width: 180px;
    color: #1b2230;
    font-family: inherit;
}

.etiket-secici {
    position: relative;
    width: min(360px, 100%);
    min-width: 180px;
}

.etiket-secici .etiket-secici-alan {
    display: flex;
    min-height: 34px;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 0;
    padding: 4px 8px;
    border: 1px solid #d5dae1;
    border-radius: 4px;
    background: #fff;
    cursor: text;
}

.etiket-secici .etiket-secici-alan:focus-within {
    border-color: #a51c2b;
    outline: 2px solid color-mix(in srgb, #a51c2b 22%, transparent);
    outline-offset: 1px;
}

.etiket-secici .etiket-secici-deger {
    color: inherit;
    font-size: 13px;
    white-space: pre;
}

.etiket-secici .etiket-secici-input {
    flex: 1 1 70px;
    min-width: 70px;
    width: 100%;
    height: 22px;
    padding: 0 2px;
    border: 0;
    outline: 0;
    color: #1b2230;
    background: transparent;
    font: inherit;
}

.etiket-secici .etiket-secici-input::placeholder {
    color: #7a8391;
}

.etiket-secici .etiket-secici-temizle {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: #5b6475;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

.etiket-secici .etiket-secici-liste {
    position: absolute;
    z-index: 1050;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #d5dae1;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 20px rgb(27 34 48 / 16%);
}

.etiket-secici .etiket-secici-sonuc {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    text-align: left;
}

.etiket-secici .etiket-secici-sonuc:hover,
.etiket-secici .etiket-secici-sonuc-odakli {
    background: #f8e9ec;
}

.etiket-secici .etiket-secici-isaret {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.etiket-secici .etiket-secici-sonuc-adi {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.etiket-secici .etiket-secici-sonuc-kodu {
    color: #5b6475;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
}

.etiket-secici .etiket-secici-secildi {
    color: #a51c2b;
    font-weight: 600;
}

.etiket-secici .etiket-secici-bilgi {
    padding: 10px;
    color: #5b6475;
    font-size: 13px;
}

.oh-tag-field {
    display: flex;
    min-height: 40px;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid #d5dae1;
    border-radius: 9px;
    background: #fff;
    cursor: text;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.oh-tag-field::-webkit-scrollbar {
    display: none;
}

.oh-tag-selector:focus-within .oh-tag-field,
.oh-tag-selector:has(.oh-tag-popup) .oh-tag-field {
    border-color: #a51c2b;
    box-shadow: 0 0 0 3px #f8e9ec;
}

.oh-tag-label {
    flex: 0 0 auto;
    color: #8a93a3;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    white-space: nowrap;
}

.oh-tag-empty {
    flex: 1 1 auto;
    color: #8a93a3;
    font-size: 12px;
}

.oh-tag-chip {
    display: inline-flex;
    min-width: 0;
    max-width: none;
    flex: 0 1 auto;
    height: 26px;
    align-items: center;
    gap: 6px;
    padding: 0 4px 0 9px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--oh-tag-color) 12%, #fff);
    color: color-mix(in srgb, var(--oh-tag-color) 72%, #1b2230);
    font-size: 12.5px;
    font-weight: 500;
}

.oh-tag-chip-dot,
.oh-tag-option-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oh-tag-color, #a51c2b);
}

.oh-tag-chip-name {
    flex: 0 0 auto;
    white-space: nowrap;
}

.oh-tag-chip-remove {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
}

.oh-tag-chip:hover .oh-tag-chip-remove,
.oh-tag-chip:focus-within .oh-tag-chip-remove {
    opacity: 1;
    pointer-events: auto;
}

.oh-tag-add {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 26px;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
    border: 1px dashed #c5cbd5;
    border-radius: 13px;
    background: #fff;
    color: #a51c2b;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.oh-tag-add:hover {
    background: #f6f7f9;
}

.oh-tag-add-icon {
    font-size: 11px;
    line-height: 1;
}

.oh-tag-search-input,
.oh-tag-search-icon {
    display: none;
}

.oh-tag-search-input {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    display: block;
    width: 1px;
    min-width: 0;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.oh-tag-selector:has(.oh-tag-popup) .oh-tag-search-input {
    position: absolute;
    z-index: 1052;
    top: calc(100% + 13px);
    right: 10px;
    left: auto;
    display: block;
    width: calc(var(--oh-tag-popup-width) - 20px);
    height: 34px;
    min-width: 0;
    padding: 0 9px 0 32px;
    border: 1px solid #d5dae1;
    border-radius: 6px;
    background: #fff;
    color: #1b2230;
    font: inherit;
    opacity: 1;
    pointer-events: auto;
    box-sizing: border-box;
}

.oh-tag-selector:has(.oh-tag-popup) .oh-tag-search-icon {
    position: absolute;
    z-index: 1053;
    top: calc(100% + 23px);
    left: calc(100% - var(--oh-tag-popup-width) + 18px);
    display: inline-block;
    color: #a51c2b;
    pointer-events: none;
}

.oh-tag-popup {
    position: absolute;
    z-index: 1051;
    top: calc(100% + 6px);
    right: 0;
    width: var(--oh-tag-popup-width);
    overflow: hidden;
    padding: 44px 6px 6px;
    border: 1px solid #d5dae1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(14, 39, 64, .22);
}

.oh-tag-options {
    max-height: 240px;
    overflow-y: auto;
}

.oh-tag-option {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1b2230;
    cursor: pointer;
    text-align: left;
}

.oh-tag-option:hover {
    background: #f6f7f9;
}

.oh-tag-option-focused {
    background: #f8e9ec;
}

.oh-tag-checkbox {
    display: inline-flex;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b7bec9;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.oh-tag-option[aria-selected="true"] .oh-tag-checkbox,
.oh-tag-option .oh-tag-checkbox-selected {
    border-color: #a51c2b;
    background: #a51c2b;
    color: #fff;
}

.oh-tag-option-dot {
    flex-basis: 10px;
    width: 10px;
    height: 10px;
}

.oh-tag-option-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oh-tag-match {
    background: #ffe76a;
    color: inherit;
}

.oh-tag-code {
    flex: 0 0 auto;
    color: #8a93a3;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
}

.oh-tag-info {
    min-height: 40px;
    padding: 10px 8px;
    color: #737d8c;
    font-size: 13px;
}

.oh-tag-footer {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding: 6px 2px 0;
    border-top: 1px solid #eef0f3;
    background: #fbfbfc;
    color: #737d8c;
    font-size: 12px;
}

.oh-tag-footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.oh-tag-clear,
.oh-tag-done {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d5dae1;
    border-radius: 6px;
    background: #fff;
    color: #a51c2b;
    cursor: pointer;
    font-size: 12px;
}

.oh-tag-done {
    border-color: #a51c2b;
    background: #a51c2b;
    color: #fff;
}

.oh-tag-selector button:focus {
    outline: none;
}

.oh-tag-selector button:focus-visible,
.oh-tag-selector input:focus-visible {
    outline: 2px solid #a51c2b;
    outline-offset: 1px;
}

@media (max-width: 700px) {
    .oh-tag-selector {
        flex-basis: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .etiket-secici {
        width: 100%;
    }
}
