/* ReefKing Shopkomfort 1.0.40: nested NOVA login labels and newsletter contrast.
 * Presentation only: keep native validation, consent, autocomplete and submission. */
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group:has(> input.form-control:not([type="hidden"])),
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group > .d-flex.flex-column-reverse:has(> input.form-control:not([type="hidden"])) {
    display: flex !important;
    flex-direction: column !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group input.form-control ~ label:not(.sr-only) {
    position: static !important;
    order: -1 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #f2efe7 !important;
    -webkit-text-fill-color: #f2efe7 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    opacity: 1 !important;
    box-shadow: none !important;
    transition: none !important;
    pointer-events: auto;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group input.form-control ~ label:not(.sr-only)::before,
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group input.form-control ~ label:not(.sr-only)::after,
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .form-group input.form-control ~ label:not(.sr-only) * {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) input.form-control:not([type="hidden"]) {
    background: #111614 !important;
    background-image: none !important;
    color: #f2efe7 !important;
    -webkit-text-fill-color: #f2efe7 !important;
    caret-color: #f2efe7 !important;
    border-color: #77766a !important;
    min-height: 46px;
    font-size: 1rem;
    color-scheme: dark;
    box-shadow: none !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) input.form-control::placeholder {
    color: #d9d5cc !important;
    -webkit-text-fill-color: #d9d5cc !important;
    opacity: 1 !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) input.form-control:focus {
    border-color: #ddbd78 !important;
    outline: 2px solid #ddbd78 !important;
    outline-offset: 2px;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) input.form-control:is(:autofill, :-webkit-autofill) {
    -webkit-box-shadow: 0 0 0 1000px #111614 inset !important;
    box-shadow: 0 0 0 1000px #111614 inset !important;
    -webkit-text-fill-color: #f2efe7 !important;
    caret-color: #f2efe7 !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) input.form-control:is(.is-invalid, [aria-invalid="true"]),
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) .has-error input.form-control,
html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
).was-validated input.form-control:invalid {
    border-color: #f28b82 !important;
}

html body :is(
    #content-wrapper #content #login_form,
    #content-wrapper #content #order_register_or_login,
    #jtl-nav-wrapper #account-dropdown-menu #quick-login,
    #content-wrapper #content #newsletter-subscribe,
    #content-wrapper #content #newsletter-unsubscribe,
    #footer .newsletter-footer
) :is(.form-error-msg, .invalid-feedback) {
    color: #f28b82 !important;
    -webkit-text-fill-color: #f28b82 !important;
}

html body #footer .newsletter-footer .newsletter-footer-heading {
    color: #ddbd78 !important;
    -webkit-text-fill-color: #ddbd78 !important;
    font-size: 1rem;
    line-height: 1.5;
}
html body #footer .newsletter-footer .info,
html body #content-wrapper #content :is(#newsletter-subscribe, #newsletter-unsubscribe) :is(.small, small, .text-muted, .info) {
    color: #e4e1d8 !important;
    -webkit-text-fill-color: #e4e1d8 !important;
    font-size: 0.875rem !important;
    line-height: 1.6;
    opacity: 1;
}
html body #footer .newsletter-footer .info a,
html body #content-wrapper #content :is(#newsletter-subscribe, #newsletter-unsubscribe) a {
    color: #ddbd78 !important;
    -webkit-text-fill-color: #ddbd78 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html body #footer .newsletter-footer .info a:is(:hover, :focus-visible),
html body #content-wrapper #content :is(#newsletter-subscribe, #newsletter-unsubscribe) a:is(:hover, :focus-visible) {
    color: #ffda57 !important;
    -webkit-text-fill-color: #ffda57 !important;
}
