#ks-ga4-consent,
#ks-ga4-settings {
    box-sizing: border-box;
    font-family: inherit;
}
#ks-ga4-consent[hidden],
#ks-ga4-settings[hidden] { display: none !important; }
#ks-ga4-consent {
    position: fixed;
    z-index: 99990;
    inset: auto 16px 16px;
    max-width: 640px;
    margin-inline: auto;
    padding: 22px;
    color: #183d32;
    background: #fffdf7;
    border: 1px solid #a3b6a7;
    border-radius: 14px;
    box-shadow: 0 8px 34px #102b292b;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.5;
}
#ks-ga4-consent h2 {
    margin: 0 0 10px;
    color: #183d32;
    font-family: inherit;
    font-size: 22px;
    line-height: 1.3;
}
#ks-ga4-consent p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
#ks-ga4-consent .ks-consent__links { font-size: 16px; }
.ks-consent__choices { display: grid; gap: 8px; margin-bottom: 14px; }
.ks-consent__choices label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.ks-consent__choices input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #214f3d; }
.ks-ad-slot[hidden] { display: none !important; }
.ks-ad-slot { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; margin: 24px 0; clear: both; }
.ks-ad-slot > div { max-width: 100%; }
#ks-ga4-consent a { color: #174b39; text-decoration: underline; text-underline-offset: 3px; }
#ks-ga4-consent .ks-consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
#ks-ga4-consent .ks-consent__button,
#ks-ga4-settings {
    appearance: none;
    padding: 12px 18px;
    border: 1px solid #214f3d;
    border-radius: 6px;
    min-height: 48px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
    text-align: center;
    white-space: normal;
}
#ks-ga4-consent .ks-consent__button {
    flex: 1 1 150px;
    min-width: 0;
    color: #fffdf7;
    background: #214f3d;
}
#ks-ga4-consent .ks-consent__button:hover { background: #153f2e; }
#ks-ga4-settings {
    position: static;
    padding: 8px 0;
    min-height: 44px;
    border: 0;
    border-radius: 0;
    font-weight: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    max-width: 100%;
    color: #214f3d;
    background: transparent;
    box-shadow: none;
}
#ks-ga4-consent :focus-visible,
#ks-ga4-settings:focus-visible { outline: 3px solid #b97734; outline-offset: 3px; }
.ks-consent-status {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@media (max-width: 360px) {
    #ks-ga4-consent { inset-inline: 10px; bottom: 10px; padding: 16px; max-height: calc(100dvh - 20px); }
    #ks-ga4-consent h2 { font-size: 20px; }
}
