.footer {
    margin-top: auto;
    width: 100%;
}

.footer-content {
    background-color: #1b1b1b;
}
.footer-content .row {
    display: flex;
    align-items: baseline;
}
.footer-content .widget_links a {
    color: #ffffff;
}

.footer-with-region-switcher {
    display: flex;
    align-items: center;
    min-height: 62px;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    font-family: 'Ithaca', serif;
    font-size: 1rem;
}

.footer-with-region-switcher .copyright {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
}

.footer-newsletter-wrap {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.footer-region-switcher-wrap {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

@media (max-width: 1024px) {
    .footer-with-region-switcher {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }
    .footer-with-region-switcher .copyright {
        order: 3;
        flex: 1 1 100%;
        white-space: normal;
    }
    .footer-newsletter-wrap,
    .footer-region-switcher-wrap {
        flex: 0 1 auto;
        justify-content: center;
    }
    .footer-newsletter-wrap .enthroned-newsletter {
        width: 280px;
    }
}

/* --- Newsletter signup form  --------------- */
/* The component root is a flex item here; without an explicit width it
   shrink-wraps its content and the form's width:100% collapses with it. */
.footer-newsletter-wrap .enthroned-newsletter {
    width: 100%;
    max-width: 280px;
}
.footer-newsletter-wrap .newsletter-form {
    width: 100%;
    margin: 0;
}
.enthroned-newsletter .newsletter-form .input-group {
    margin: 0;
}

.enthroned-newsletter .newsletter-form .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f4e3c2;
    font-family: 'Ithaca', serif;
    font-size: 1rem;
    height: 38px;
    padding: 6px 12px !important;
    box-shadow: none;
}
.enthroned-newsletter .newsletter-form .form-control::placeholder {
    color: #a89a6f;
    opacity: 1;
    font-family: 'Ithaca', serif;
}
.enthroned-newsletter .newsletter-form .form-control:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: #cfbe4c !important;
    color: #f4e3c2;
    box-shadow: none;
    outline: none;
}
.enthroned-newsletter .newsletter-form .form-control:-webkit-autofill,
.enthroned-newsletter .newsletter-form .form-control:-webkit-autofill:hover,
.enthroned-newsletter .newsletter-form .form-control:-webkit-autofill:focus,
.enthroned-newsletter .newsletter-form .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #14140b inset !important;
    -webkit-text-fill-color: #f4e3c2 !important;
    caret-color: #f4e3c2;
    transition: background-color 5000s ease-in-out 0s;
}

.enthroned-newsletter-modal .modal-dialog {
    max-width: 560px;
}
.enthroned-newsletter-modal .modal-content {
    border: 12px solid transparent;
    border-image: url('/images/WebUI/Container_5.png') 6 fill stretch;
    border-radius: 0;
    /* The art's fill slice is only 85% opaque, so the page reads through it without an
       opaque backing. Same fix as .pixel-modal in store.css. */
    background-color: #f6f6da;
    background-clip: padding-box;
    box-shadow: none;
    color: #0a0e14;
    font-family: 'Ithaca', serif;
    image-rendering: pixelated;
    padding: 20px 24px 18px;
}
.enthroned-newsletter-modal .modal-content * {
    image-rendering: auto;
}

.enthroned-newsletter-modal .modal-header,
.enthroned-newsletter-modal .modal-body,
.enthroned-newsletter-modal .modal-footer {
    background: transparent;
    border: 0;
    padding: 0;
}
.enthroned-newsletter-modal .modal-header {
    align-items: center;
    margin-bottom: 16px;
}
.enthroned-newsletter-modal .modal-title {
    font-family: 'Ithaca', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #a7483e;
    margin: 0;
}

