body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.app-page-footer {
    color: #7a7a7a;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 24px;
    padding: 8px 12px 16px;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.app-page-footer a {
    color: inherit;
    text-decoration: underline;
}

.app-page-footer a:hover,
.app-page-footer a:focus {
    color: #0078d7;
}


.top-nav-spacer {
    min-height: 50px;
}

.app-top-nav.fixed-top {
    background: #ffffff;
    border-bottom: 1px solid #d8e4ee;
    box-shadow: 0 2px 10px rgba(24, 89, 142, 0.12);
    left: 0;
    padding: 7px 12px;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.app-nav-list {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
}

.app-nav-menu-toggle-item {
    display: block;
    margin-right: auto;
    position: relative;
}

.app-mobile-menu-toggle {
    appearance: none;
    border: 1px solid #d8eafa;
    font-family: inherit;
}

.app-main-menu-dropdown {
    background-color: #ffffff;
    border: 1px solid #d8eafa;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(24, 89, 142, 0.16);
    display: none;
    left: 0;
    max-height: calc(100vh - 70px);
    min-width: 260px;
    overflow-y: auto;
    padding: 6px;
    position: absolute;
    top: calc(100% + 6px);
    z-index: 1050;
}

.app-nav-menu-toggle-item.is-open .app-main-menu-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-nav-list > .nav-item:not(.app-nav-persistent) {
    display: none;
}

.app-main-menu-dropdown .nav-item {
    display: block;
}

.app-main-menu-dropdown .btn-custom,
.app-main-menu-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #23445f;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px !important;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.app-main-menu-dropdown .btn-custom:hover,
.app-main-menu-dropdown .btn-custom:focus,
.app-main-menu-link:hover,
.app-main-menu-link:focus {
    background-color: #eef7ff;
    box-shadow: none;
    color: #005da8;
    outline: none;
    text-decoration: none;
}

.btn-custom {
    align-items: center;
    background-color: #f7fbff;
    border: 1px solid #d8eafa;
    border-radius: 999px;
    color: #23445f;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.93rem;
    font-weight: 500;
    gap: 7px;
    line-height: 1.2;
    margin-right: 0;
    min-height: 34px;
    padding: 7px 12px !important;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-custom:hover,
.btn-custom:focus {
    background-color: #eef7ff;
    border-color: #a9d7ff;
    box-shadow: 0 2px 8px rgba(0, 120, 215, 0.16);
    color: #005da8;
    text-decoration: none;
}

.btn-custom:focus {
    outline: none;
}

.app-nav-icon-button {
    justify-content: center;
    min-width: 38px;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.fill-history-nav-button span {
    display: none;
}

.menu-icon {
    flex: 0 0 auto;
    font-size: 0.98rem;
    line-height: 1;
    text-align: center;
    width: 1.15em;
}

.menu-icon-home {
    color: #0078d7;
}

.menu-icon-save {
    color: #22a652;
}

.menu-icon-edit {
    color: #7a57d1;
}

.menu-icon-print {
    color: #e88b13;
}

.menu-icon-recent {
    color: #1f9bb4;
}

.menu-icon-popular {
    color: #2a9d55;
}

.menu-icon-templates {
    color: #d45b8c;
}

.menu-icon-about {
    color: #7a57d1;
}

.menu-icon-feedback {
    color: #e06a3b;
}

.menu-icon-scroll {
    color: #607d8b;
}

.menu-icon-menu {
    color: #0078d7;
}

.menu-icon-history {
    color: #7a57d1;
}

.menu-icon-add {
    color: #22a652;
}

.menu-icon-google {
    color: #db4437;
}

.menu-icon-logout {
    color: #c94c4c;
}

.menu-icon-user,
.menu-icon-account {
    color: #2a9d55;
}

.app-auth-avatar {
    border-radius: 50%;
    display: block;
    flex: 0 0 auto;
    height: 20px;
    object-fit: cover;
    width: 20px;
}

.app-auth-nav-item {
    position: relative;
}

.app-auth-user-button {
    appearance: none;
    font-family: inherit;
}

.app-auth-dropdown {
    background-color: #ffffff;
    border: 1px solid #d8eafa;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(24, 89, 142, 0.16);
    display: none;
    min-width: 150px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 1050;
}

.app-auth-account:hover .app-auth-dropdown,
.app-auth-account:focus-within .app-auth-dropdown {
    display: block;
}

.app-auth-dropdown-link {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #23445f;
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 8px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.app-auth-dropdown-link:hover,
.app-auth-dropdown-link:focus {
    background-color: #eef7ff;
    color: #005da8;
    outline: none;
    text-decoration: none;
}

.disabled-item {
    background-color: #f1f4f7;
    border-color: #d7dde3;
    color: #8a98a5 !important;
    cursor: not-allowed;
    opacity: 0.72;
    pointer-events: none;
    text-decoration: none;
}

.disabled-item .menu-icon {
    color: #9aa6af;
}

.enabled-item {
    cursor: pointer !important;
    pointer-events: auto;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .top-nav-spacer {
        min-height: 50px;
    }
}

@media (max-width: 767.98px) {
    .top-nav-spacer {
        min-height: 50px;
    }

    .app-top-nav.fixed-top {
        padding: 6px 8px;
    }

    .app-nav-list {
        align-items: center;
        gap: 5px;
    }

    .app-mobile-menu-toggle {
        min-width: 94px;
    }

    .app-nav-icon-button {
        min-width: 42px;
    }

    .fill-history-nav-button {
        justify-content: center;
        min-width: 42px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .fill-history-nav-button span {
        display: none;
    }

    .app-metainfo-container.has-metainfo {
        border-bottom: 0;
        box-shadow: none;
        position: static;
        top: auto;
        z-index: auto;
    }

    .app-metainfo-container.has-metainfo #metainfo {
        margin-left: 0;
        margin-right: 0;
        padding: 7px 0;
    }

    .app-metainfo-container.has-metainfo .col-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .meta-info {
        margin-left: 0;
        padding-top: 0;
    }
}

.app-nav-list .nav-item:has(> .disabled-item),
.app-nav-list.is-open .nav-item:has(> .disabled-item) {
    display: none;
}

@media (max-width: 575.98px) {
    .top-nav-spacer {
        min-height: 48px;
    }

    .btn-custom {
        font-size: 0.88rem;
        min-height: 32px;
        padding: 6px 10px !important;
    }

    .add-button {
        font-size: 0.88rem;
        min-height: 32px;
        padding: 6px 12px;
    }
}

.app-metainfo-container {
    background-color: #ffffff;
}

.meta-info {
    display: block;
    margin-left: 15px;
    padding-top: 10px;
}

.meta-info p {
    margin-bottom: 0.5rem;
}

.meta-info h1#thisListInfo {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.template-meta-info {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.template-meta-info-line {
    margin-left: 15px;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .template-meta-info-line {
        margin-left: 0;
    }
}

.section-container {
    margin-bottom: 2rem;
}

.section-title {
    color: #0078d7;
    font-weight: lighter;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 3px;
    border-bottom: 1px solid #0078d7;

}

.item {
    background-color: #e1e1e1;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.add-button {
    align-items: center;
    background-color: #f7fbff;
    border: 1px solid #d8eafa;
    border-radius: 999px;
    color: #23445f;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.93rem;
    font-weight: 500;
    gap: 7px;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 10px;
    min-height: 34px;
    padding: 7px 14px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.add-button:hover,
.add-button:focus {
    background-color: #eef7ff;
    border-color: #a9d7ff;
    box-shadow: 0 2px 8px rgba(0, 120, 215, 0.16);
    color: #005da8;
    outline: none;
}

.modal-action-button {
    align-items: center;
    background-color: #f7fbff;
    border: 1px solid #d8eafa;
    border-radius: 999px;
    color: #23445f;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.93rem;
    font-weight: 500;
    gap: 7px;
    justify-content: center;
    line-height: 1.2;
    min-height: 34px;
    padding: 7px 14px;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.modal-action-button:hover,
.modal-action-button:focus {
    background-color: #eef7ff;
    border-color: #a9d7ff;
    box-shadow: 0 2px 8px rgba(0, 120, 215, 0.16);
    color: #005da8;
    outline: none;
}

.modal-action-button-primary:hover,
.modal-action-button-primary:focus {
    background-color: #f1fff6;
    border-color: #9dd9b3;
    box-shadow: 0 2px 8px rgba(34, 166, 82, 0.18);
    color: #126c36;
}

.modal-action-button-cancel:hover,
.modal-action-button-cancel:focus {
    background-color: #fff6f6;
    border-color: #e3c4c7;
    box-shadow: 0 2px 8px rgba(151, 90, 96, 0.16);
    color: #7c4b51;
}

.modal-action-icon {
    flex: 0 0 auto;
    font-size: 0.98rem;
    line-height: 1;
    text-align: center;
    width: 1.15em;
}

.modal-action-icon-primary {
    color: #22a652;
}

.modal-action-icon-cancel {
    color: #8a6f75;
}

.modal-action-icon-delete {
    color: #9d3f48;
}

@media (max-width: 575.98px) {
    .modal-action-button {
        font-size: 0.88rem;
        min-height: 32px;
        padding: 6px 12px;
    }
}

.item {
    display: flex;
    align-items: center;
}

.item-text {
    margin-left: 8px;
    cursor: pointer;
}

.item:not(.disabled) .item-text:hover {
    color: #007bff;
    text-decoration: underline;
}

.item.grayed-out .item-text {
    pointer-events: none;
}

.item.grayed-out .item-text:hover {
    color: inherit;
    text-decoration: none;
}

.undo-icon-grayed-out {
    pointer-events: auto;
}


.edit-icon,
.delete-icon {
    font-size: 14px;
    margin-right: 8px;
    cursor: pointer;
}

.delete-icon {
    color: #e74c3c;
}

.edit-icon {
    color: #3498db;
}

.grayed-out {
    color: #a9a9a9;
}


.undo-icon {
    cursor: pointer;
}


.custom-button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition-duration: 0.4s;
}

.custom-button:hover {
    background-color: #0069d9;
    color: white;
}


#saveListModal .modal-title {
    margin-bottom: 10px;
}

#saveListModal select {
    width: 100%;
}

#saveListModal #purposeDropdown {
    margin-bottom: 15px;
}


.fa-ul {
    list-style-type: none;
    padding-left: 1.5em;
    margin-left: 1.5em !important;
}

.fa-li {
    position: absolute;
    left: -1.5em;
    color: #89dc9c;
}

li.template-list-item {
    background-color: white;
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    line-height: 1.5;
}

/* Remove text underline and make the whole box a link */
li.template-list-item a {
    display: block;
    width: 100%;
    text-decoration: none;
    /* Remove underline */
}

li.template-list-item:hover {
    background-color: #f0f0f0;
    /* Change to desired hover color */
    transition: background-color 0.3s ease;
}


li.selected {
    background-color: #dff0d8;
    border: 1px solid #28a745;
}

li.selected .fa-li i {
    color: #28a745;
}

.sidecolumn {
    /* background-color: rgb(248, 249, 250); */
}

#country-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

#country-cloud a {
    /* transition: transform 0.2s, color 0.2s;
    font-weight: normal; */
    text-decoration: underline !important;
}

#country-cloud a:hover {
    transform: scale(1.1);
    color: #ed8282 !important;
    text-decoration: none !important;
}

