.rdc-trigger {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    background: #e0e3ff;
    color: #4450ff;
    font-family: Inter Variable, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease;
}

.rdc-trigger:hover {
    background: #d2d7ff;
}

.rdc-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
}

.rdc-overlay[hidden] {
    display: none !important;
}

.rdc-modal {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(86vh, 720px);
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
    font-family: Inter Variable, sans-serif;
}

.rdc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rdc-title {
    margin: 0;
    font-family: obviously-variable, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #191919;
    line-height: 1.25;
}

.rdc-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #191919;
    cursor: pointer;
}

.rdc-close:hover {
    background: #f2f2f2;
}

.rdc-search {
    position: relative;
    margin-top: 18px;
}

.rdc-search-input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    color: #191919;
    background: #fff;
}

.rdc-search-input:focus {
    outline: none;
    border-color: #4450ff;
}

.rdc-search-input::-webkit-search-cancel-button,
.rdc-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.rdc-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #717171;
    pointer-events: none;
}

.rdc-search-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #717171;
    cursor: pointer;
}

.rdc-search-clear:hover {
    background: #f2f2f2;
    color: #191919;
}

.rdc-search.is-filled .rdc-search-icon {
    display: none;
}

.rdc-search.is-filled .rdc-search-clear {
    display: inline-flex;
}

.rdc-body {
    flex: 1;
    min-height: 120px;
    margin-top: 8px;
    overflow-y: auto;
}

.rdc-brand {
    border-bottom: 1px solid #f0f0f0;
}

.rdc-brand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 4px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #191919;
    text-align: left;
    cursor: pointer;
}

.rdc-brand-toggle svg {
    flex-shrink: 0;
    color: #717171;
    transition: transform .18s ease;
}

.rdc-brand.is-open .rdc-brand-toggle svg {
    transform: rotate(180deg);
}

.rdc-brand-panel {
    padding: 0 4px 16px;
}

.rdc-brand-panel[hidden] {
    display: none;
}

.rdc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rdc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f7ed;
    color: #14663a;
    font-size: 13px;
    line-height: 1.3;
}

.rdc-chip svg {
    flex-shrink: 0;
    color: #1a9a52;
}

.rdc-see-all {
    margin-top: 12px;
    padding: 0;
    border: none;
    background: transparent;
    color: #4450ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.rdc-result-group {
    margin-bottom: 18px;
}

.rdc-result-brand {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #717171;
}

.rdc-empty {
    padding: 24px 4px;
    font-size: 14px;
    color: #717171;
}

.rdc-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 10px 12px;
    border: 1px solid #f5c86b;
    border-radius: 8px;
    background: #fff8e8;
    color: #8a5a00;
    font-size: 12.5px;
    line-height: 1.35;
}

.rdc-notice svg {
    flex-shrink: 0;
    color: #e09b16;
}

@media (max-width: 640px) {
    .rdc-overlay {
        padding: 0;
    }

    .rdc-modal {
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 20px 16px;
    }

    .rdc-title {
        font-size: 19px;
    }
}
