/* ==========================================================================
   DuraCoat Color Kit Picker
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

.dcm-kit-picker {
    margin: 0 0 1.6em;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    max-width: 480px;
}

/* ---- Label row ---- */
.dcm-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 7px;
}
.dcm-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #1a1a1a;
}
.dcm-counter {
    font-size: 12px;
    color: #888;
    transition: color 0.2s;
}
.dcm-counter.dcm-full {
    color: #2d8a4e;
    font-weight: 600;
}

/* ---- Chips ---- */
.dcm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}
.dcm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 6px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    animation: dcm-chipin 0.13s ease;
}
@keyframes dcm-chipin {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
.dcm-chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.dcm-chip-x {
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    margin-left: 1px;
    display: flex;
    align-items: center;
    transition: color 0.12s;
}
.dcm-chip-x:hover { color: #fff; }

/* ---- Search input ---- */
.dcm-search-wrap { position: relative; }
.dcm-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 36px 9px 12px;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dcm-search-input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}
.dcm-search-input::placeholder { color: #b0b0b0; }
.dcm-search-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b0b0;
    font-size: 13px;
    pointer-events: none;
}

/* ---- Dropdown ---- */
.dcm-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    scrollbar-width: thin;
}
.dcm-dropdown.dcm-open {
    display: block;
    animation: dcm-dropin 0.12s ease;
}
@keyframes dcm-dropin {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dcm-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 0.5px solid #f2f2f2;
    transition: background 0.08s;
}
.dcm-option:last-child { border-bottom: none; }
.dcm-option:hover { background: #f7f7f7; }
.dcm-option.dcm-selected { background: #f0f7ff; }
.dcm-option.dcm-disabled { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.dcm-option-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.13);
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.10);
}
.dcm-option-name { font-size: 13px; color: #1a1a1a; flex: 1; }
.dcm-option-check { font-size: 12px; color: #2563eb; opacity: 0; transition: opacity 0.1s; }
.dcm-option.dcm-selected .dcm-option-check { opacity: 1; }
.dcm-no-results {
    padding: 14px 12px;
    font-size: 13px;
    color: #999;
    text-align: center;
    font-style: italic;
}

/* ---- Messages ---- */
.dcm-min-msg,
.dcm-limit-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    display: none;
}
.dcm-min-msg { color: #c0392b; }
.dcm-limit-msg { color: #2d8a4e; }
.dcm-min-msg.dcm-show,
.dcm-limit-msg.dcm-show {
    display: block;
    animation: dcm-chipin 0.15s ease;
}

/* ---- Shake ---- */
@keyframes dcm-shake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-6px); }
    30%  { transform: translateX(6px); }
    45%  { transform: translateX(-5px); }
    60%  { transform: translateX(5px); }
    75%  { transform: translateX(-3px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}
.dcm-kit-picker.dcm-shake { animation: dcm-shake 0.45s ease; }
.dcm-kit-picker.dcm-shake .dcm-search-input {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}