.templatesrow {
    background-color: rgb(248, 249, 250) !important;
}

.description {
    font-weight: lighter;
}

/* Add this CSS for emoji alignment and hover effect */
.emoji {
    display: inline-block;
    width: 2em;
    text-align: center;
}

.text {
    vertical-align: middle;
}

.templates-page-content {
    padding-bottom: 30px;
}

.templates-page-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.templates-page-list .template-list-item {
    width: 100%;
}

.templates-page-list .template-list-item a {
    padding-left: 1.75rem;
}

.templates-page-list .fa-li {
    left: 0.75rem;
    top: 0.95rem;
    width: 1rem;
}

.templates-page-countries {
    margin-top: 24px;
}

.templates-page-countries .templatesrow {
    margin-left: 0;
    margin-right: 0;
}

.seo-country-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
    margin: 1rem 0 2rem;
}

.seo-country-directory-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #d8e6f2;
    color: #0067b8;
    font-size: 1rem;
}

.seo-country-directory-link:hover,
.seo-country-directory-link:focus {
    color: #004f8d;
    background: #f2f8fd;
    text-decoration: none;
}

.seo-initial-content h2.section-title {
    margin-top: 0;
}

.about-page-content {
    color: #263746;
    padding-bottom: 40px;
}

.about-page-lead {
    color: #3f5668;
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 8px;
}

