:root {
    --ifcc-bg: #f8fbfa;
    --ifcc-surface: #ffffff;
    --ifcc-text: #17312f;
    --ifcc-muted: #61726f;
    --ifcc-border: #d8e5e2;
    --ifcc-primary: #0f6b63;
    --ifcc-primary-hover: #0a574f;
    --ifcc-primary-soft: #e8f3f1;
    --ifcc-secondary: #284541;
    --ifcc-secondary-hover: #1e3734;
    --ifcc-shadow: 0 18px 58px rgba(19, 52, 48, .20);
    --ifcc-radius: 18px;
}

.ifcc-banner,
.ifcc-modal,
.ifcc-floating-button,
.ifcc-banner *,
.ifcc-modal *,
.ifcc-floating-button * {
    box-sizing: border-box;
}

.ifcc-banner[hidden],
.ifcc-modal[hidden],
.ifcc-floating-button[hidden] {
    display: none !important;
}

.ifcc-banner {
    position: fixed;
    z-index: 999998;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 1180px;
    max-height: calc(100vh - 36px);
    margin: 0 auto;
    padding: 23px 24px;
    overflow: auto;
    color: var(--ifcc-text);
    background: linear-gradient(135deg, var(--ifcc-bg) 0%, #fff 72%);
    border: 1px solid var(--ifcc-border);
    border-radius: var(--ifcc-radius);
    box-shadow: var(--ifcc-shadow);
    font-family: inherit;
    line-height: 1.5;
}

.ifcc-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--ifcc-primary);
}

.ifcc-banner__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.ifcc-banner__copy {
    min-width: 0;
}

.ifcc-brand {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 7px;
    color: var(--ifcc-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.ifcc-brand__mark {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: var(--ifcc-primary);
    border-radius: 8px;
}

.ifcc-brand__mark svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ifcc-banner h2,
.ifcc-modal h2,
.ifcc-category h3 {
    color: var(--ifcc-text);
    font-family: inherit;
}

.ifcc-banner h2 {
    margin: 0 0 7px;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 760;
    line-height: 1.2;
}

.ifcc-banner p {
    max-width: 770px;
    margin: 0 0 8px;
    color: var(--ifcc-muted);
    font-size: 15px;
    line-height: 1.58;
}

.ifcc-policy-link,
.ifcc-modal__policy {
    color: var(--ifcc-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ifcc-banner__actions,
.ifcc-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ifcc-banner__actions {
    justify-content: flex-end;
    max-width: 500px;
}

.ifcc-button {
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ifcc-button:hover {
    transform: translateY(-1px);
}

.ifcc-button:focus-visible,
.ifcc-modal__close:focus-visible,
.ifcc-floating-button:focus-visible,
.ifcc-inline-settings:focus-visible,
.ifcc-switch input:focus-visible + span {
    outline: 3px solid rgba(15, 107, 99, .28);
    outline-offset: 2px;
}

.ifcc-button--accept,
.ifcc-button--reject {
    color: #fff;
}

.ifcc-button--accept {
    background: var(--ifcc-primary);
    border-color: var(--ifcc-primary);
    box-shadow: 0 6px 18px rgba(15, 107, 99, .18);
}

.ifcc-button--accept:hover {
    background: var(--ifcc-primary-hover);
    border-color: var(--ifcc-primary-hover);
}

.ifcc-button--reject {
    background: var(--ifcc-secondary);
    border-color: var(--ifcc-secondary);
}

.ifcc-button--reject:hover {
    background: var(--ifcc-secondary-hover);
    border-color: var(--ifcc-secondary-hover);
}

.ifcc-button--settings {
    color: var(--ifcc-text);
    background: var(--ifcc-surface);
    border-color: #aabdb9;
}

.ifcc-button--settings:hover {
    background: var(--ifcc-primary-soft);
    border-color: var(--ifcc-primary);
}

.ifcc-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.ifcc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 35, 32, .62);
    backdrop-filter: blur(4px);
}

.ifcc-modal__panel {
    position: relative;
    width: min(690px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 30px;
    color: var(--ifcc-text);
    background: var(--ifcc-bg);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--ifcc-radius);
    box-shadow: var(--ifcc-shadow);
    font-family: inherit;
    line-height: 1.5;
}

.ifcc-modal__brand {
    margin-bottom: 4px;
    color: var(--ifcc-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ifcc-modal h2 {
    margin: 0 44px 10px 0;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.2;
}

.ifcc-modal__panel > p {
    margin-top: 0;
    color: var(--ifcc-muted);
    line-height: 1.58;
}

.ifcc-modal__close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ifcc-text);
    background: var(--ifcc-primary-soft);
    border: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.ifcc-category {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0;
    padding: 18px;
    border: 1px solid var(--ifcc-border);
    border-radius: 13px;
    background: var(--ifcc-surface);
}

.ifcc-category h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.ifcc-category p {
    margin: 0;
    color: var(--ifcc-muted);
    font-size: 14px;
    line-height: 1.48;
}

.ifcc-category--toggle {
    cursor: pointer;
}

.ifcc-category--toggle:hover {
    border-color: #abc7c2;
}

.ifcc-always-on {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: var(--ifcc-primary);
    background: var(--ifcc-primary-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ifcc-switch {
    position: relative;
    flex: 0 0 auto;
    width: 54px;
    height: 31px;
}

.ifcc-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ifcc-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #aeb8b5;
    transition: background-color .2s ease;
}

.ifcc-switch span::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.ifcc-switch input:checked + span {
    background: var(--ifcc-primary);
}

.ifcc-switch input:checked + span::after {
    transform: translateX(23px);
}

.ifcc-modal__actions {
    margin-top: 22px;
}

.ifcc-modal__policy {
    display: inline-block;
    margin-top: 18px;
}

.ifcc-floating-button {
    position: fixed;
    z-index: 999990;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 9px 13px;
    color: #fff;
    background: var(--ifcc-secondary);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(15, 42, 38, .22);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.ifcc-floating-button:hover {
    background: var(--ifcc-primary);
}

.ifcc-floating-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ifcc-inline-settings {
    display: inline;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ifcc-screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.ifcc-modal-open {
    overflow: hidden;
}

@media (max-width: 880px) {
    .ifcc-banner__content {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .ifcc-banner__actions {
        justify-content: stretch;
        max-width: none;
    }

    .ifcc-banner__actions .ifcc-button {
        flex: 1 1 180px;
    }
}

@media (max-width: 580px) {
    .ifcc-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 18px;
        border-radius: 14px;
    }

    .ifcc-banner::before {
        width: 4px;
    }

    .ifcc-banner__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ifcc-button {
        width: 100%;
    }

    .ifcc-modal {
        padding: 8px;
    }

    .ifcc-modal__panel {
        max-height: calc(100vh - 16px);
        padding: 24px 17px 19px;
        border-radius: 14px;
    }

    .ifcc-category {
        align-items: flex-start;
        padding: 16px;
    }

    .ifcc-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ifcc-floating-button span {
        display: none;
    }

    .ifcc-floating-button {
        width: 42px;
        height: 42px;
        justify-content: center;
        padding: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifcc-button,
    .ifcc-switch span,
    .ifcc-switch span::after {
        transition: none;
    }
}


/* InfoVet footer links */
.ifcc-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.ifcc-footer-links a,
.ifcc-footer-settings {
    display: inline;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    opacity: .92;
}

.ifcc-footer-links a:hover,
.ifcc-footer-settings:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 1;
}

.ifcc-footer-links a:focus-visible,
.ifcc-footer-settings:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}
