/* ReefKing Shopkomfort 1.0.42: consistent registration, password-reset, login and newsletter colors.
 * Presentation only: keep native validation, consent, autocomplete and submission. */
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(> :is(input.form-control, select.form-control, textarea.form-control):not([type="hidden"])),
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(> :is(input.form-control, select.form-control, textarea.form-control):not([type="hidden"])) {
    display: flex !important;
    flex-direction: column !important;
}

html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.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 #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.form-control) ~ label:not(.sr-only)::before,
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.form-control) ~ label:not(.sr-only)::after,
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.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 #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(input.form-control, select.form-control, textarea.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 #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(input.form-control, select.form-control, textarea.form-control)::placeholder {
    color: #d9d5cc !important;
    -webkit-text-fill-color: #d9d5cc !important;
    opacity: 1 !important;
}

html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(input.form-control, select.form-control, textarea.form-control):focus {
    border-color: #ddbd78 !important;
    outline: 2px solid #ddbd78 !important;
    outline-offset: 2px;
}

html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(input.form-control, select.form-control, textarea.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 #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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(input.form-control, select.form-control, textarea.form-control):is(.is-invalid, [aria-invalid="true"]),
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.form-control),
html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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 :is(input.form-control, select.form-control, textarea.form-control):invalid {
    border-color: #f28b82 !important;
}

html body :is(
    #content-wrapper #content #new_customer,
    #content-wrapper #content #passwort_vergessen,
    #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;
}

/* Account entry pages do not receive rk-page-account from the template.
   Scope by their existing forms; no JS, form or authentication changes. */
html body:has(#new_customer, #passwort_vergessen),
html body:has(#new_customer, #passwort_vergessen) :is(#main-wrapper, #content-wrapper, #content) {
    background: #090a09 !important;
    color: #f2efe7 !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) :is(h1, h2, h3, .h2, p, legend, label) {
    color: #f2efe7;
}
html body #content-wrapper #new_customer .h3 {
    color: #ddbd78 !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) :is(.required-info, .optional, .pass-text, .text-muted, .text-muted-util, small) {
    color: #d9d5cc !important;
    -webkit-text-fill-color: #d9d5cc !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) :is(.breadcrumb, .breadcrumb-item, .breadcrumb a, a:not(.btn)) {
    color: #ddbd78 !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) a:not(.btn):is(:hover, :focus-visible) {
    color: #ffda57 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) :is(hr, legend) {
    border-color: #3a3c32 !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) .alert-info {
    background: #1b1c19 !important;
    color: #f2efe7 !important;
    border: 1px solid #6b6043 !important;
}
html body #content-wrapper:has(#new_customer, #passwort_vergessen) .alert-info > i {
    color: #ddbd78 !important;
}
html body #content-wrapper #content :is(#new_customer, #passwort_vergessen) select.form-control:not([type="hidden"]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23ddbd78' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 40px;
}
html body #content-wrapper #content #new_customer select.form-control option {
    background: #111614;
    color: #f2efe7;
}
html body #content-wrapper #content :is(#new_customer, #passwort_vergessen) .btn-primary {
    background: #f3c53e !important;
    border-color: #f3c53e !important;
    color: #101310 !important;
    -webkit-text-fill-color: #101310 !important;
}
html body #content-wrapper #content :is(#new_customer, #passwort_vergessen) .btn-primary:is(:hover, :focus-visible) {
    background: #ffda57 !important;
    border-color: #ffda57 !important;
    color: #101310 !important;
}
html body #content-wrapper #content :is(#new_customer, #passwort_vergessen) .btn-primary:focus-visible {
    outline: 2px solid #ddbd78;
    outline-offset: 3px;
}

/* NOVA wraps PLZ/Ort in Typeahead after page load. Style the generated
   wrapper, sibling label, hint layer and suggestion list as well. */
html body #content-wrapper #content #new_customer .form-group > .d-flex.flex-column-reverse:has(> .twitter-typeahead) {
    flex-direction: column !important;
}
html body #content-wrapper #content #new_customer .form-group .twitter-typeahead ~ 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 #content-wrapper #content #new_customer .form-group .twitter-typeahead ~ label:not(.sr-only)::before,
html body #content-wrapper #content #new_customer .form-group .twitter-typeahead ~ label:not(.sr-only)::after,
html body #content-wrapper #content #new_customer .form-group .twitter-typeahead ~ 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 #content-wrapper #content #new_customer .twitter-typeahead {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    background-color: #111614 !important;
    border-radius: var(--rk-control-radius, 2px);
}
html body #content-wrapper #content #new_customer .twitter-typeahead input.tt-input.form-control {
    background: transparent !important;
}
html body #content-wrapper #content #new_customer .twitter-typeahead input.tt-hint.form-control {
    background: #111614 !important;
    color: #a7ab9f !important;
    -webkit-text-fill-color: #a7ab9f !important;
    border-color: transparent !important;
    pointer-events: none;
}
html body #content-wrapper #content #new_customer .twitter-typeahead input.tt-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;
}
html body #content-wrapper #content #new_customer :is(.tt-menu, .tt-dropdown-menu) {
    background: #151813 !important;
    color: #f2efe7 !important;
    border: 1px solid #6b6043 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35) !important;
}
html body #content-wrapper #content #new_customer :is(.tt-menu, .tt-dropdown-menu) :is(.tt-suggestion, .tt-suggestion p, .tt-suggestion a, .tt-suggestion strong) {
    color: #f2efe7 !important;
    -webkit-text-fill-color: #f2efe7 !important;
}
html body #content-wrapper #content #new_customer :is(.tt-menu, .tt-dropdown-menu) .tt-suggestion:is(:hover, .tt-cursor) {
    background: #ddbd78 !important;
    color: #101310 !important;
    -webkit-text-fill-color: #101310 !important;
}
html body #content-wrapper #content #new_customer :is(.tt-menu, .tt-dropdown-menu) .tt-suggestion:is(:hover, .tt-cursor) :is(p, a, strong) {
    color: #101310 !important;
    -webkit-text-fill-color: #101310 !important;
}