.about-section {
    border-bottom: 1px solid #dbe8f2;
    padding: 20px 0;
}

.about-section h3,
.about-sign-in h3 {
    color: #0078d7;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.about-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-feature-list li {
    line-height: 1.55;
    margin-bottom: 10px;
    padding-left: 1.75rem;
    position: relative;
}

.about-feature-list i {
    color: #22a652;
    left: 0;
    position: absolute;
    top: 0.32rem;
}

.about-sign-in {
    background-color: #f7fbff;
    border-bottom: 1px solid #d8eafa;
    border-top: 1px solid #d8eafa;
    margin-top: 24px;
    padding: 22px 18px;
}

.about-account-action {
    display: inline-flex;
    margin-top: 8px;
    text-decoration: none;
}

.about-account-action:hover,
.about-account-action:focus {
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .about-page-lead {
        font-size: 1rem;
    }

    .about-section {
        padding: 16px 0;
    }

    .about-sign-in {
        margin-left: -15px;
        margin-right: -15px;
        padding: 18px 15px;
    }
}

.feedback-page-content {
    max-width: 760px;
}

.feedback-page-lead {
    color: #4c5f6f;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.feedback-form label {
    color: #23445f;
    font-weight: 600;
}

.feedback-form .form-control {
    border-color: #c8d9e6;
    border-radius: 6px;
}

