/**
 * Ikodak — sticky footer CTA (globaal, via wp_footer).
 *
 * Compact wit paneel rechtsonder. Verborgen zolang de hero in beeld is, schuift
 * daarna met een transform omhoog. Ingeklapt één regel, uitgeklapt met USP's en
 * contact. Op smalle schermen een volle balk onderaan. Houdt rekening met
 * env(safe-area-inset-*) en reserveert onderaan evenveel ruimte.
 */

.dcip-sticky-space {
    height: var(--dcip-sticky-h, 0px);
}

.dcip-sticky {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 90;
    width: min(472px, calc(100% - 32px));
    border-radius: 20px;
    background: #ffffff;
    color: var(--dcip-text);
    box-shadow:
        0 0 0 1px rgba(var(--dcip-ink-rgb), 0.08),
        0 20px 48px -20px rgba(var(--dcip-ink-rgb), 0.4);
    visibility: hidden;
    transform: translate3d(0, calc(100% + 40px), 0);
    transition: transform 420ms var(--dcip-ease), visibility 0s linear 420ms;
}

.dcip-sticky.is-visible {
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: transform 420ms var(--dcip-ease), visibility 0s;
}

.dcip-sticky__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 8px 8px 8px 16px;
}

.dcip-sticky__line {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: var(--dcip-muted);
}

.dcip-sticky__line strong,
.dcip-sticky__line span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dcip-sticky__line strong {
    color: var(--dcip-ink);
    font-family: var(--dcip-font-head);
    font-size: 0.9375rem;
    font-weight: 600;
}

.dcip-sticky__call,
.dcip-sticky__toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dcip-sand);
    color: var(--dcip-ink);
    transition: background-color 200ms ease-out;
}

.dcip-sticky__call:hover,
.dcip-sticky__call:focus-visible,
.dcip-sticky__toggle:hover,
.dcip-sticky__toggle:focus-visible {
    background: var(--dcip-sand-2);
    color: var(--dcip-ink);
}

.dcip-sticky__call .dcip-icon {
    width: 18px;
    height: 18px;
}

.dcip-sticky .dcip-btn {
    flex: none;
    gap: 10px;
    min-height: 44px;
    padding: 4px 16px 4px 4px;
    font-size: 0.875rem;
}

.dcip-sticky .dcip-btn__icon {
    width: 36px;
    height: 36px;
}

.dcip-sticky__toggle .dcip-icon {
    width: 18px;
    height: 18px;
    transform: rotate(180deg);
    transition: transform 300ms var(--dcip-ease);
}

.dcip-sticky[data-state="expanded"] .dcip-sticky__toggle .dcip-icon {
    transform: rotate(0deg);
}

.dcip-sticky__more {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin: 0 16px;
    padding: 12px 0 14px;
    border-top: 1px solid var(--dcip-line);
    font-size: 0.875rem;
    line-height: 1.4;
}

.dcip-sticky[data-state="expanded"] .dcip-sticky__more {
    display: flex;
    animation: dcip-sticky-more 260ms var(--dcip-ease) both;
}

@keyframes dcip-sticky-more {
    from {
        opacity: 0;
        transform: translate3d(0, 8px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.dcip-sticky__usps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--dcip-text);
}

.dcip-sticky__usps li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dcip-sticky__usps .dcip-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--dcip-primary-deep);
    stroke-width: 2.6;
}

.dcip-sticky__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
}

.dcip-sticky__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--dcip-ink);
    font-weight: 600;
}

.dcip-sticky__contact a:hover,
.dcip-sticky__contact a:focus-visible {
    color: var(--dcip-primary-ink);
}

.dcip-sticky__contact .dcip-icon {
    color: var(--dcip-primary-deep);
}

@media (max-width: 639px) {
    .dcip-sticky {
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow:
            0 0 0 1px rgba(var(--dcip-ink-rgb), 0.08),
            0 -12px 32px -16px rgba(var(--dcip-ink-rgb), 0.3);
        transform: translate3d(0, calc(100% + 20px), 0);
    }

    .dcip-sticky__bar {
        padding: 8px 8px 8px 16px;
    }

    .dcip-sticky .dcip-btn {
        padding: 4px 16px;
    }

    .dcip-sticky .dcip-btn__icon {
        display: none;
    }
}

@media (max-width: 379px) {
    .dcip-sticky__line {
        display: none;
    }

    .dcip-sticky .dcip-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
