/* Custom Color Dialog */
.web-custom-color-dialog.ui-widget-content {
    border: solid 1px #f7f7f7;
    box-shadow: 2px 2px 2px #ddd;
}
.web-custom-color-dialog.ui-dialog .ui-dialog-titlebar .ui-dialog-title {
    display: none;
}
.web-custom-color-dialog.ui-dialog .ui-button.ui-dialog-titlebar-close {
    margin-top: 0;
    width: 2.4rem;
    height: 2.4rem;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 9;
}
.web-custom-color-dialog.ui-dialog .ui-button.ui-dialog-titlebar-close .ui-icon-closethick {
    width: 100%;
    height: 100%;
    background: url(/templates/images/icons/icon-close-light.svg) no-repeat;
    background-size: 100% 100%;
    margin: 0;
    position: static;
}
.web-custom-color-dialog.ui-dialog .ui-dialog-content.ui-widget-content {
    padding: 0 1.6rem 1.2rem;
}
.web-custom-color-dialog .section-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}
.web-custom-color-dialog .custom-colors-section {
    margin-bottom: 0.8rem;
}
/* Recommaned colors */
.web-custom-color-dialog .color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.web-custom-color-dialog .color-list .color-item {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    overflow: hidden;
    flex-shrink: 0;
}
.web-custom-color-dialog .color-list .color-item.selected {
    border: solid 0.2rem var(--color-primary);
    padding: 0.1rem;
}
.web-custom-color-dialog .color-list .color-item:not(.selected) {
    cursor: pointer;
}
.web-custom-color-dialog .color-list .color-item .color-icon {
    width: 100%;
    height: 100%;
    border-radius: 0.4rem;
}
/* Color Picker */
.web-custom-color-dialog .miniColors-trigger {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0.2rem;
    background: none;
    box-shadow: 0 0 0 1px #7e7e7e;
    border-radius: 0.4rem;
    border: solid 2px #FFFFFF;
}
.web-custom-color-dialog .hex-panel-text {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    text-indent: 0;
    margin-bottom: 0.8rem;
}
.web-custom-color-dialog input.miniColors {
    width: 9.4rem;
    line-height: 2rem;
    padding: 0.6rem;
    border-radius: 0.4rem;
    font-size: 1.6rem;
    color: #000000;
}

.web-custom-color-dialog .miniColors-selector .hex-panel .hex-panel-text {
    font-size: var(--ucd-font-size-xs);
    line-height: var(--ucd-line-height-base);
    font-weight: 700;
    margin-bottom: 8px;
    text-indent: 0;
}
.web-custom-color-dialog .miniColors-selector .hex-panel #customColorPick,
.web-custom-color-dialog .miniColors-selector .hex-panel #textColorPick,
.web-custom-color-dialog .miniColors-selector .hex-panel .ucd-cc-pick-input {
    width: 10.4rem;
    height: 4rem;
    border-radius: var(--ucd-form-ele-border-radius);
}
.web-custom-color-dialog .miniColors-selector .hex-panel .eyedropper {
    display: none;
}

.web-custom-color-dialog .miniColors-selector {
    width: 300px;
}
.web-custom-color-dialog .miniColors-colors {
    width: 270px;
    height: 150px;
    background: url(/scripts/ucd/lib/miniColor/images/gradient_270_150.png) center no-repeat;
}
.web-custom-color-dialog .miniColors-hues {
    height: 150px;
}
.web-custom-color-dialog .custom-colors-operation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.6rem 0;
}
.web-custom-color-dialog .custom-colors-operation .done-button {
    font-size: 1.4rem;
    line-height: 2.4rem;
    padding: 0.8rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: var(--font-weight-regular);
    border-radius: 3.2rem;
    min-width: 16rem;
    text-align: center;
}
/* Mobile */
@media (max-width: 575px) {
    .web-custom-color-dialog.ui-widget-content {
        border: solid 1px #f7f7f7;
        box-shadow: none;
        width: 100vw !important;
        max-width: 100vw;
        position: fixed;
        left: 0 !important;
        top: unset !important;
        bottom: 0;
        border-radius: 0;
    }
    .web-custom-color-dialog.ui-dialog .ui-dialog-titlebar {
        display: none;
    }
    .web-custom-color-dialog.ui-dialog .ui-dialog-content.ui-widget-content {
        padding: 1rem 1.6rem;
    }
    .web-custom-color-dialog .section-title {
        margin-bottom: 1.2rem;
    }
    .web-custom-color-dialog .color_wrapper {
        position: relative;
    }
    .web-custom-color-dialog .miniColors-trigger {
        position: absolute;
        top: 0;
        left: 0;
        width: 3.6rem;
        height: 3.6rem;
        box-shadow: 0 0 0 0.2rem var(--color-primary);
    }
    .web-custom-color-dialog .color_wrapper .miniColors-selector.dependent {
        padding: 0;
        background: none;
        width: 100%;
    }
    .web-custom-color-dialog .miniColors-colors {
        width: 78vw;
        max-width: 320px;
        height: 130px;
        background: url(/scripts/ucd/lib/miniColor/images/gradient_mobile.png) center no-repeat;
    }
    .web-custom-color-dialog .miniColors-hues {
        width: 25px;
        height: 130px;
        float: right;
        margin-left: 0;
        background: url(/scripts/ucd/lib/miniColor/images/rainbow_mobile.png) center no-repeat;
    }
    .web-custom-color-dialog .miniColors-selector .hex-panel {
        margin-bottom: 1rem;
    }
    .web-custom-color-dialog .miniColors-selector .hex-panel .hex-panel-text {
        display: none;
    }
    .web-custom-color-dialog.ui-widget-content .miniColors-selector .miniColors {
        margin-left: 6.4rem;
        width: 12rem;
        height: 4rem;
    }
}