.bg-warning {
    background-color: #f58346;
}
.app-mode.warning {
    background-color: #f58346;
}
.app-mode.warning .status:before {
    display: inline-block;
    content: "\f071";
    font-family: FontAwesome;
    margin-right: 0.25em;
}

#g2-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.g2-content {
    display: flex;
    flex-grow: 1;
}

.g2-contact-bar {
    margin-bottom: 0;
}

.g2-footer {
    padding-top: 0;
}
.g2-footer-top {
    padding: 0;
}

.back-to-top {
    transform: none;
    right: 0.9375rem;
    top: 6px;
}

.g2-help-text-pwd {
    font-size: 0.875rem;
    font-style: normal;
    text-align: right;
}
.g2-help-text-pwd a {
    color: #00adee;
}
.g2-help-text-pwd a:hover {
    text-decoration: underline;
}

.g2-form .btn-submit {
    width: 100%;
    background-color: #0a6db2;
    background-image: linear-gradient(90deg, rgba(255,0,0,0) 60%, #ec008d 100%) !important;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 1.5rem;
    line-height: 1.75;
    transition: background-color 0.25s ease;
}
.g2-form .btn-submit:hover {
    background-color: #ec008d;
}
.g2-form .btn-submit.sm {
    font-size: 1.125rem;
    padding: 0.625em 1.375em;
    margin-top: 0;
}

.g2-signin {
    width: 100%;
    max-width: 960px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 8px -4px #525658;
    margin: 3rem 0;
}
.g2-signin-messages {
    width: 100%;
    max-width: 960px;
}
.g2-signin-hero {
    background-color: #0a6db2;
    background-image: linear-gradient(120deg, #0a6db2 60%, #ec008d 100%) !important;
    border-radius: 0.5rem;
    color: #ffffff;
    flex-direction: column;
    overflow: hidden;
}
.g2-signin-hero .hero-lead {
    padding: 1rem 2rem;
}
.g2-signin-hero .hero-lead p {
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1;
}
.g2-signin-hero .hero-image {
    background: url("/static/img/ebok/g2-hero-kabelki.svg") no-repeat right bottom -40px;
    opacity: 0.75;
}
.g2-signin-form {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
}
.g2-signin-form .btn-submit {
    margin-top: 6rem;
}

.g2-ebok-wrapper {
    margin: 2rem 0 3rem;
}
.g2-ebok {
    min-width: 0;
}
.g2-ebok.flex-container > .grid-x:first-child {
    min-width: 0;
}

.g2-ebok-side-menu-wrapper {
    min-width: 260px;
    background-color: #0d0e0f;
    border-radius: 0.5rem;
    padding-top: 0.5rem;
}
.g2-ebok-side-menu-wrapper h5 {
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}
.g2-ebok-side-menu {
    width: 100%;
    background-color: #0a6db2;
    border-radius: 0.5rem;
    padding: 0.9375rem;
}
.g2-ebok-side-menu a {
    color: #ffffff;
    opacity: 0.9;
}
.g2-ebok-side-menu a:hover {
    opacity: 1;
}
.g2-ebok-side-menu > .accordion-menu .is-accordion-submenu-parent:not(.has-submenu-toggle) > a::after {
    border-color: #00adee transparent transparent;
}

.g2-ebok-content {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
}
.g2-ebok-content.no-bg {
    background: none;
    padding: 0;
}
@media screen and (max-width: 39.9375em) {
    .g2-ebok-content {
        padding: 1rem 0;
    }
}

[type=radio]+label.btn {
    margin: 0;
    margin-bottom: 1rem;
}

.g2-form-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}
.g2-form-header h1 {
    font-weight: 800;
}
.g2-form-group {
    background-color: #ffffff;
    padding: 1rem;
    margin-bottom: 1rem;
}
.g2-form-group-header i {
    color: #0d0e0f;
}
.g2-form-group.no-mb {
    margin-bottom: 0;
}
.g2-form-group.light-blue {
    background-color: #eefbff;
}
.g2-form-group.light-blue .g2-form-group-header {
    background-color: #ffffff;
}
.g2-form-field-group {
    margin-bottom: 1rem;
}
.g2-form-field-group.stacked {
    max-width: 38rem;
}
.g2-form-field-group p:last-of-type {
    margin-bottom: 0;
}
.single-field .g2-form-field-group {
    margin-bottom: 0;
}
.single-field .field-lead {
    font-size: 1.125rem;
    font-weight: 600;
}
@media screen and (max-width: 39.9375em) {
    .single-field .field-lead {
        margin-bottom: 0.5em;
    }
}
.g2-form-checkbox {
    display: inline-block;
    background-color: #eefbff;
    border: 1px solid #c2c6c8;
    border-radius: 0.375rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}
.g2-form-checkbox.light-bg {
    border: none;
    margin-bottom: 0.5rem;
}
.g2-form-checkbox [type=checkbox] {
    margin: 0;
}
.g2-form-checkbox [type=checkbox]+label {
    margin-right: 0;
}

.g2-form-switch {
    display: flex;
    align-items: center;
    background-color: #eefbff;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}
.g2-form-switch .form-switch-label {
    flex-grow: 1;
    margin-right: 0.5rem;
}

.g2-form-disclaimer {
    font-size: 0.9375rem;
    text-align: justify;
}
.g2-form-disclaimer .links {
    margin-top: 0.5rem;
}
.g2-form-disclaimer .links a {
    text-decoration: underline;
}

.g2-primary-form {
    border-radius: 0.5rem;
    padding: 0;
}
.g2-primary-form .g2-form-header {
    background-color: #0a6db2;
    background-image: linear-gradient(45deg, #0a6db2 50%, #ec008d 100%) !important;
    border-radius: 0.5rem;
    color: #ffffff;
    padding: 2rem 1rem 3rem;
}
.g2-primary-form .g2-form-header h1 {
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0;
}
.g2-primary-form .g2-form-groups {
    transform: translateY(-2rem);
}
.g2-primary-form .g2-form-group {
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}
.g2-primary-form .g2-form-group.no-mb {
    margin-bottom: 0;
}
.g2-primary-form .g2-form-group-header {
    background-color: #eefbff;
    margin-top: 0;
}

.g2-summarybox {
    background-color: #fdfdfd;
    border: 1px solid #0a6db2;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.g2-hint {
    display: inline-block;
    font-size: 0.875rem;
    text-align: left;
    padding-left: 1.5em;
    margin: 1rem 0;
    position: relative;
}
.g2-hint::before {
    content: "\f05a";
    font-family: FontAwesome;
    font-size: 1.25em;
    line-height: 1.3;
    position: absolute;
    left: 0;
}
.g2-hint.text-justify {
    text-align: justify;
}

.g2-flex-equal-btn {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0 !important;
}
@media screen and (max-width: 39.9375em) {
    .g2-flex-equal-btn {
        height: auto;
        display: block !important;
        margin-bottom: 1rem !important;
    }
}

.select2-container .select2-selection--single {
    height: 3rem;
}
.select2-container--bootstrap-5 .select2-selection {
    background-color: #fdfdfd;
    color: #0d0e0f;
    border: 1px solid #c2c6c8;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.75rem 2.25rem 0.75rem 1rem;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #0a6db2;
    font-weight: 500;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border: 1px solid #00adee;
    box-shadow: 0 0 4px #00adee;
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #00adee;
    border-radius: 0.5rem;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #00adee;
    box-shadow: 0 0 4px #00adee;
}
.select2-results__option--preselectable {
    cursor: pointer;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--preselectable:hover {
    color: #000;
    background-color: #e9ecef;
}

.loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;

}
.spinner::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #fff;
    border-top-color: #333;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.hidden {
    display: none;
}

.g2-form .is-invalid {
    border-color: #ee1c25;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.g2-form .is-invalid:focus {
    border-color: #ee1c25;
    box-shadow: 0 0 4px rgba(238, 28, 37, 0.5);
}
.g2-form textarea.is-invalid {
    padding-right: calc(1.5em + .75rem);
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}
.g2-form .is-invalid ~ .invalid-feedback {
    color: #ee1c25;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.g2-form .is-invalid ~ .invalid-feedback::before {
    content: "\f06a";
    font-family: FontAwesome;
    font-weight: normal;
    margin-right: 0.375em;
}

.g2-statusbox {
    display: flex;
    justify-content: center;
    align-items: center;
}
.g2-statusbox::before {
    content: "\f05a";
    font-family: FontAwesome;
    font-size: 2rem;
    margin-right: 1rem;
}
.g2-statusbox.success::before {
    content: "\f058";
    color: #00a651;
}
.g2-statusbox.warning::before {
    content: "\f071";
    color: #f58346;
}
.g2-statusbox.error::before {
    content: "\f06a";
    color: #ee1c25;
}
.g2-statusbox.error-2::before {
    content: "\f057";
    color: #ee1c25;
}
.g2-statusbox h1 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.g2-statusbox p {
    color: #1a1b1c;
    margin-bottom: 0.25rem;
}
.g2-statusbox .status-msg p:last-of-type {
    margin-bottom: 0;
}

.gray-out {
    filter: grayscale(100%);
}

.tooltip {
    max-width: 16rem;
}


/* Small only */
@media screen and (max-width: 39.9375em) {
    .back-to-top {
        right: 0.625rem;
    }
    .g2-signin-form {
        border-radius: 0.5rem;
        margin-top: -0.75rem;
        padding: 1.5rem 1rem;
    }
    .g2-signin-hero {
        flex-direction: row;
    }
    .g2-signin-hero .hero-lead {
        padding: 1.5rem 1rem;
    }
    .g2-signin-hero .hero-image {
        min-width: 120px;
        background-size: 120px;
        background-position: bottom right;
        opacity: 0.85;
    }
    .g2-signin-form .btn-submit {
        margin-top: 1.5rem;
    }
}

/* Medium only */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
}

/* Large only */
@media screen and (min-width: 64em) {
}





.brand-form-header {
    
    margin-top: 0;
     color: #0a6db2;
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 0;
}
.brand-form-header i {
    color: #0d0e0f;
}

/* 2. walidacja i focus — dawne .g2-form .is-invalid ... */
.brand-form {
    --bs-form-invalid-color: #ee1c25;
    --bs-form-invalid-border-color: #ee1c25;
}
.brand-form .form-control:focus,
.brand-form .form-select:focus {
    border-color: #00adee;
    box-shadow: 0 0 4px #00adee;
}
.brand-form .form-control.is-invalid:focus {
    box-shadow: 0 0 4px rgba(238, 28, 37, 0.5);
}
.brand-form .invalid-feedback {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.brand-form .invalid-feedback::before {
    content: "\f06a";
    font-family: FontAwesome;
    font-weight: normal;
    margin-right: 0.375em;
}

.btn.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-bg: #0a6db2;
    --bs-btn-hover-bg: #ec008d;
    --bs-btn-active-bg: #ec008d;
    --bs-btn-disabled-bg: #0a6db2;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-border-width: 0;
    --bs-btn-font-size: 1.125rem;
    --bs-btn-font-weight: 800;
    --bs-btn-padding-y: 0.625em;
    --bs-btn-padding-x: 1.375em;
    --bs-btn-focus-shadow-rgb: 10, 109, 178;

    background-image: linear-gradient(90deg, rgba(255,0,0,0) 60%, #ec008d 100%);
    transition: background-color 0.25s ease;
}

/* wariant duży — dawne .btn-submit bez .sm */
.btn.btn-brand-lg {
    --bs-btn-font-size: 1.25rem;
    line-height: 1.75;
    margin-top: 1.5rem;
}


/* dawne .g2-form-switch + .form-switch-label */
.brand-switch {
    display: flex;
    align-items: center;
    background-color: #eefbff;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
}
.brand-switch .form-check-label {
    flex-grow: 1;
    margin-right: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
}
/* Bootstrap daje .form-switch .form-check-input { margin-left: -2.5em } */
.brand-switch .form-check-input {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}