/* 컬러박스 헤더 */
#color_sidebar .sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 56px;
    padding: 14px 2rem;
}

#color_sidebar .sidebar__header.shadow {
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 5px 0px rgba(117, 145, 181, 0.12);
}

/* 컬러박스 바디 */
#color_sidebar .sidebar__body {
    width: 100%;
    padding: 16px calc(35rem / 16) 82px;
    height: calc((var(--vh, 1vh) * 100) - 56px);
    overflow-y: overlay;
    overflow-x: hidden;
}

#color_sidebar .sidebar__body .body__palette {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
}

#color_sidebar .sidebar__body .color__box {
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px #191f281a;
    border-radius: 16px;
    cursor: pointer;
}

#color_sidebar .sidebar__body .color__box.color_sample {
    width: 56px;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #191f28 inset;
}

#color_sidebar .sidebar__body .body__palette .code_rgb {
    width: calc(100% - 132px);
    height: 56px;
    border-radius: 16px;
    padding-left: 19px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: -0.025em;
}

#color_sidebar .sidebar__body .body__palette .code_rgb:focus {
    box-shadow: 0 0 0 2px #191f28 inset;
}

#color_sidebar .sidebar__body .body__palette .btn_palette {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    box-shadow: 0 0 0 1px #dbdee1 inset;
    padding: 16px;
}

#color_sidebar .sidebar__body .body__palette .btn_palette:hover {
    box-shadow: inset 0 0 0 1px rgb(25 31 40 / 50%);
}

#color_sidebar .sidebar__body .body__palette .btn_palette:active {
    box-shadow: inset 0 0 0 2px #191f28;
}

#color_sidebar .sidebar__body .body__title {
    padding: 0 8px;
}

#color_sidebar .sidebar__body .body__title .title p {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.025em;
    color: #191f28;
}

#color_sidebar .sidebar__body .body__title .sub__title {
    margin-top: 2px;
}

#color_sidebar .sidebar__body .body__title .sub__title p {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: -0.025em;
    color: #76808f;
}

#color_sidebar .body__content .color__box:hover {
    box-shadow: inset 0 0 0 1px rgb(25 31 40 / 50%);
}

/* 색상 팔레트 */
#color_sidebar .sidebar__body .body__content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    row-gap: 0.875rem;
    column-gap: 0.625rem;

    width: calc(390px - (70rem / 16));
    margin-top: 16px;
    align-items: center;
}

#color_sidebar .body__content .color__box.selected {
    box-shadow: 0 0 0 2px #191f28 inset !important;
}

@media (orientation: Portrait) and (max-width: 600px) {
    #color_sidebar .sidebar__body .body__content {
        width: calc(100vw - (70rem / 16));
    }
}
