.pedicare-notification {
    position: fixed;
    z-index: 1040;
    box-sizing: border-box;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px 20px;
    border: 1px solid rgb(0 0 0 / 12%);
    border-radius: 8px;
    background: var(--pedicare-notification-background, #fff);
    color: var(--pedicare-notification-text, #222);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.pedicare-notification *,
.pedicare-notification *::before,
.pedicare-notification *::after {
    box-sizing: border-box;
}

.pedicare-notification__content > :first-child {
    margin-top: 0;
}

.pedicare-notification__content > :last-child {
    margin-bottom: 0;
}

.pedicare-notification a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.pedicare-notification--top-left {
    top: 16px;
    left: 16px;
}

.pedicare-notification--top-center {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.pedicare-notification--top-right {
    top: 16px;
    right: 16px;
}

.pedicare-notification--bottom-left {
    bottom: 16px;
    left: 16px;
}

.pedicare-notification--bottom-center {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.pedicare-notification--bottom-right {
    right: 16px;
    bottom: 16px;
}

@media (max-width: 480px) {
    .pedicare-notification {
        width: auto;
        max-height: calc(100vh - 24px);
        padding: 15px 16px;
    }

    .pedicare-notification--top-left,
    .pedicare-notification--top-center,
    .pedicare-notification--top-right {
        top: 12px;
        right: 12px;
        left: 12px;
        transform: none;
    }

    .pedicare-notification--bottom-left,
    .pedicare-notification--bottom-center,
    .pedicare-notification--bottom-right {
        right: 12px;
        bottom: 12px;
        left: 12px;
        transform: none;
    }
}

.pedicare-notification__panel {
    position: relative;
}

.pedicare-notification__controls {
    display: flex;
    justify-content: flex-end;
    margin: -8px -10px 4px 0;
}

.pedicare-notification__collapse,
.pedicare-notification__restore {
    appearance: none;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.pedicare-notification__collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 6px;
    font-size: 1.35rem;
    line-height: 1;
}

.pedicare-notification__restore {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    padding: 0;
    border-width: 1px;
    background: var(--pedicare-notification-background, #fff);
    color: var(--pedicare-notification-text, #222);
    box-shadow:
        0 4px 14px rgb(0 0 0 / 17%),
        inset 0 1px 0 rgb(255 255 255 / 38%);
    transition:
        transform 180ms cubic-bezier(.2, .8, .2, 1),
        box-shadow 180ms ease,
        filter 180ms ease;
}

.pedicare-notification__restore-icon {
    display: block;
    width: 9px;
    height: 9px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
}

.pedicare-notification__collapse:hover,
.pedicare-notification__restore:hover {
    background-color: color-mix(in srgb, var(--pedicare-notification-background, #fff) 88%, currentColor);
}

@supports not (background-color: color-mix(in srgb, white, black)) {
    .pedicare-notification__collapse:hover,
    .pedicare-notification__restore:hover {
        filter: brightness(0.94);
    }
}

.pedicare-notification__collapse:focus-visible,
.pedicare-notification__restore:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.pedicare-notification.is-collapsed {
    width: 34px;
    height: 44px;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pedicare-notification.is-collapsed .pedicare-notification__panel {
    display: none;
}

.pedicare-notification.is-collapsed .pedicare-notification__restore {
    display: inline-flex;
}

.pedicare-notification.is-collapsed.pedicare-notification--top-left,
.pedicare-notification.is-collapsed.pedicare-notification--bottom-left {
    left: 0;
}

.pedicare-notification.is-collapsed.pedicare-notification--top-right,
.pedicare-notification.is-collapsed.pedicare-notification--bottom-right {
    right: 0;
}

.pedicare-notification.is-collapsed.pedicare-notification--top-center {
    top: 0;
    width: 52px;
    height: 30px;
}

.pedicare-notification.is-collapsed.pedicare-notification--bottom-center {
    bottom: 0;
    width: 52px;
    height: 30px;
}

.pedicare-notification--top-left .pedicare-notification__restore,
.pedicare-notification--bottom-left .pedicare-notification__restore {
    border-left: 0;
    border-radius: 0 999px 999px 0;
    transform: translateX(-18px);
}

.pedicare-notification--top-left .pedicare-notification__restore-icon,
.pedicare-notification--bottom-left .pedicare-notification__restore-icon {
    transform: rotate(45deg);
    margin-left: 13px;
}

.pedicare-notification--top-right .pedicare-notification__restore,
.pedicare-notification--bottom-right .pedicare-notification__restore {
    border-right: 0;
    border-radius: 999px 0 0 999px;
    transform: translateX(18px);
}

.pedicare-notification--top-right .pedicare-notification__restore-icon,
.pedicare-notification--bottom-right .pedicare-notification__restore-icon {
    transform: rotate(225deg);
    margin-right: 13px;
}

.pedicare-notification--top-center .pedicare-notification__restore {
    border-top: 0;
    border-radius: 0 0 999px 999px;
    transform: translateY(-14px);
}

.pedicare-notification--top-center .pedicare-notification__restore-icon {
    transform: rotate(135deg);
    margin-top: 12px;
}

.pedicare-notification--bottom-center .pedicare-notification__restore {
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    transform: translateY(14px);
}

.pedicare-notification--bottom-center .pedicare-notification__restore-icon {
    transform: rotate(315deg);
    margin-bottom: 12px;
}

.pedicare-notification--top-left .pedicare-notification__restore:hover,
.pedicare-notification--bottom-left .pedicare-notification__restore:hover,
.pedicare-notification--top-left .pedicare-notification__restore:focus-visible,
.pedicare-notification--bottom-left .pedicare-notification__restore:focus-visible {
    transform: translateX(-10px);
}

.pedicare-notification--top-right .pedicare-notification__restore:hover,
.pedicare-notification--bottom-right .pedicare-notification__restore:hover,
.pedicare-notification--top-right .pedicare-notification__restore:focus-visible,
.pedicare-notification--bottom-right .pedicare-notification__restore:focus-visible {
    transform: translateX(10px);
}

.pedicare-notification--top-center .pedicare-notification__restore:hover,
.pedicare-notification--top-center .pedicare-notification__restore:focus-visible {
    transform: translateY(-8px);
}

.pedicare-notification--bottom-center .pedicare-notification__restore:hover,
.pedicare-notification--bottom-center .pedicare-notification__restore:focus-visible {
    transform: translateY(8px);
}

.pedicare-notification__restore:hover,
.pedicare-notification__restore:focus-visible {
    box-shadow:
        0 6px 18px rgb(0 0 0 / 21%),
        inset 0 1px 0 rgb(255 255 255 / 42%);
}

.pedicare-notification__restore:active {
    filter: brightness(0.92);
}

.pedicare-notification__restore[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .pedicare-notification.is-collapsed {
        width: 34px;
        height: 44px;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-left,
    .pedicare-notification.is-collapsed.pedicare-notification--bottom-left {
        right: auto;
        left: 0;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-right,
    .pedicare-notification.is-collapsed.pedicare-notification--bottom-right {
        right: 0;
        left: auto;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-center,
    .pedicare-notification.is-collapsed.pedicare-notification--bottom-center {
        right: auto;
        left: 50%;
        width: 52px;
        height: 30px;
        transform: translateX(-50%);
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-right {
        top: 12px;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-left {
        top: 68px;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--bottom-left,
    .pedicare-notification.is-collapsed.pedicare-notification--bottom-right {
        bottom: 12px;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--top-center {
        top: 0;
    }

    .pedicare-notification.is-collapsed.pedicare-notification--bottom-center {
        bottom: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .pedicare-notification {
        transition: opacity 140ms ease;
    }
}

/* Sprint 1 - versie 0.4.1: volledig sluiten en opgeslagen browserstatus. */
.pedicare-notification__controls {
    gap: 6px;
}

.pedicare-notification__close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
}

.pedicare-notification__close:hover {
    background-color: color-mix(in srgb, var(--pedicare-notification-background, #fff) 88%, currentColor);
}

@supports not (background-color: color-mix(in srgb, white, black)) {
    .pedicare-notification__close:hover {
        filter: brightness(0.94);
    }
}

.pedicare-notification__close:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.pedicare-notification.is-closed {
    display: none !important;
}

/* Sprint 1 - versie 0.4.3: mobiele top-left randtab onder het hamburgermenu. */
@media (max-width: 767px) and (orientation: portrait) {
    .pedicare-notification.is-collapsed.pedicare-notification--top-left {
        top: 68px !important;
    }
}

/* Sprint 1 - versie 0.4.4: uniforme zichtbare maat van alle randtabs. */
.pedicare-notification.is-collapsed {
    width: 52px;
    height: 44px;
}

.pedicare-notification.is-collapsed.pedicare-notification--top-center,
.pedicare-notification.is-collapsed.pedicare-notification--bottom-center {
    width: 52px;
    height: 44px;
}

/* Zijtabs: 18 px buiten beeld, waardoor 34 px zichtbaar blijft. */
.pedicare-notification--top-left .pedicare-notification__restore,
.pedicare-notification--bottom-left .pedicare-notification__restore {
    transform: translateX(-18px);
}

.pedicare-notification--top-right .pedicare-notification__restore,
.pedicare-notification--bottom-right .pedicare-notification__restore {
    transform: translateX(18px);
}

/* Boven- en ondertabs: 10 px buiten beeld, waardoor 34 px zichtbaar blijft. */
.pedicare-notification--top-center .pedicare-notification__restore {
    transform: translateY(-10px);
}

.pedicare-notification--bottom-center .pedicare-notification__restore {
    transform: translateY(10px);
}

.pedicare-notification--top-center .pedicare-notification__restore-icon {
    margin-top: 8px;
}

.pedicare-notification--bottom-center .pedicare-notification__restore-icon {
    margin-bottom: 8px;
}

/* Hover/focus: iets verder zichtbaar, maar bij alle randen gelijkmatig. */
.pedicare-notification--top-left .pedicare-notification__restore:hover,
.pedicare-notification--bottom-left .pedicare-notification__restore:hover,
.pedicare-notification--top-left .pedicare-notification__restore:focus-visible,
.pedicare-notification--bottom-left .pedicare-notification__restore:focus-visible {
    transform: translateX(-10px);
}

.pedicare-notification--top-right .pedicare-notification__restore:hover,
.pedicare-notification--bottom-right .pedicare-notification__restore:hover,
.pedicare-notification--top-right .pedicare-notification__restore:focus-visible,
.pedicare-notification--bottom-right .pedicare-notification__restore:focus-visible {
    transform: translateX(10px);
}

.pedicare-notification--top-center .pedicare-notification__restore:hover,
.pedicare-notification--top-center .pedicare-notification__restore:focus-visible {
    transform: translateY(-4px);
}

.pedicare-notification--bottom-center .pedicare-notification__restore:hover,
.pedicare-notification--bottom-center .pedicare-notification__restore:focus-visible {
    transform: translateY(4px);
}

@media (max-width: 480px) {
    .pedicare-notification.is-collapsed,
    .pedicare-notification.is-collapsed.pedicare-notification--top-center,
    .pedicare-notification.is-collapsed.pedicare-notification--bottom-center {
        width: 52px;
        height: 44px;
    }
}


/* Sprint 1 - versie 0.4.5: gecontroleerde tekstuitlijning. */
.pedicare-notification--align-left .pedicare-notification__content {
    text-align: left;
}

.pedicare-notification--align-center .pedicare-notification__content {
    text-align: center;
}

.pedicare-notification--align-right .pedicare-notification__content {
    text-align: right;
}
