/*
 * The Design controls (the x-qr-design-controls.* components). Plain CSS with
 * its own custom properties and fallbacks, so the same file styles them on the
 * public site and, later, inside the dashboard.
 */
.eq-controls-group {
    --qrc-ink: var(--eq-ink, #0a0f24);
    --qrc-muted: var(--eq-muted, #5a5f6e);
    --qrc-surface: var(--eq-surface, #ffffff);
    --qrc-border: var(--eq-border-strong, rgba(10, 15, 36, 0.15));
    --qrc-tile: #f1f3f6;
    --qrc-tile-hover: #e8ecf1;
    --qrc-primary: var(--eq-primary, #348fad);
    --qrc-focus: var(--eq-accent, #3a9fc0);
    --qrc-danger: var(--eq-danger, #d92d20);

    margin-top: 14px;
    color: var(--qrc-ink);
}

.eq-controls-group [hidden] {
    display: none;
}

.eq-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.eq-field {
    margin-bottom: 14px;
}

.eq-field-label {
    display: block;
    font-size: 13px;
    color: var(--qrc-muted);
    margin-bottom: 8px;
}

.eq-field-note {
    min-height: 18px;
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--qrc-danger);
}

.eq-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eq-option {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 62px;
    padding: 10px 8px;
    background: var(--qrc-tile);
    color: var(--qrc-ink);
    border: 2px solid transparent;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
}

.eq-option:hover {
    background: var(--qrc-tile-hover);
}

.eq-option[aria-pressed="true"] {
    background: var(--qrc-surface);
    border-color: var(--qrc-primary);
}

.eq-option-icon {
    display: flex;
    min-height: 22px;
}

.eq-option-name {
    font-size: 11.5px;
    color: var(--qrc-muted);
}

.eq-option[aria-pressed="true"] .eq-option-name {
    color: var(--qrc-ink);
    font-weight: 600;
}

.eq-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.eq-swatch {
    position: relative;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--qrc-border);
    box-shadow: 0 0 0 3px var(--qrc-surface);
    cursor: pointer;
}

.eq-swatch[aria-pressed="true"] {
    box-shadow: 0 0 0 3px var(--qrc-surface), 0 0 0 5px var(--qrc-primary);
}

.eq-swatch--picker {
    overflow: hidden;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.eq-swatch--picker input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.eq-swatch--picker:focus-within {
    outline: 2px solid var(--qrc-focus);
    outline-offset: 4px;
}

.eq-hex {
    width: 92px;
    padding: 8px 10px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: var(--qrc-tile);
    color: var(--qrc-ink);
    font-family: ui-monospace, monospace;
    font-size: 13.5px;
}

.eq-hex[aria-invalid] {
    border-color: var(--qrc-danger);
}

.eq-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.eq-logo-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid var(--qrc-border);
    border-radius: 10px;
}

.eq-logo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eq-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--qrc-tile);
    color: var(--qrc-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.eq-pill:hover {
    background: var(--qrc-tile-hover);
}

.eq-link-button {
    padding: 6px 4px;
    border: 0;
    background: none;
    color: var(--eq-link, #2c7790);
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.eq-slider {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.eq-slider .eq-field-label {
    margin: 0;
}

.eq-slider input {
    min-width: 0;
    accent-color: var(--qrc-primary);
}

.eq-slider-value {
    font-size: 13px;
    color: var(--qrc-muted);
    text-align: right;
}

.eq-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 14px;
    cursor: pointer;
}

.eq-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--qrc-primary);
}

.eq-option:focus-visible,
.eq-swatch:focus-visible,
.eq-hex:focus-visible,
.eq-pill:focus-visible,
.eq-link-button:focus-visible,
.eq-slider input:focus-visible,
.eq-check input:focus-visible,
.eq-controls-group .eq-input:focus-visible {
    outline: 2px solid var(--qrc-focus);
    outline-offset: 2px;
}
