body:has(.skyone-account-mark),
.ui-dialog:has(.ty-login-popup) {
    --sky-access-background: #0c1629;
    --sky-access-surface: #172a49;
    --sky-access-input: #111f36;
    --sky-access-border: #3a4e6c;
    --sky-access-text: #f5f7fc;
    --sky-access-muted: #a8b5cc;
    --sky-access-accent: #4169e1;
    --sky-access-link: #a2bfff;
    --sky-access-error: #ffacb5;
    color-scheme: dark;
    color: var(--sky-access-text);
}

body:has(.skyone-account-mark) {
    background: radial-gradient(ellipse 740px 580px at 50% 330px, var(--sky-access-surface), var(--sky-access-background)) fixed;
}

body:has(.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration)) {
    --sky-access-background: #fff;
    --sky-access-surface: #f1f5fa;
    --sky-access-input: #fff;
    --sky-access-border: #b7c3d4;
    --sky-access-text: #17243a;
    --sky-access-muted: #526178;
    --sky-access-link: #284fae;
    --sky-access-error: #a02637;
    background: #fff;
    color-scheme: light;
}

body:has(.skyone-account-mark) :is(#tygh_container, #tygh_main_container, .tygh-content, .content-grid) {
    background: transparent;
}

body:has(.skyone-account-mark) #tygh_main_container > .tygh-header {
    display: none !important;
}

.skyone-account-mark {
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(36px, 7vh, 68px) 24px 34px;
    text-align: center;
}

.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration) {
    padding: 16px 24px;
    margin-bottom: clamp(26px, 5vw, 42px);
    background: #0c1629;
}

.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration) img {
    width: 60px;
}

.skyone-account-mark__link {
    display: inline-block;
    vertical-align: top;
}

.skyone-account-mark img {
    display: block;
    width: clamp(146px, 40vw, 196px);
    height: auto;
}

#tygh_main_container:has(> .skyone-account-mark) .content-grid > .row-fluid:has(> .main-content-grid) {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

#tygh_main_container:has(> .skyone-account-mark) .content-grid > .row-fluid > :is(.main-content-grid, .auth-information-grid, .profile-information-grid) {
    width: min(100%, 400px);
    max-width: 100%;
    margin-inline: auto;
}

#tygh_main_container:has(> .skyone-account-mark) .tygh-content {
    padding: 0 24px clamp(20px, 4vh, 44px);
}

#tygh_main_container:has(> .skyone-account-mark) .content-grid {
    padding: 0;
}

#tygh_main_container:has(> .skyone-account-mark) .breadcrumbs-grid {
    display: none;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid :is(.ty-mainbox-container, .ty-mainbox-body, .ty-login, .ty-account, .ty-recover-password, .ty-company-fields) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid :is(h1.sky-auth-title, h1.ty-mainbox-title) {
    margin: 0 0 26px !important;
    padding: 0;
    color: var(--sky-access-text) !important;
    font-size: clamp(25px, 5vw, 30px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -.025em;
    text-align: start;
}

#tygh_main_container:has(> .skyone-account-mark--login) .main-content-grid :is(h1.sky-auth-title, h1.ty-mainbox-title) {
    text-align: center;
}

#tygh_main_container:has(> .skyone-account-mark--registration) .main-content-grid :is(h1.sky-vendor-application-title, h1.sky-auth-title) {
    text-align: center;
    text-wrap: balance;
}

#tygh_main_container:has(> .skyone-account-mark) :is(.ty-login-info, .ty-account-benefits, .sky-recovery-instructions, .ty-recover-password p) {
    color: var(--sky-access-muted);
    background: transparent;
}

#tygh_main_container:has(> .skyone-account-mark) :is(.ty-login-info, .ty-account-benefits) :is(h4, p, li) {
    color: var(--sky-access-muted);
}

#tygh_main_container:has(> .skyone-account-mark) .ty-login-info {
    padding: 22px 0 0;
    margin: 0;
    border: 0;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-profile-field__item {
    float: none;
    width: 100%;
    margin-inline: 0;
}

body:has(.skyone-account-mark) .ty-vendor-account-information-grid .ty-company-info :is(h4, li) {
    color: var(--sky-access-text);
}