.enthroned-newsletter-modal .btn-close {
    all: unset;
    /* Ithaca draws a small glyph, so the size is set well above the text scale to
       reach a usable hit area. */
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -8px -8px -8px 0;
    font-family: 'Ithaca', serif;
    font-size: 2.6rem;
    line-height: 1;
    color: #a7483e;
    cursor: pointer;
}
.enthroned-newsletter-modal .btn-close::before {
    content: '\00D7';
}
.enthroned-newsletter-modal .btn-close:hover {
    color: #5c2708;
}
.enthroned-newsletter-modal .btn-close:focus-visible {
    outline: 2px solid #a7483e;
    outline-offset: 2px;
}

.enthroned-newsletter-modal .modal-body {
    color: #0a0e14;
    font-size: 1.05rem;
    line-height: 1.45;
}
.enthroned-newsletter-modal .modal-body a {
    color: #8a3b12;
    text-decoration: underline;
}
.enthroned-newsletter-modal .modal-body a:hover {
    color: #5c2708;
}
.enthroned-newsletter-modal .modal-footer {
    justify-content: flex-end;
    margin-top: 20px;
}
.enthroned-newsletter-modal .newsletter-error {
    margin: 14px 0 0;
    color: #a7483e;
    font-size: 1.05rem;
    font-weight: 700;
}
.enthroned-newsletter-modal .newsletter-success p {
    margin: 0;
    color: #0a0e14;
}

.enthroned-newsletter-modal .newsletter-preferences {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enthroned-newsletter-modal .newsletter-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
}
.enthroned-newsletter-modal .newsletter-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.enthroned-newsletter-modal .newsletter-check .custom-cb {
    display: inline-block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    margin: 0;
    background: url('/images/WebUI/Checkbox.png') center/contain no-repeat;
    image-rendering: pixelated;
    cursor: pointer;
}
.enthroned-newsletter-modal .newsletter-check:hover .custom-cb {
    background-image: url('/images/WebUI/Checkbox_Hover.png');
}
.enthroned-newsletter-modal .newsletter-check input[type="checkbox"]:checked + .custom-cb {
    background-image: url('/images/WebUI/Checkbox_Checked.png');
}
.enthroned-newsletter-modal .newsletter-check input[type="checkbox"]:focus-visible + .custom-cb {
    outline: 2px solid #a7483e;
    outline-offset: 2px;
}
.enthroned-newsletter-modal .newsletter-check label:not(.custom-cb) {
    flex: 1;
    margin: 0;
    font-family: 'Ithaca', serif;
    font-size: 1.15rem;
    color: #0a0e14;
    cursor: pointer;
}

.enthroned-newsletter-modal .newsletter-privacy {
    margin-top: 13px;
    padding-top: 18px;
    border-top: 2px solid #cfbe4c;
}

.enthroned-newsletter-modal .newsletter-confirm-btn,
.enthroned-newsletter-modal .btn-primary {
    display: inline-block;
    padding: 4px 16px;
    font-family: 'Ithaca', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #f4e3c2;
    background: transparent;
    border: 6px solid transparent;
    border-image: url('/images/WebUI/leaderboards/button.png') 3 fill stretch;
    border-radius: 0;
    box-shadow: none;
    image-rendering: pixelated;
    transition: filter .15s ease;
}
.enthroned-newsletter-modal .newsletter-confirm-btn:hover,
.enthroned-newsletter-modal .newsletter-confirm-btn:focus,
.enthroned-newsletter-modal .btn-primary:hover,
.enthroned-newsletter-modal .btn-primary:focus {
    filter: brightness(1.12);
    color: #f4e3c2;
    background: transparent;
    box-shadow: none;
}
.enthroned-newsletter-modal .newsletter-confirm-btn:active,
.enthroned-newsletter-modal .btn-primary:active {
    transform: translateY(1px);
    color: #f4e3c2;
    background: transparent;
}
.enthroned-newsletter-modal .newsletter-confirm-btn:disabled {
    filter: grayscale(.6) brightness(.8);
    cursor: default;
}

