/* RWS Print Colors — color picker UI */

.rws-print-colors-wrap {
    margin: 1.5em 0;
}

.rws-pc-instructions {
    font-size: 0.9em;
    margin-bottom: 0.75em;
    color: #555;
}

/* Slots */
.rws-pc-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    margin-bottom: 1em;
}

.rws-pc-slot {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.rws-pc-slot.rws-pc-slot-hidden {
    display: none;
}

.rws-pc-slot-label {
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
}

.rws-pc-trigger {
    padding: 0.4em 0.85em;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85em;
    min-width: 120px;
    text-align: left;
    transition: border-color 0.15s;
}

.rws-pc-trigger:hover {
    border-color: #999;
}

.rws-pc-trigger.rws-pc-selected {
    border-color: #333;
    font-weight: 600;
}

.rws-pc-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #999;
    padding: 0 0.25em;
    line-height: 1;
}

.rws-pc-clear:hover {
    color: #c00;
}

/* Overlay */
.rws-pc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
}

/* Modal */
.rws-pc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    z-index: 9999;
    padding: 1.5em;
    width: 360px;
    max-width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
}

.rws-pc-modal h3 {
    margin: 0 0 1em;
    font-size: 1em;
    font-weight: 700;
}

.rws-pc-modal-close {
    position: absolute;
    top: 0.6em;
    right: 0.75em;
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.rws-pc-modal-close:hover {
    color: #000;
}

/* Swatches grid */
.rws-pc-swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6em;
}

.rws-pc-swatches li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3em;
}

.rws-pc-swatch {
    width: 44px;
    height: 44px;
    border-radius: 3px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.1s;
}

.rws-pc-swatch:hover,
.rws-pc-swatch:focus {
    border-color: #333;
    transform: scale(1.1);
    outline: none;
}

.rws-pc-swatch-name {
    font-size: 0.65em;
    text-align: center;
    color: #444;
    line-height: 1.2;
    word-break: break-word;
}
