:root {
    --uc-mz-green: #0f6b3a;
    --uc-mz-green-dark: #123d2a;
    --uc-mz-green-soft: #eef6e9;
    --uc-mz-cream: #fffdf6;
    --uc-mz-border: #dbe8d5;
    --uc-mz-orange: #f47a20;
    --uc-mz-shadow: 0 12px 32px rgba(18, 61, 42, .12);
}

.uc-mz-affiliate-enabled main {
    position: relative;
    z-index: 1;
}

.uc-mz-ad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 30%);
    align-items: center;
    gap: 24px;
    width: 100%;
    margin: 28px 0;
    padding: 24px;
    overflow: hidden;
    color: var(--uc-mz-green-dark);
    background: var(--uc-mz-cream);
    border: 1px solid var(--uc-mz-border);
    border-radius: 8px;
    box-shadow: var(--uc-mz-shadow);
}

.uc-mz-ad__content {
    min-width: 0;
}

.uc-mz-ad__label {
    display: inline-block;
    margin-bottom: 8px;
    color: #557064;
    font: 600 11px/1.3 Inter, sans-serif;
    letter-spacing: 0;
    text-transform: uppercase;
}

.uc-mz-ad__kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--uc-mz-green);
    font: 700 12px/1.3 Inter, sans-serif;
    text-transform: uppercase;
}

.uc-mz-ad h2,
.uc-mz-ad h3 {
    margin: 0 0 8px;
    color: var(--uc-mz-green-dark);
    font: 600 clamp(22px, 2.4vw, 32px)/1.15 "Playfair Display", serif;
    letter-spacing: 0;
}

.uc-mz-ad p {
    max-width: 660px;
    margin: 0 0 14px;
    color: #40564c;
    font: 400 15px/1.65 Inter, sans-serif;
}

.uc-mz-ad .uc-mz-ad__promo,
.uc-mz-popup .uc-mz-ad__promo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--uc-mz-green);
    font-size: 13px;
    font-weight: 700;
}

.uc-mz-ad__cta,
.uc-mz-popup__actions > a,
.uc-mz-sticky > a,
.uc-mz-chat-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    color: #fff !important;
    background: var(--uc-mz-green);
    border: 1px solid var(--uc-mz-green);
    border-radius: 6px;
    font: 700 14px/1.2 Inter, sans-serif;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.uc-mz-chat-card--text {
    padding: 12px;
    background: #fffdf6;
}

.uc-mz-chat-card--text p {
    margin-bottom: 8px;
}

.uc-mz-ad__cta:hover,
.uc-mz-ad__cta:focus-visible,
.uc-mz-popup__actions > a:hover,
.uc-mz-popup__actions > a:focus-visible,
.uc-mz-sticky > a:hover,
.uc-mz-sticky > a:focus-visible,
.uc-mz-chat-card__cta:hover,
.uc-mz-chat-card__cta:focus-visible {
    color: #fff !important;
    background: var(--uc-mz-green-dark);
    border-color: var(--uc-mz-green-dark);
    transform: translateY(-1px);
}

.uc-mz-ad__image {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 210px;
    justify-self: end;
    object-fit: contain;
}

.uc-mz-ad--image-left .uc-mz-ad__image {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.uc-mz-ad--image-left .uc-mz-ad__content {
    grid-column: 2;
}

.uc-mz-ad--image-top {
    grid-template-columns: 1fr;
}

.uc-mz-ad--image-top .uc-mz-ad__image {
    grid-row: 1;
    max-width: 360px;
    justify-self: start;
}

.uc-mz-ad--compact .uc-mz-ad__image {
    max-width: 150px;
    max-height: 110px;
}

@media (min-width: 768px) {
    .uc-mz-device-mobile-only {
        display: none !important;
    }
}

.uc-mz-multi {
    width: 100%;
    margin: 28px 0;
    padding: 24px;
    color: var(--uc-mz-green-dark);
    background: var(--uc-mz-cream);
    border: 1px solid var(--uc-mz-border);
    border-radius: 8px;
    box-shadow: var(--uc-mz-shadow);
}

.uc-mz-multi h3 {
    margin: 0 0 6px;
    font: 600 clamp(22px, 2.4vw, 30px)/1.15 "Playfair Display", serif;
}

.uc-mz-multi > p {
    margin: 0 0 18px;
    color: #40564c;
}

.uc-mz-multi__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.uc-mz-multi__grid > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    color: var(--uc-mz-green-dark);
    background: #fff;
    border: 1px solid var(--uc-mz-border);
    border-radius: 6px;
    text-decoration: none;
}

