.cp-wrapper {
    position: relative;
    width: 100%;
}

.cp-label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
}

.cp-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.cp-input {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    font-size: 14px;
    height: 36px;
}

.cp-input:focus {
    outline: none;
    border-color: #00A1BE;
    box-shadow: 0 0 0 0.2rem rgba(0, 161, 190, 0.25);
}

.cp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.cp-btn:hover {
    border-color: #888;
}

.cp-swatch {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}

.cp-btn i {
    position: relative;
    z-index: 2;
    font-size: 15px;
    color: #333;
}

.cp-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #DEE2E6;
    box-shadow: 0 .125rem .25em rgba(0, 0, 0, .075);
    padding: 10px;
    border-radius: 6px;
    z-index: 1500;
    min-width: 250px;
}

.cp-picker-container {
    display: flex;
    gap: 12px;
}

.cp-swatches-side {
    flex-shrink: 0;
}

.cp-gradient-side {
    display: flex;
    gap: 8px;
}

.cp-sv-canvas {
    width: 150px;
    height: 150px;
    cursor: crosshair;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.cp-hue-canvas {
    width: 20px;
    height: 150px;
    cursor: pointer;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.cp-canvas-wrapper {
    position: relative;
    display: inline-block;
}

.cp-sv-indicator {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.5), inset 0 0 2px rgba(0,0,0,0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.cp-hue-indicator {
    position: absolute;
    left: -2px;
    right: -2px;
    height: 4px;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    pointer-events: none;
    transform: translateY(-50%);
}

.cp-dropdown.open {
    display: block;
}

.cp-grid {
    display: grid;
    grid-template-columns: repeat(10, 20px);
    gap: 4px;
    margin-bottom: 8px;
}

.cp-cell {
    width: 20px;
    height: 20px;
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    box-sizing: border-box;
}

.cp-cell:hover {
    border: 2px solid #333;
}

.cp-custom {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.cp-custom button {
    padding: 4px 10px;
    font-size: 13px;
    border: 1px solid #00A1BE;
    background: #00A1BE;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.cp-custom button:hover {
    background: #008a9e;
    border-color: #008a9e;
}

.cp-wrapper.disabled .cp-input {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.cp-wrapper.disabled .cp-btn {
    cursor: not-allowed;
    opacity: 0.65;
}
