/* OtoLider — wspólny wygląd komponentów sekcji „Dane podstawowe”. */
.lm-electric-mode-row {
    grid-template-columns: minmax(0, 1fr) !important;
}

.lm-electric-toggle-field {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.lm-electric-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    border: 1px solid #d7e0eb;
    background: #f8fafc;
    border-radius: 9px;
    padding: 10px 12px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lm-electric-toggle-card.is-active {
    border-color: #9cc6ef;
    background: #f0f7ff;
    box-shadow: 0 8px 22px rgba(49, 79, 111, .08);
}

.lm-electric-toggle-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 800;
    color: #1f344d;
}

.lm-electric-toggle-main input {
    width: 17px;
    height: 17px;
    accent-color: var(--lm-blue, #314f6f);
}

.lm-electric-toggle-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.lm-electric-mode-row-top {
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .lm-electric-toggle-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .lm-electric-toggle-note {
        text-align: left;
    }
}

/* Wspólne pole Podkategoria — domyślnie używane tylko przez formularze, które je jawnie włączą. */
.lm-dp-subcategory-clear-wrap {
    position: relative;
}

.lm-dp-subcategory-clear-wrap select {
    width: 100%;
    padding-right: 34px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
}

.lm-dp-subcategory-clear-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #5f6b78;
    pointer-events: none;
    opacity: .85;
}

.lm-dp-subcategory-clear-wrap.has-value::after,
.lm-dp-subcategory-clear-wrap.is-disabled::after {
    display: none;
}

.lm-dp-subcategory-clear {
    display: none;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #516173;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.lm-dp-subcategory-clear:hover {
    color: #d52e2c;
}

.lm-dp-subcategory-clear.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Wspólny przycisk czyszczenia pola „Opis dodatkowy”.
 * Formularze ze starszym lokalnym mechanizmem są wykrywane przez JS i nie dostają drugiego przycisku. */
.lm-dp-title-extra-clear-wrap {
    position: relative;
}

.lm-dp-title-extra-clear-wrap > input {
    width: 100%;
    padding-right: 32px !important;
}

.lm-dp-title-extra-clear-wrap .lm-control-clear {
    display: none;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #516173;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    z-index: 3;
}

.lm-dp-title-extra-clear-wrap .lm-control-clear:hover {
    color: #d52e2c;
}

.lm-dp-title-extra-clear-wrap .lm-control-clear.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