.feedback-form .form-control:focus {
    border-color: #69b8f3;
    box-shadow: 0 0 0 0.2rem rgba(0, 120, 215, 0.14);
}

.feedback-required {
    color: #c94c4c;
}

.feedback-optional {
    color: #71808c;
    font-size: 0.86rem;
    font-weight: 400;
}

.feedback-general-error {
    background-color: #fff5f5;
    border: 1px solid #efc8c8;
    border-radius: 6px;
    color: #9b3030;
    margin-bottom: 1rem;
    padding: 10px 12px;
}

.feedback-submit-button {
    background-color: #eef8ff;
    border-color: #acd7f5;
    margin-top: 4px;
}

.feedback-honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.feedback-success-page {
    padding-top: 24px;
}

.feedback-success-card {
    background-color: #f8fff9;
    border: 1px solid #cfead6;
    border-radius: 6px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 860px;
    padding: 32px 24px;
    text-align: center;
    width: 100%;
}

.feedback-success-icon {
    align-items: center;
    background-color: #22a652;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(34, 166, 82, 0.22);
    display: flex;
    height: 118px;
    justify-content: center;
    margin: 0 auto 22px;
    width: 118px;
}

.feedback-success-icon::before {
    border-bottom: 12px solid #ffffff;
    border-right: 12px solid #ffffff;
    content: "";
    display: block;
    height: 60px;
    margin-top: -8px;
    transform: rotate(45deg);
    width: 32px;
}

