.position-relative {
    width: 100%;
}
.palette-preview {
    position: relative;
    height: 20px;
    display: flex;
    overflow: hidden;
    cursor: pointer;
}
.palette-color {
    flex: 1;
    height: 100%;
}
.dropdown-menu {
    position: absolute;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    border-radius: 4px;
}
.palette-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.palette-item:hover {
    background-color: #f8f9fa;
}
.palette-item.selected {
    background-color: #e3f2fd;
}
.palette-preview-small {
    width: 100%;
    height: 15px;
    display: flex;
    margin: auto 0;
}

/* spectrum UI */
.sp-replacer {
    position: absolute;
}
.sp-cancel {
    display: none;
}

.visualWrap .inputWrap #visualPinShape {
    font-family: Montserrat,Noto Sans KR,Sans-serif,Serif,Material Icons;
}
.visualWrap .inputWrap:has(.arrow-toggle) {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* visualShapePreview 고정 크기 - 크기 바꿀거면 BUFFER_PREVIEW_SCALE 같이 변경 */
.visualShapePreview {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* rangeWrap 줄바꿈 - 절대 위치로 처리 */
.rangeWrap {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    margin-top: 0.8rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* rangeWrap 내부 라벨 스타일 */
.rangeWrap .visualRadiusLabel {
    white-space: nowrap;
    flex-shrink: 0;
    width: auto !important;
}

.rangeWrap span {
    width: auto !important;
}

.rangeWrap .visualRadius {
    flex: 1;
    min-width: 0;
}

.inputWrap:has(.rangeWrap) {
    position: relative;
    margin-bottom: 40px;
}

.visualWrap .phoneNumWrap select {
    width: 100%;
    background: #fff;
    border: 1px solid #E4E4E4;
    font-size: 1.4rem;
    padding: 0.8rem;
}

/* 팔레트 방향 토글 버튼 */
.arrow-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    vertical-align: middle;
    width: 3rem;
    height: 2rem;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background-color: #fff;
}

.arrow-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.arrow-toggle img.active {
    display: block;
}