.user-icon {
    float: none !important;
    margin: 0 5px !important;
    vertical-align: middle;
}

#login {
    box-sizing: border-box;
    display: flex;
    min-height: 700px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 40px;
}

#login .login-form {
    box-sizing: border-box;
    width: min(100%, 480px);
    margin: 0 0 18px;
    padding: 18px 24px 12px;
    border: 1px solid rgba(32, 55, 76, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 3px 12px rgba(20, 35, 50, .12);
}

#login .login-panel {
    width: min(100%, 360px);
}

#login form {
    box-sizing: border-box;
    width: 100%;
}

#login-response {
    width: 100%;
}

body[data-authenticated="false"] #content {
    padding-left: 25px;
}

body[data-authenticated="false"] #top .uk-navbar {
    box-sizing: border-box;
}

@media (min-width: 1220px) {
    body[data-authenticated="false"] #content {
        padding-left: 35px;
    }
}

#login h1,
#login h2 {
    color: #1e3448;
    text-shadow: none;
}

#login h1 {
    line-height: 1.3;
}

#login h2 {
    margin-top: 4px;
    margin-bottom: 8px;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.box-tab {
    display: flex;
    gap: 0;
}

.box-tab button {
    margin: 0;
    padding: 18px 28px;
    border: 1px solid rgba(50, 50, 50, .1);
    border-bottom: 3px solid transparent;
    background: #364d69;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.box-tab button:not(.uk-active):hover {
    background: #23384f;
    color: #fff;
}

.box-tab button:focus-visible {
    outline: 3px solid #1e87f0;
    outline-offset: 2px;
    position: relative;
    z-index: 1;
}

.box-tab button.uk-active {
    background: #fff;
    border-bottom-color: #1e87f0;
    color: #364d69;
}

.package-grid {
    row-gap: 55px;
}

.a-la.package-grid {
    row-gap: 30px;
}

.a-la .alacarte-box {
    min-height: 118px;
    margin-bottom: 30px;
    padding: 14px;
    text-align: center;
    font-size: 12px;
}

.alacarte-box button {
    margin-top: 6px;
}

.package-card {
    position: relative;
    min-height: 225px;
}

.package-card .packet {
    cursor: pointer;
}

.package-card.is-disabled {
    opacity: .5;
}

.package-card.is-disabled .packet,
.package-card.is-disabled button {
    cursor: not-allowed;
}

.package-card .extra {
    min-height: 1.4em;
}

.package-card .large {
    display: none;
}

.package-card .packet-title {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: -34px;
    left: 0;
    text-align: center;
    font-size: 11px;
}

.channel-icon {
    display: block;
    width: auto;
    max-width: 100%;
    height: 28px;
    margin: 8px auto;
    object-fit: contain;
}

.empty-packages {
    padding: 24px 0;
    color: #636464;
    font-size: 16px;
}

.active-package {
    margin-bottom: 12px;
}

.cancelled-package .uk-comment-header {
    border-color: rgba(170, 56, 56, .2);
    background: rgba(170, 56, 56, .05);
    color: #9e5252;
}

.portal-dialog {
    width: min(680px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    border: 0;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 8px 32px rgb(0 0 0 / 30%);
}

.portal-dialog::backdrop {
    background: rgb(0 0 0 / 55%);
}

.dialog-close-row {
    display: flex;
    justify-content: flex-end;
}

.dialog-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.flex-dialog {
    width: min(800px, calc(100% - 32px));
}

.flex-channel-list {
    columns: 3;
    column-gap: 24px;
}

.flex-channel-list label {
    display: block;
    break-inside: avoid;
}

.flex-actions {
    margin-top: 20px;
    text-align: right;
}

.uk-alert[hidden],
[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .box-tab button {
        padding: 14px 12px;
        font-size: 13px;
    }

    .flex-channel-list {
        columns: 2;
    }
}