body:has(.skyone-account-mark) :is(form[name="profiles_register_form"], form[name="apply_for_vendor_form"]) :is(input, textarea)::placeholder {
    color: var(--sky-access-text);
    opacity: 1;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .ty-control-group {
    margin-bottom: 18px;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(label, .ty-login__remember-me-label, .ty-license-agreement__label) {
    color: var(--sky-access-text) !important;
}

:is(#tygh_main_container:has(> .skyone-account-mark), .ui-dialog:has(.ty-login-popup)) :is(.ty-password-forgot__a, .ty-license-agreement__link, .ty-login-info a, .ty-login-reglink a) {
    color: var(--sky-access-link);
}

#tygh_main_container:has(> .skyone-account-mark) :is(form[name="profiles_register_form"], form[name="apply_for_vendor_form"]) .ty-license-agreement__link {
    color: var(--sky-access-text);
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea, .cs-input-password__toggle-button) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 50px;
    border: 1px solid var(--sky-access-border);
    border-radius: 8px;
    color: var(--sky-access-text);
    background: var(--sky-access-input);
    box-shadow: none;
    font-size: 16px;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select) {
    width: 100%;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(.cs-input-password, [data-ca-input-password="inputGroup"]) {
    width: 100%;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .cs-input-password__input {
    flex: 1 1 0%;
    width: auto;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .cs-input-password__toggle-button {
    flex: 0 0 48px;
    padding-inline: 0;
    border-inline-start: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    background: var(--sky-access-input) !important;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .cs-input-password__toggle-button:hover {
    background: var(--sky-access-surface) !important;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-input-phone--phone-number-with-country-selection {
    padding-inline-start: 62px;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-select-block__a--phone-mask {
    box-sizing: border-box;
    height: 50px;
    border-color: var(--sky-access-border);
    color: var(--sky-access-text);
    background: var(--sky-access-input);
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-select-block__a--phone-mask .ty-select-block__arrow {
    color: var(--sky-access-text);
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-select-block {
    border-color: var(--sky-access-border);
    background: var(--sky-access-input);
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-select-block__list-a {
    color: var(--sky-access-text);
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid .ty-select-block__list-a:hover {
    background: var(--sky-access-surface);
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(a, button, input, select, textarea):focus-visible,
.skyone-account-mark__link:focus-visible {
    outline: 2px solid #a2bfff;
    outline-offset: 2px;
    box-shadow: none;
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) :is(.help-inline, .ty-error-text, .ty-control-group__error) {
    color: var(--sky-access-error);
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .cm-failed-field {
    border-color: var(--sky-access-error);
}

:is(#tygh_main_container:has(> .skyone-account-mark) .main-content-grid, .ui-dialog:has(.ty-login-popup)) .buttons-container {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#tygh_main_container:has(> .skyone-account-mark) form[name="main_login_form"] .buttons-container > .ty-float-right {
    float: none;
    width: 100%;
    padding: 0;
}

#tygh_main_container:has(> .skyone-account-mark) .ty-login__remember-me {
    margin-top: 12px;
}

.sky-buyer-login-registration {
    margin: 20px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--sky-access-border);
    text-align: center;
}

#tygh_container #tygh_main_container .sky-buyer-login-register-link {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    color: #b9c9f0;
    font-weight: 600;
}

#tygh_container #tygh_main_container .sky-buyer-login-register-link:hover {
    color: #fff;
    text-decoration: underline;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid form :is(button[type="submit"], input[type="submit"]),
.ui-dialog:has(.ty-login-popup) .ty-login-popup button[type="submit"] {
    width: 100%;
    min-height: 50px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--sky-access-accent) !important;
    box-shadow: none;
    font-weight: 700;
}

#tygh_main_container:has(> .skyone-account-mark) .main-content-grid form :is(button[type="submit"], input[type="submit"]):hover,
.ui-dialog:has(.ty-login-popup) .ty-login-popup button[type="submit"]:hover {
    background: #3659c8 !important;
}

body:has(:is(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer,
body:has(:is(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer .sky-market-footer {
    border-top-color: var(--sky-access-border);
    background: var(--sky-access-background) !important;
}

body:has(:is(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer .sky-market-footer section:has(a[href*="/login/"])::before {
    color: var(--sky-access-muted);
}

body:has(:is(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer .sky-market-footer .sky-footer-tools {
    color: var(--sky-access-text);
}

body:has(.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer :is(.sky-market-footer, .sky-footer-tools) {
    background: #f5f7fb !important;
    border-color: #dce4ee;
    color: #526178;
}

body:has(.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer .sky-market-footer :is(h3, a, strong) {
    color: #17243a !important;
}

body:has(.skyone-account-mark:not(.skyone-account-mark--login, .skyone-account-mark--registration)) #tygh_footer .skyone-blue-stars-footer-logo {
    box-sizing: content-box;
    padding: 6px;
    border-radius: 7px;
    background: #0c1629;
}

body:has(.skyone-account-mark) .tygh-footer :is(.sky-catalog-guide, p:has(> .sky-backtop)) {
    display: none;
}

body:has(.skyone-account-mark) :is(.ty-navbar-mobile, .ty-navbar-mobile__inner) {
    border-color: var(--sky-access-border);
    background: var(--sky-access-input);
}

body:has(.skyone-account-mark) :is(.ty-navbar-mobile__item-link, .ty-navbar-mobile__item-text, .ty-navbar-mobile__item-icon) {
    color: var(--sky-access-muted);
}

.ui-dialog:has(.ty-login-popup),
.ui-dialog:has(.ty-login-popup) :is(.ui-dialog-titlebar, .ui-dialog-content, .ty-login-popup) {
    border-color: var(--sky-access-border);
    color: var(--sky-access-text);
    background: var(--sky-access-background);
}

.ui-dialog:has(.ty-login-popup) .ui-dialog-titlebar-close {
    color: var(--sky-access-text);
}

body:has(:is(.skyone-account-mark--login, .skyone-account-mark--registration)) .klaro {
    --white1: #f5f7fc;
    --dark1: #111f36;
    --green1: #4169e1;
}

body:has(.skyone-account-mark) .klaro :is(.cookie-notice, .cm-modal) {
    border: 1px solid var(--sky-access-border);
    background: var(--sky-access-input);
    color: var(--sky-access-text);
}

body:has(.skyone-account-mark) .klaro :is(.cn-body, .cm-body) :is(p, label, .cm-link) {
    color: var(--sky-access-text);
}

body:has(.skyone-account-mark) .klaro .cn-learn-more {
    text-decoration: underline;
}