.feedback-success-card h1 {
    color: #178a46;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.35;
    margin: 0 auto 24px;
    max-width: 760px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.feedback-home-link {
    background-color: #ffffff;
    border-color: #b9ddc2;
}

@media (max-width: 575.98px) {
    .feedback-page-lead {
        font-size: 0.98rem;
        margin-bottom: 1rem;
    }

    .feedback-success-page {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 12px;
    }

    .feedback-success-card {
        padding: 22px 14px;
    }

    .feedback-success-icon {
        height: 88px;
        width: 88px;
    }

    .feedback-success-icon::before {
        border-bottom-width: 9px;
        border-right-width: 9px;
        height: 45px;
        width: 24px;
    }

    .feedback-success-card h1 {
        font-size: 1.35rem;
    }
}

/* Change color for the whole box on hover */
li.template-list-item:hover {
    background-color: #f0f0f0;
    /* Change to desired hover color */
    transition: background-color 0.1s ease;
}

.country-lists-title {
    align-items: center;
    color: #0078d7;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    font-weight: lighter;
    margin-bottom: 1rem;
}

.country-lists-title > span:first-child {
    flex: 0 1 auto;
    min-width: 0;
}

.country-lists-title-flag {
    flex: 0 0 auto;
}

.country-lists-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.country-list-item {
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
}

.country-list-item.is-mine {
    background-color: #f1fff6;
    border-color: #b8e8c8;
}

.country-list-item.is-mine:hover {
    background-color: #e7faee;
}

.country-list-item.is-anonymous-reference {
    background-color: #f4f8fc;
    border-color: #b9cfe2;
    border-left: 4px solid #5d91bd;
}

.country-list-item.is-anonymous-reference:hover {
    background-color: #eaf3fa;
}

.country-list-item.is-filling,
.country-list-item.is-filling:hover {
    background-color: #fff7c8;
}

.country-list-link {
    display: block;
    min-width: 0;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-list-link:hover {
    text-decoration: underline;
}

.account-list-relationship-badge {
    background-color: #e4eef7;
    border-radius: 3px;
    color: #3f6687;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 8px;
    padding: 1px 5px;
    text-decoration: none;
    vertical-align: middle;
}

.account-list-row {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.list-preview-row {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 0;
}

.list-preview-row .country-list-link,
.account-list-row .country-list-link {
    flex: 1 1 auto;
}

.list-template-icon-link {
    align-items: center;
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 28px;
}

.list-template-icon-link:hover,
.list-template-icon-link:focus {
    background-color: #eef7ff;
    text-decoration: none;
}

.list-template-icon-link:focus {
    outline: 2px solid #a9d7ff;
    outline-offset: 2px;
}

.list-template-icon {
    display: inline-block;
    font-size: 1.15rem;
    line-height: 1;
}

.fill-list-button {
    align-items: center;
    background-color: #fff6c7;
    border: 1px solid #ead878;
    border-radius: 999px;
    color: #6e5b00;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 5px;
    min-height: 30px;
    padding: 4px 10px;
    text-decoration: none;
}

.fill-list-button:hover,
.fill-list-button:focus {
    background-color: #ffef95;
    color: #4e4000;
    text-decoration: none;
}

.account-delete-list-button {
    align-items: center;
    background-color: #fff6f6;
    border: 1px solid #e3c4c7;
    border-radius: 999px;
    color: #9d3f48;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.account-delete-list-button:hover,
.account-delete-list-button:focus {
    background-color: #ffecec;
    border-color: #dca7ad;
    color: #7c222b;
    outline: none;
}

@media (max-width: 991.98px) {
    .country-list-link {
        display: inline !important;
        flex: none !important;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .list-preview-row,
    .account-list-row {
        align-items: baseline;
        display: block !important;
        gap: 0;
        line-height: 1.45;
        min-width: 0;
    }

    .list-preview-row .fill-list-button,
    .account-list-row .fill-list-button {
        display: inline-flex !important;
        flex: none !important;
        min-height: 0;
        padding: 2px 8px;
    }

    .list-preview-row .fill-list-button,
    .account-list-row .fill-list-button,
    .list-preview-row .list-template-icon-link,
    .account-list-row .list-template-icon-link {
        margin-right: 5px;
        vertical-align: baseline;
    }

    .list-preview-row .list-template-icon-link,
    .account-list-row .list-template-icon-link {
        display: inline-flex !important;
        flex: none !important;
        height: auto;
        width: auto;
    }

    .account-list-row .account-delete-list-button {
        margin-left: 5px;
        vertical-align: middle;
    }
}

.account-empty-state,
.account-login-state {
    background-color: #f7fbff;
    border: 1px solid #d8eafa;
    border-radius: 8px;
    color: #23445f;
    padding: 26px;
    text-align: center;
}

.account-empty-state h2,
.account-login-state h2 {
    color: #0078d7;
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.country-lists-empty {
    color: #666;
    font-weight: lighter;
}

.country-lists-pagination {
    margin: 16px 0 28px;
    display: flex;
    justify-content: center;
}

.country-lists-pagination .pagination {
    margin-bottom: 0;
}

.country-lists-pagination .page-link {
    color: #0078d7;
}

.country-lists-pagination .page-link:hover {
    color: #005a9e;
}

.fill-page-container {
    max-width: 860px;
}

.fill-history-nav-button:disabled,
.fill-history-nav-button:disabled:hover,
.fill-history-nav-button:disabled:focus {
    background-color: #f2f2f2;
    border-color: #d4d4d4;
    color: #929292;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.72;
}

.fill-history-nav-button:disabled .menu-icon-history {
    color: #929292;
}

.fill-note {
    background-color: #fff8bd;
    border: 1px solid #eadb83;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(95, 85, 28, 0.14);
    margin-bottom: 34px;
    padding: 12px;
}

.fill-section {
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 4px 0;
}

.fill-section-a {
    background-color: #fff7bd;
}

.fill-section-b {
    background-color: #fffbd8;
}

.fill-checked-section {
    background-color: #f1f1e8;
    border-radius: 6px;
    margin-top: 12px;
    padding: 4px 0;
}

.fill-item {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
    min-height: 38px;
    padding: 7px 10px;
}

.fill-item + .fill-item {
    border-top: 1px solid rgba(121, 102, 18, 0.12);
}

.fill-checkbox {
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.fill-item-text {
    color: #2f2f2f;
    line-height: 1.25;
}

.fill-item.is-checked .fill-item-text {
    color: #777;
    text-decoration: line-through;
}

.fill-item.is-completing {
    animation: fillItemComplete 0.2s ease-in forwards;
    max-height: var(--fill-item-collapse-height, 38px);
    overflow: hidden;
    pointer-events: none;
}

@keyframes fillItemComplete {
    0% {
        border-color: rgba(121, 102, 18, 0.12);
        margin-bottom: 0;
        max-height: var(--fill-item-collapse-height, 38px);
        min-height: 38px;
        opacity: 1;
        padding-bottom: 7px;
        padding-top: 7px;
        transform: translateY(0);
    }
    55% {
        border-color: rgba(121, 102, 18, 0.06);
        max-height: var(--fill-item-collapse-height, 38px);
        min-height: 30px;
        opacity: 0.45;
        padding-bottom: 5px;
        padding-top: 5px;
        transform: translateY(12px);
    }
    100% {
        border-color: transparent;
        margin-bottom: 0;
        max-height: 0;
        min-height: 0;
        opacity: 0;
        padding-bottom: 0;
        padding-top: 0;
        transform: translateY(14px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fill-item.is-completing {
        animation: none;
        border-color: transparent;
        max-height: 0;
        min-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-bottom: 0;
        padding-top: 0;
    }
}

.fill-error {
    background-color: #fff0f0;
    border: 1px solid #e5b5b5;
    border-radius: 6px;
    color: #8a2929;
    margin-bottom: 10px;
    padding: 8px 10px;
}

.fill-empty {
    color: #695d17;
    margin: 8px;
}

.fill-lock-notice {
    background-color: #fff7c8;
    border: 1px solid #ead878;
    border-radius: 8px;
    color: #675600;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.fill-lock-return-link {
    color: #006fba;
    display: inline-block;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.list-update-forbidden-modal {
    border: 0;
    box-shadow: 0 10px 28px rgba(50, 60, 70, 0.22);
}

.list-update-forbidden-icon {
    align-items: center;
    background-color: #fff3cd;
    border-radius: 50%;
    color: #a76500;
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    margin: 4px auto 16px;
    width: 72px;
}

.list-update-forbidden-message {
    color: #4f5962;
    line-height: 1.5;
    margin: 12px auto 0;
    max-width: 430px;
}

@media (max-width: 575.98px) {
    .fill-lock-return-link {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .list-update-forbidden-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .list-update-forbidden-modal .modal-action-button {
        justify-content: center;
        width: 100%;
    }
}

.country-lists-pagination .page-item.active .page-link {
    background-color: #0078d7;
    border-color: #0078d7;
    color: #ffffff;
}

.country-lists-pagination .page-item.disabled .page-link {
    color: #9bbfe0;
}

.popular-countries-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 28px;
}

.popular-country-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popular-country-heading {
    align-items: center;
    color: #0078d7;
    display: flex;
    font-size: 1.35rem;
    font-weight: lighter;
    gap: 12px;
    line-height: 1.3;
    text-decoration: none;
}

.popular-country-heading:hover {
    color: #005a9e;
    text-decoration: underline;
}

.popular-country-flag {
    align-items: center;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 1.25rem;
    justify-content: center;
    line-height: 1;
}

.popular-country-flag-image {
    border-radius: 2px;
    display: block;
    height: 21px;
    object-fit: cover;
    width: 28px;
}

.popular-country-name {
    min-width: 0;
}

.popular-country-lists {
    gap: 8px;
}

.popular-country-list-item {
    margin-left: 46px;
}

.admin-actions {
    margin-bottom: 16px;
}

.admin-delete-list-button {
    background-color: #dc3545;
    border: 1px solid #c82333;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 16px;
}

.admin-delete-list-button:hover {
    background-color: #c82333;
}

.admin-delete-report,
.admin-delete-error {
    background-color: #f8f9fa;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #333333;
    padding: 16px;
    white-space: pre-wrap;
}

.admin-delete-error {
    border-color: #dc3545;
    color: #842029;
}

.list-not-found {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-top: 24px;
    padding: 24px;
}

.list-not-found h1,
.list-not-found h2 {
    color: #0078d7;
    font-weight: lighter;
    margin-bottom: 12px;
}

.seo-error-code {
    color: #8a98a5;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0;
}

.saved-success-card {
    background-color: #f8fff9;
    border: 1px solid #cfead6;
    border-radius: 6px;
    display: none;
    margin-top: 24px;
    padding: 28px;
    text-align: center;
}

.saved-success-card.is-visible {
    display: block;
}

.saved-success-icon {
    align-items: center;
    background-color: #22a652;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(34, 166, 82, 0.22);
    display: flex;
    height: 118px;
    justify-content: center;
    margin: 0 auto 22px;
    width: 118px;
}

.saved-success-icon::before {
    border-bottom: 12px solid #ffffff;
    border-right: 12px solid #ffffff;
    content: "";
    display: block;
    height: 60px;
    margin-top: -8px;
    transform: rotate(45deg);
    width: 32px;
}

.saved-success-card h1 {
    color: #178a46;
    font-weight: lighter;
    margin-bottom: 12px;
}

.saved-success-text {
    color: #444444;
    font-size: 18px;
    font-weight: lighter;
    margin: 0 auto 20px;
    max-width: 680px;
}

.saved-link-panel {
    background-color: #ffffff;
    border: 1px solid #d7ecdc;
    border-radius: 6px;
    margin: 0 auto;
    max-width: 760px;
    padding: 16px;
    text-align: left;
}

.saved-link-label {
    color: #178a46;
    font-weight: 600;
    margin-bottom: 8px;
}

.saved-list-link {
    color: #0078d7;
    display: block;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: underline;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .container {
        max-width: 100%;
    }

    .maincolumn,
    .sidecolumn {
        min-width: 0;
    }

    .sidecolumn {
        margin-top: 24px;
    }

    .sidecolumn .form-group {
        margin-bottom: 18px;
    }

    .templatesrow {
        border-radius: 6px;
        margin-left: 0;
        margin-right: 0;
        padding: 6px 0;
    }

    .fa-ul {
        margin-left: 0 !important;
        padding-left: 0;
    }

    .fa-li {
        display: none;
    }

    li.template-list-item {
        margin: 8px 0;
        padding: 9px 10px;
    }

    li.template-list-item a {
        overflow-wrap: anywhere;
    }

    #country-cloud {
        justify-content: flex-start;
        margin: 8px 0;
        row-gap: 6px;
    }

    #country-cloud a {
        display: inline-block;
        overflow-wrap: anywhere;
    }

    .section-title {
        font-size: 1.25rem;
        margin-top: 0.5rem;
    }

    .country-lists-title {
        font-size: 1rem;
        gap: 6px;
        line-height: 1.25;
        margin-bottom: 0.65rem;
    }

    .country-lists-title > span:first-child {
        white-space: nowrap;
    }

    .popular-country-heading {
        align-items: flex-start;
        font-size: 1.2rem;
    }

    .popular-country-list-item {
        margin-left: 0;
    }

    .country-lists-pagination {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
    }

    .country-lists-pagination .pagination {
        flex-wrap: nowrap;
    }

    .saved-success-card {
        margin-top: 12px;
        padding: 18px 14px;
    }

    .saved-success-icon {
        height: 88px;
        width: 88px;
    }

    .saved-success-icon::before {
        border-bottom-width: 9px;
        border-right-width: 9px;
        height: 45px;
        width: 24px;
    }

    .saved-success-text,
    .saved-list-link {
        font-size: 16px;
    }
}

.saved-list-link:hover {
    color: #005a9e;
}

.loading-region {
    align-items: center;
    color: #0078d7;
    display: flex;
    flex-direction: column;
    font-weight: lighter;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.loading-region-main {
    min-height: 220px;
    padding: 32px 12px;
}

.loading-region-small {
    min-height: 90px;
    padding: 16px 8px;
}

.loading-spinner {
    animation: loading-spin 0.9s linear infinite;
    border: 4px solid #d9ebfb;
    border-top-color: #0078d7;
    border-radius: 50%;
    display: inline-block;
    height: 36px;
    width: 36px;
}

.is-button-loading {
    align-items: center;
    cursor: wait !important;
    display: inline-flex;
    justify-content: center;
}

.button-loading-spinner {
    animation: loading-spin 0.7s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    border-top-color: #ffffff;
    display: inline-block;
    height: 1em;
    margin-right: 8px;
    width: 1em;
}

.loading-region-main .loading-spinner {
    border-width: 5px;
    height: 56px;
    width: 56px;
}

.loading-text {
    display: block;
    margin-top: 10px;
}

.loading-error {
    color: #842029;
    font-weight: lighter;
    padding: 12px;
}

.item-modal-input-row {
    align-items: flex-start;
    display: flex;
    gap: 8px;
}

.item-suggestion-spinner-slot {
    align-items: center;
    display: flex;
    flex: 0 0 28px;
    height: 38px;
    justify-content: center;
    visibility: hidden;
}

.item-suggestion-spinner-slot.is-searching {
    visibility: visible;
}

.item-suggestion-spinner {
    border-width: 3px;
    height: 20px;
    width: 20px;
}

.item-suggestion-input-area {
    flex: 1 1 auto;
    min-width: 0;
}

.item-suggestions-dropdown {
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    display: none;
    margin-top: 4px;
    max-height: min(220px, 35vh);
    overflow-y: auto;
    width: 100%;
}

.item-suggestion-option {
    cursor: pointer;
    padding: 8px 10px;
}

.item-suggestion-option:hover,
.item-suggestion-option.active {
    background-color: #e9f4ff;
}

.item-suggestion-match {
    background-color: #fff3a3;
    font-weight: bold;
    padding: 0;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}
