.rst-ral-picker {
    display: none;
    margin-top: 16px;
    padding: 16px;
    padding-top: 5px !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 12px;
}

.rst-ral-picker.is-visible {
    display: block;
}

.rst-ral-picker__header {
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

.rst-ral-picker__input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rst-ral-picker__input input {
    padding: 10px 12px;
    border: 1px solid #cbd5f5;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.rst-ral-picker__helper {
    font-size: 12px;
    color: #64748b;
}

.rst-ral-picker__error {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    color: #b91c1c;
}

.rst-ral-picker__error.is-visible {
    display: block;
}

.rst-ral-picker__input.is-hidden {
    display: none;
}

.rst-ral-picker__header.is-hidden {
    display: none;
}

.rst-ral-picker__suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.rst-ral-picker__suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rst-ral-picker__suggestion:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.rst-ral-picker__suggestion-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #0f172a;
}

.rst-ral-picker__suggestion-name {
    font-size: 11px;
    color: #64748b;
}

.rst-ral-picker__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.rst-ral-picker.has-selection .rst-ral-picker__preview {
    margin-top: 0;
}

.rst-ral-picker__swatch {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.rst-ral-picker__preview-title {
    font-weight: 700;
    color: #0f172a;
}

.rst-ral-picker__preview-meta {
    font-size: 12px;
    color: #64748b;
}

.rst-ral-picker__finish {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.rst-ral-picker__finish-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.rst-ral-picker__finish-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rst-ral-picker__finish-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}

.rst-ral-picker__finish.is-hidden {
    display: none;
}

.rst-ral-picker__reset {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    cursor: pointer;
}

.rst-ral-picker__reset:hover {
    background: #eff6ff;
}

.rst-ral-picker__actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rst-ral-picker__preview-btn {
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(135deg, #c40000 0%, #a00000 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rst-ral-picker__preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 0, 0, 0.3);
}

.rst-ral-picker__preview-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rst-ral-picker__status {
    font-size: 12px;
    color: #64748b;
}

/* Varmista että valitsin on omalla rivillään ennen määrä/ATC-aluetta */
.ecomus-product-atc-group {
    flex-wrap: wrap;
}