.uc-mz-multi__grid img {
    width: 78px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}

.uc-mz-multi__grid span {
    display: grid;
    min-width: 0;
}

.uc-mz-multi__grid strong,
.uc-mz-multi__grid small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-mz-multi__grid small {
    color: var(--uc-mz-green);
    font-weight: 700;
}

.uc-mz-multi__grid > a:hover,
.uc-mz-multi__grid > a:focus-visible {
    border-color: var(--uc-mz-green);
    box-shadow: 0 8px 20px rgba(18, 61, 42, .1);
}

.uc-mz-debug {
    margin-top: 14px;
    font-size: 11px;
}

.uc-mz-debug pre {
    max-height: 220px;
    margin: 8px 0 0;
    padding: 10px;
    overflow: auto;
    background: #eef2ee;
    border-radius: 4px;
    white-space: pre-wrap;
}

.uc-mz-ad--hero {
    max-width: 760px;
    margin: 26px 0 0;
    padding: 18px 20px;
    grid-template-columns: minmax(0, 1fr) 140px;
    background: rgba(255, 253, 246, .96);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.uc-mz-ad--hero h3 {
    font-size: 22px;
}

.uc-mz-ad--hero p {
    font-size: 13px;
    line-height: 1.5;
}

.uc-mz-ad--hero .uc-mz-ad__image {
    max-height: 130px;
}

.uc-mz-ad--inline {
    grid-column: 1 / -1;
    margin: 8px 0 20px;
}

.uc-mz-ad--article {
    margin: 32px 0;
}

.uc-mz-ad--side {
    display: block;
    margin-top: 0;
    padding: 18px;
}

.uc-mz-ad--side h3 {
    font-size: 21px;
}

.uc-mz-ad--side .uc-mz-ad__image {
    display: block;
    max-width: 190px;
    max-height: 150px;
    margin: 18px auto 0;
}

.uc-mz-disclosure-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 24px auto 0;
    padding: 0 16px;
    color: #617169;
    font: 400 12px/1.55 Inter, sans-serif;
    text-align: left;
}

.uc-mz-disclosure-note i {
    flex: 0 0 auto;
    margin-top: 2px;
}

.uc-mz-popup[hidden],
.uc-mz-sticky[hidden] {
    display: none !important;
}

.uc-mz-popup {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.uc-mz-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 35, 26, .58);
    backdrop-filter: blur(3px);
}

.uc-mz-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    width: min(720px, 100%);
    max-height: min(620px, calc(100vh - 48px));
    padding: 28px;
    overflow: auto;
    color: var(--uc-mz-green-dark);
    background: var(--uc-mz-cream);
    border: 1px solid var(--uc-mz-border);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(10, 34, 22, .3);
}

.uc-mz-popup__dialog > img {
    width: 100%;
    height: auto;
}

.uc-mz-popup__dialog h2 {
    margin: 0 32px 10px 0;
    color: var(--uc-mz-green-dark);
    font: 600 30px/1.15 "Playfair Display", serif;
    letter-spacing: 0;
}

.uc-mz-popup__dialog p {
    color: #40564c;
    font: 400 15px/1.6 Inter, sans-serif;
}

.uc-mz-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--uc-mz-green-dark);
    background: #fff;
    border: 1px solid var(--uc-mz-border);
    border-radius: 50%;
}

