/* CSS - b2bregistration */
/* Gwiazdka wymaganych pól - czerwony kolor */
.b2b-required-mark,
form label .b2b-required-mark,
form label span.b2b-required-mark {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Gwiazdki wymaganych pól z PrestaShop/motywu - czerwony kolor */
#customer-form label .required,
#customer-form label abbr[title],
form label .required {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Selectbox - zaokrąglenia i wysokość */
form select,
form select.form-control,
#customer-form select,
form[name="customer-form"] select,
form.js-customer-form select {
    border-radius: 4px !important;
    height: 41px !important;
}

/* form-check: gwiazdka na końcu labelu w tej samej linii (nie łamie się do nowej linii) */
.form-check label .b2b-required-mark,
.form-check .form-check-label .b2b-required-mark,
.form-check .b2b-required-mark {
    display: inline !important;
    margin-left: 0.15em;
    white-space: nowrap;
}

/* UWAGA: Reguła .form-text { display:none } została usunięta - ukrywała pola formularza
   (w tym hasło) w PrestaShop 9. Klasa form-text jest używana przez Bootstrap/motyw
   w strukturze pól formularza. Aby ukryć tylko tekst "Opcjonalne", użyj bardziej
   precyzyjnego selektora w nadpisaniu motywu. */

/* Koncesja na aptekę - ukryta gdy Rodzaj działalności != Apteka */
form[data-license-visible="0"] .b2b-license-field,
form:has(input[name="b2b_file_license"]):not([data-license-visible="1"]) .form-group:has(input[name="b2b_file_license"]),
form:has(input[name="b2b_file_license"]):not([data-license-visible="1"]) .row:has(input[name="b2b_file_license"]),
form:has(input[name="b2b_file_license"]):not([data-license-visible="1"]) .form-control-row:has(input[name="b2b_file_license"]),
form:has(input[name="b2b_file_license"]):not([data-license-visible="1"]) .mb-3:has(input[name="b2b_file_license"]),
form:has(input[name="b2b_file_license"]):not([data-license-visible="1"]) .form-control-container:has(input[name="b2b_file_license"]) {
    display: none !important;
}

/* Pokazanie pola koncesji gdy Rodzaj działalności = Apteka */
form[data-license-visible="1"] .form-group:has(input[name="b2b_file_license"]),
form[data-license-visible="1"] .row:has(input[name="b2b_file_license"]),
form[data-license-visible="1"] .form-control-row:has(input[name="b2b_file_license"]),
form[data-license-visible="1"] .mb-3:has(input[name="b2b_file_license"]),
form[data-license-visible="1"] .form-control-container:has(input[name="b2b_file_license"]) {
    display: block !important;
}