@media (max-width: 575.98px) {
    .enthroned-newsletter-modal .modal-content {
        padding: 16px 16px 14px;
    }
    .enthroned-newsletter-modal .modal-title {
        font-size: 1.35rem;
    }
}

/* Site pixel button, same as the blog and store (17x17 art, 3 slice, 6px border = 2x). */
.enthroned-newsletter .newsletter-form .btn-primary {
    padding: 0 14px;
    height: 38px;
    font-family: 'Ithaca', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #f4e3c2;
    background: transparent;
    border: 6px solid transparent;
    border-image: url('/images/WebUI/leaderboards/button.png') 3 fill stretch;
    border-radius: 0;
    box-shadow: none;
    image-rendering: pixelated;
    transition: filter .15s ease;
}
.enthroned-newsletter .newsletter-form .btn-primary:hover,
.enthroned-newsletter .newsletter-form .btn-primary:focus {
    filter: brightness(1.12);
    background: transparent;
    color: #f4e3c2;
    box-shadow: none;
    outline: none;
}
.enthroned-newsletter .newsletter-form .btn-primary:active {
    transform: translateY(1px);
    background: transparent;
    color: #f4e3c2;
}

.copyright {
    font-size: 1rem;
    color: #ffffff;
}
.sub-footer span,
.sub-footer .copyright {
    color: #ffffff;
}
.sub-footer a {
    color: #ffffff;
}
.sub-footer a:hover {
    color: #ffff97 !important;
}

.copyright a {
    color: darkgray;
    white-space: nowrap;
}

.region-switcher {
    position: relative;
    display: inline-block;
}
.region-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 4px 10px;
    color: lightgray;
    text-decoration: none;
    font-size: inherit;
    font-family: 'Ithaca', serif;
}
.region-switcher-toggle:hover,
.region-switcher-toggle:focus-visible {
    color: #cfbe4c;
    background: transparent;
    text-decoration: none;
    outline: none;
}

.region-switcher-toggle.show,
.region-switcher-toggle:active {
    color: lightgray;
    background: transparent;
    text-decoration: none;
    box-shadow: none;
}

.region-switcher-toggle:focus {
    box-shadow: none;
}

.region-switcher-toggle.show:hover,
.region-switcher-toggle.show:focus-visible {
    color: #cfbe4c;
}

.region-switcher-icon {
    line-height: 1;
    flex-shrink: 0;
}
img.region-switcher-icon {
    width: 52px;
    height: auto;
    display: inline-block;
    image-rendering: auto;
}
.region-switcher-caret {
    font-size: 0.75em;
    opacity: 0.7;
    margin-left: 2px;
}

.region-switcher-menu {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px 0;
    font-family: 'Ithaca', serif;
}
.region-switcher-menu .dropdown-item {
    color: lightgray !important;
    background-color: transparent !important;
}
.region-switcher-menu .dropdown-item:hover,
.region-switcher-menu .dropdown-item:focus {
    color: #cfbe4c !important;
    background-color: rgba(207, 190, 76, 0.12) !important;
}
.region-switcher-menu .dropdown-item.active,
.region-switcher-menu .dropdown-item:active {
    color: #cfbe4c !important;
    background-color: rgba(207, 190, 76, 0.2) !important;
    font-weight: 600;
}
.region-switcher-form {
    margin: 0;
}
.region-switcher-option {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 0;
    padding: 8px 22px 8px 10px;
    text-align: left;
    cursor: pointer;
}

.enthroned-cta {
    display: inline-block;
    font-family: 'Ithaca', serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: #1a1a0e;
    background: #cfbe4c;
    border: 2px solid #cfbe4c;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.enthroned-cta:hover,
.enthroned-cta:focus-visible {
    background: #e3d367;
    border-color: #e3d367;
    color: #1a1a0e;
    outline: none;
}
.enthroned-cta[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.enthroned-cta--sm {
    font-size: 14px;
    padding: 6px 16px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer {
        display: none;
    }

    .lpx-footer {
        margin-bottom: 10px;
    }
}

