.tz-cp-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.tz-cp-native {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.tz-cp-swatch {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 999px;
    background: #6366f1;
    cursor: pointer;
    box-sizing: border-box;
}

.tz-cp-swatch:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

.tz-cp-popover {
    position: fixed;
    z-index: 20000;
    width: 236px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
}

.tz-cp-sv {
    position: relative;
    width: 100%;
    height: 148px;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.tz-cp-sv-cursor,
.tz-cp-hue-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.tz-cp-hue {
    position: relative;
    width: 100%;
    height: 16px;
    margin-top: 12px;
    border-radius: 999px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    background: linear-gradient(
        to right,
        #ff0000 0%,
        #ffff00 17%,
        #00ff00 33%,
        #00ffff 50%,
        #0000ff 67%,
        #ff00ff 83%,
        #ff0000 100%
    );
}

.tz-cp-hue-cursor {
    top: 50%;
}

@media (max-width: 480px) {
    .tz-cp-popover {
        width: min(280px, calc(100vw - 24px));
    }

    .tz-cp-sv {
        height: 168px;
    }
}
