/* RavexColorPicker — color picker estilo DevTools */

.ravex-color-swatch {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    /*background-image:*/
    /*    linear-gradient(45deg, #ccc 25%, transparent 25%),*/
    /*    linear-gradient(-45deg, #ccc 25%, transparent 25%),*/
    /*    linear-gradient(45deg, transparent 75%, #ccc 75%),*/
    /*    linear-gradient(-45deg, transparent 75%, #ccc 75%);*/
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}

.ravex-color-picker-popup {
    position: absolute;
    z-index: 100000;
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    width: 240px;
    user-select: none;
    font-family: inherit;
    font-size: 12px;
    color: #333;
}

.ravex-color-picker-popup .rcp-sv {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 3px;
    overflow: hidden;
    cursor: crosshair;
    border: 1px solid #d0d0d0;
}

.ravex-color-picker-popup .rcp-sv-saturation,
.ravex-color-picker-popup .rcp-sv-value {
    position: absolute;
    inset: 0;
}

.ravex-color-picker-popup .rcp-sv-value {
    background: linear-gradient(to top, #000, transparent);
}

.ravex-color-picker-popup .rcp-sv-cursor {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.4);
    transform: translate(-6px, -6px);
    pointer-events: none;
}

.ravex-color-picker-popup .rcp-hue {
    position: relative;
    width: 100%;
    height: 14px;
    margin-top: 10px;
    border-radius: 3px;
    cursor: ew-resize;
    background: linear-gradient(to right,
        #ff0000 0%, #ffff00 17%, #00ff00 33%,
        #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
    border: 1px solid #d0d0d0;
}

.ravex-color-picker-popup .rcp-hue-cursor {
    position: absolute;
    top: -2px;
    width: 6px;
    height: 18px;
    background: #fff;
    border: 1px solid #555;
    border-radius: 2px;
    transform: translateX(-3px);
    pointer-events: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.ravex-color-picker-popup .rcp-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.ravex-color-picker-popup .rcp-preview {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #c0c0c0;
    flex-shrink: 0;
}

.ravex-color-picker-popup .rcp-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ravex-color-picker-popup .rcp-input {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-weight: 600;
    color: #555;
}

.ravex-color-picker-popup .rcp-input span {
    font-size: 10px;
    width: 22px;
    text-align: center;
}

.ravex-color-picker-popup .rcp-input input {
    flex: 1;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 11px;
    background: #f8f8f8;
}

.ravex-color-picker-popup .rcp-input input:focus {
    outline: none;
    border-color: #205a94;
    background: #fff;
}

.ravex-color-picker-popup .rcp-rgb {
    display: flex;
    gap: 4px;
}

.ravex-color-picker-popup .rcp-rgb .rcp-input {
    flex: 1;
}

.ravex-color-picker-popup .rcp-rgb .rcp-input input {
    width: 100%;
    min-width: 0;
    -moz-appearance: textfield;
}

.ravex-color-picker-popup .rcp-rgb .rcp-input input::-webkit-outer-spin-button,
.ravex-color-picker-popup .rcp-rgb .rcp-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}