:root {
    --z-index-side-menu: 999;
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none !important;
    }
}

.header-discount {
    width: 100%;
    z-index: var(--z-index-side-menu);
    text-align: center;
    top: 0;
    height: auto;
    line-height: 30px;
    background-color: var(--bs-primary);
    color: #fff;
    padding: 5px 15px;
    border-bottom: 1px solid var(--bs-primary);
    font-weight: 500;
}

.header-discount:hover {
    background-color: var(--bs-primary-active);
}

.header-discount.header-error {
    background-color: var(--bs-danger);
    color: var(--bs-white);
    font-size: 16px;
    border-bottom: 1px solid var(--bs-danger);
}

.header-discount.header-error:focus,
.header-discount.header-error:hover,
.header-discount.header-error:active {
    color: var(--bs-white) !important;
    background-color: var(--bs-danger-active) !important;
    outline: none !important;
}

.app-sidebar {
    margin-top: 0;
    z-index: 1000;
}

@media (min-width: 992px) {
    .header-discount {
        height: 46px;
        position: fixed;
        line-height: 31px;
    }

    .app-sidebar,
    .app-header,
    .discount-header-sizer {
        margin-top: 46px;
    }

    .app-wrapper,
    [data-kt-app-header-fixed=true] .app-wrapper {
        margin-top: calc(var(--bs-app-header-height) + 46px);
    }
}

.header-discount > div {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.header-discount > button {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 458px) {
    .header-discount .indentation-bottom {
        display: block;
    }
}

.btn-danger:hover {
    opacity: 0.8;
    transition: 0.3s all;
}

.header-discount span.indentation {
    display: block;
    height : 10px;
}

.modal-footer {
    border: none;
}

.header-discount .indentation-bottom {
    height : 5px;
}

#modal_discount .alert-danger {
    display: flex;
    column-gap: 8px;
}

ul.pagination li.page-item:nth-child(n+4) {
    opacity: 0.4;
    pointer-events: auto;
    cursor: default;
}

ul.pagination li.page-item:nth-child(n+4) .page-link {
    color: var(--bs-pagination-disabled-color);
}

/* Annual upsell bar — dismiss (X) button, top-right */
#modal_annual .alert-danger {
    display: flex;
    column-gap: 8px;
}

.header-discount .annual-dismiss {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;
    text-align: center;
    color: #fff;
    opacity: .85;
    cursor: pointer;
    z-index: 2;
}

.header-discount .annual-dismiss:hover {
    opacity: 1;
}

/* At mobile the bar isn't fixed, so give it a positioning context for the X */
@media (max-width: 991px) {
    .header-discount.header-annual {
        position: relative;
    }
}