.uc-mz-popup__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uc-mz-popup__categories {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.uc-mz-popup__categories a {
    padding: 8px 11px;
    color: var(--uc-mz-green-dark);
    background: var(--uc-mz-green-soft);
    border: 1px solid var(--uc-mz-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.uc-mz-popup__actions > button {
    min-height: 44px;
    padding: 9px 14px;
    color: #51655b;
    background: transparent;
    border: 1px solid var(--uc-mz-border);
    border-radius: 6px;
    font-weight: 600;
}

body.uc-mz-popup-open {
    overflow: hidden;
}

body.uc-mz-popup-open .uc-mz-sticky {
    display: none !important;
}

.uc-mz-sticky {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1480;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: min(560px, calc(100vw - 44px));
    min-height: 74px;
    padding: 10px 10px 10px 14px;
    color: var(--uc-mz-green-dark);
    background: rgba(255, 253, 246, .98);
    border: 1px solid var(--uc-mz-border);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(18, 61, 42, .2);
}

.uc-mz-sticky--desktop-bottom-bar {
    right: 50%;
    width: min(760px, calc(100vw - 44px));
    transform: translateX(50%);
}

.uc-mz-sticky--desktop-right-rail {
    top: 50%;
    bottom: auto;
    width: min(360px, calc(100vw - 44px));
    transform: translateY(-50%);
}

.uc-mz-sticky > img {
    width: 56px;
    height: 50px;
    object-fit: contain;
}

.uc-mz-sticky > span {
    display: grid;
    min-width: 0;
}

.uc-mz-sticky small {
    color: #68796f;
    font-size: 10px;
}

.uc-mz-sticky strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-mz-sticky > a {
    min-height: 40px;
    padding: 8px 13px;
}

.uc-mz-sticky > button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #4d6257;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.uc-mz-chat-card {
    margin-top: 12px;
    padding: 14px;
    color: var(--uc-mz-green-dark);
    background: var(--uc-mz-green-soft);
    border: 1px solid var(--uc-mz-border);
    border-radius: 8px;
}

.uc-mz-chat-card small {
    display: block;
    margin-bottom: 6px;
    color: #617169;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.uc-mz-chat-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.uc-mz-chat-card p {
    margin: 0 0 10px;
    color: #40564c;
    font-size: 12px;
    line-height: 1.5;
}

.uc-mz-chat-card__promo {
    color: var(--uc-mz-green) !important;
    font-weight: 700;
}

.uc-mz-chat-card__cta {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
}

@media (min-width: 1200px) {
    body.uc-mz-bg-soft::before,
    body.uc-mz-bg-pattern::before {
        position: fixed;
        inset: 0;
        z-index: 0;
        content: "";
        pointer-events: none;
    }

    body.uc-mz-bg-soft::before {
        background: linear-gradient(90deg, rgba(238, 246, 233, .7) 0, transparent 13%, transparent 87%, rgba(238, 246, 233, .7) 100%);
    }

    body.uc-mz-bg-pattern::before {
        background-image:
            url("../img/affiliate/maxizoo-background-pattern.svg"),
            url("../img/affiliate/maxizoo-background-pattern.svg");
        background-position: left 92px, right 92px;
        background-repeat: repeat-y;
        background-size: 150px auto;
        opacity: .18;
    }

    .site-footer,
    .portal-header {
        position: relative;
        z-index: 2;
    }

    body:has(.ai-chat-panel:not([hidden])) .uc-mz-sticky {
        right: 440px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    body:has(.ai-chat-panel:not([hidden])) .uc-mz-sticky {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .uc-mz-device-desktop-only {
        display: none !important;
    }

    .uc-mz-ad {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 12px;
        margin: 20px 0;
        padding: 16px;
    }

    .uc-mz-ad__kicker {
        font-size: 10px;
    }

    .uc-mz-multi {
        margin: 20px 0;
        padding: 16px;
    }

    .uc-mz-multi__grid {
        grid-template-columns: 1fr;
    }

    .uc-mz-multi__grid > a {
        grid-template-columns: 64px minmax(0, 1fr) auto;
    }

    .uc-mz-multi__grid img {
        width: 64px;
        height: 46px;
    }

    .uc-mz-ad h2,
    .uc-mz-ad h3,
    .uc-mz-ad--hero h3 {
        font-size: 19px;
    }

    .uc-mz-ad p {
        font-size: 12px;
        line-height: 1.5;
    }

    .uc-mz-ad .uc-mz-ad__promo {
        font-size: 11px;
    }

    .uc-mz-ad__cta {
        min-height: 40px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .uc-mz-ad__image,
    .uc-mz-ad--hero .uc-mz-ad__image {
        max-height: 105px;
    }

    .uc-mz-ad--hero {
        display: block;
        padding: 12px;
    }

    .uc-mz-ad--hero .uc-mz-ad__content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px 10px;
    }

    .uc-mz-ad--hero .uc-mz-ad__label {
        grid-column: 1 / -1;
        margin: 0;
    }

    .uc-mz-ad--hero .uc-mz-ad__kicker {
        display: none;
    }

    .uc-mz-ad--hero h3 {
        margin: 0;
        font-size: 17px;
    }

    .uc-mz-ad--hero p,
    .uc-mz-ad--hero .uc-mz-ad__promo,
    .uc-mz-ad--hero .uc-mz-ad__image {
        display: none;
    }

    .uc-mz-ad--hero .uc-mz-ad__cta {
        grid-column: 2;
        grid-row: 2;
    }

    .uc-mz-ad--side {
        display: none;
    }

    .uc-mz-popup--mobile-sheet {
        align-items: end;
        padding: 0;
    }

    .uc-mz-popup--mobile-sheet .uc-mz-popup__dialog {
        display: block;
        width: 100%;
        max-height: min(var(--uc-mz-popup-mobile-height, 78vh), calc(100vh - 24px));
        padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
        border-width: 1px 0 0;
        border-radius: 8px 8px 0 0;
    }

    .uc-mz-popup--mobile-sheet .uc-mz-popup__dialog > img {
        display: none;
    }

    .uc-mz-popup__dialog h2 {
        margin-right: 42px;
        font-size: 22px;
    }

    .uc-mz-popup__dialog p {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .uc-mz-popup__actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .uc-mz-sticky {
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 8px;
        grid-template-columns: 42px minmax(0, 1fr) auto auto;
        gap: 8px;
        width: auto;
        min-height: 62px;
        padding: 7px 7px 7px 9px;
    }

    .uc-mz-sticky--mobile-bottom-sheet-mini {
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 8px 8px 0 0;
    }

    .uc-mz-sticky > img {
        width: 42px;
        height: 42px;
    }

    .uc-mz-sticky strong {
        font-size: 11px;
    }

    .uc-mz-sticky small {
        font-size: 8px;
    }

    .uc-mz-sticky > a {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .uc-mz-sticky > button {
        width: 30px;
        height: 30px;
    }

    body:has(.uc-mz-sticky:not([hidden])) .ai-chat {
        bottom: calc(82px + env(safe-area-inset-bottom));
    }

    body:has(.ad-slot--mobile-sticky.is-visible) .uc-mz-sticky {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body:has(.ad-slot--mobile-sticky.is-visible):has(.uc-mz-sticky:not([hidden])) .ai-chat {
        bottom: calc(148px + env(safe-area-inset-bottom));
    }

    body:has(.ai-chat-panel:not([hidden])) .uc-mz-sticky {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .uc-mz-ad {
        grid-template-columns: 1fr;
    }

    .uc-mz-ad__image {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uc-mz-ad__cta,
    .uc-mz-popup__actions > a,
    .uc-mz-sticky > a,
    .uc-mz-chat-card__cta {
        transition: none;
    }
}
