/**
 * Floating Contact Pro frontend styles.
 * Copyright (C) 2026 Soulmapp. All rights reserved.
 */

/* Page state */
html.fcp-dialog-open,
body.fcp-dialog-open {
    overflow: hidden;
}

/* Widget positioning */
.fcp-widget {
    position: fixed;
    z-index: 9999;
    right: var(--fcp-widget-offset);
    bottom: calc(var(--fcp-widget-offset) + env(safe-area-inset-bottom));
    font-family: inherit;
}

.fcp-widget--left {
    right: auto;
    left: var(--fcp-widget-offset);
}

/* Floating trigger button */
.fcp-widget__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--fcp-button-gap);
    min-width: var(--fcp-button-min-width);
    min-height: var(--fcp-button-min-height);
    padding: var(--fcp-button-padding);
    border: var(--fcp-button-border-width) solid var(--fcp-button-border-color);
    border-radius: var(--fcp-button-radius);
    background: var(--fcp-button-bg);
    color: var(--fcp-button-color);
    box-shadow: var(--fcp-button-shadow);
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
    font-size: var(--fcp-button-font-size);
    font-weight: var(--fcp-button-font-weight);
    line-height: var(--fcp-button-line-height);
}

/* Mirror launcher content only when Floating Contact Pro is positioned on the left. */
.fcp-widget--left .fcp-widget__button {
    flex-direction: row-reverse;
}


.fcp-widget__button:hover,
.fcp-widget__button:focus-visible {
    background: var(--fcp-button-hover-bg);
}


/* Icon-only launcher: size is driven by the configured icon size plus
   an equal intrinsic inset. Label-oriented desktop/mobile padding and
   min dimensions do not apply in this mode. */
.fcp-widget--icon-only .fcp-widget__button {
    min-width: 0;
    min-height: 0;
    padding: 12px;
    gap: 0;
    border-radius: 50%;
}

.fcp-widget--icon-only .fcp-widget__label {
    display: none;
}


.fcp-widget__button:focus-visible {
    outline: var(--fcp-floating-button-focus-outline-width) solid currentColor;
    outline-offset: var(--fcp-floating-button-focus-outline-offset);
}

.fcp-panel__close:focus-visible {
    outline: var(--fcp-close-button-focus-outline-width) solid currentColor;
    outline-offset: var(--fcp-close-button-focus-outline-offset);
}

.fcp-form__control:focus-visible {
    outline: var(--fcp-field-focus-outline-width) solid currentColor;
    outline-offset: var(--fcp-field-focus-outline-offset);
}

.fcp-form__submit:focus-visible {
    outline: var(--fcp-submit-focus-outline-width) solid currentColor;
    outline-offset: var(--fcp-submit-focus-outline-offset);
}

.fcp-widget__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--fcp-icon-size);
    height: var(--fcp-icon-size);
    line-height: var(--fcp-icon-line-height);
}


.fcp-widget__label {
    display: inline-block;
    transform: translateY(var(--fcp-desktop-label-offset));
}

.fcp-widget__svg {
    display: block;
    width: var(--fcp-icon-size);
    height: var(--fcp-icon-size);
    fill: none;
    stroke: currentColor;
    stroke-width: var(--fcp-icon-stroke-width);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcp-widget__svg .fcp-widget__svg-dot {
    fill: currentColor;
    stroke: none;
}

.fcp-widget__svg--solid {
    fill: currentColor;
    stroke: none;
}

/* Contact panel */
.fcp-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(var(--fcp-panel-width), calc(100vw - var(--fcp-panel-viewport-gap)));
    max-height: min(var(--fcp-panel-max-height), calc(100vh - var(--fcp-panel-viewport-gap)));
    max-height: min(var(--fcp-panel-max-height), calc(100dvh - var(--fcp-panel-viewport-gap)));
    overflow: hidden;
    border-radius: var(--fcp-panel-radius);
    background: var(--fcp-panel-bg);
    color: var(--fcp-panel-color);
    box-shadow: var(--fcp-panel-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--fcp-animation-distance)) scale(var(--fcp-animation-scale));
    transform-origin: bottom right;
    transition: opacity var(--fcp-animation-duration) ease, transform var(--fcp-animation-duration) ease, visibility var(--fcp-animation-duration) ease;
}

.fcp-widget--left .fcp-panel {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.fcp-widget.is-open .fcp-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fcp-widget.is-open .fcp-widget__button {
    display: none;
}

.fcp-panel__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fcp-header-gap);
    padding: var(--fcp-header-padding);
    border-bottom: var(--fcp-divider-width) solid var(--fcp-divider-color);
    background: var(--fcp-panel-header-bg);
    color: var(--fcp-panel-header-color);
}

.fcp-panel__title {
    margin: 0;
    font-size: var(--fcp-panel-title-font-size);
    line-height: var(--fcp-panel-title-line-height);
}

.fcp-panel__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--fcp-close-size);
    height: var(--fcp-close-size);
    padding: 0;
    border: var(--fcp-close-border-width) solid var(--fcp-close-border-color);
    border-radius: var(--fcp-close-radius);
    background: var(--fcp-close-bg);
    color: var(--fcp-close-color);
    cursor: pointer;
    touch-action: manipulation;
}

.fcp-panel__back[hidden] {
    display: none;
}

.fcp-panel__back-svg {
    width: var(--fcp-back-arrow-icon-size);
    height: var(--fcp-back-arrow-icon-size);
    fill: none;
    stroke: currentColor;
    stroke-width: var(--fcp-back-arrow-stroke-width);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcp-panel__close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--fcp-close-size);
    height: var(--fcp-close-size);
    padding: 0;
    border: var(--fcp-close-border-width) solid var(--fcp-close-border-color);
    border-radius: var(--fcp-close-radius);
    background: var(--fcp-close-bg);
    color: var(--fcp-close-color);
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
    font-size: var(--fcp-close-font-size);
    line-height: var(--fcp-close-line-height);
}


.fcp-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: var(--fcp-body-padding);
    padding-bottom: var(--fcp-body-padding-bottom);
    overflow-y: auto;
    scroll-padding-bottom: var(--fcp-body-padding-bottom);
    -webkit-overflow-scrolling: touch;
}

.fcp-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.fcp-panel__footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex: 0 0 auto;
    padding: var(--fcp-footer-padding);
    border-top: var(--fcp-divider-width) solid var(--fcp-divider-color);
    background: var(--fcp-panel-bg);
    box-shadow: var(--fcp-footer-shadow);
}

/* Contact menu */
.fcp-channel-view {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.fcp-channel-view[hidden] {
    display: none;
}

.fcp-channel-menu__intro {
    margin: var(--fcp-menu-intro-margin-top) var(--fcp-menu-intro-margin-right) var(--fcp-menu-intro-margin-bottom) var(--fcp-menu-intro-margin-left);
    color: var(--fcp-menu-intro-color);
    font-size: var(--fcp-menu-intro-font-size);
    line-height: var(--fcp-menu-intro-line-height);
}

.fcp-channel-menu {
    display: flex;
    flex-direction: column;
    gap: var(--fcp-menu-item-gap);
}

.fcp-channel-menu__item {
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--fcp-menu-item-gap);
    padding: var(--fcp-menu-item-padding);
    border: var(--fcp-menu-item-border-width) solid var(--fcp-menu-item-border);
    border-radius: var(--fcp-menu-item-radius);
    background: var(--fcp-menu-item-bg);
    color: var(--fcp-menu-item-title-color);
    text-align: left;
    cursor: pointer;
}

.fcp-channel-menu__item:hover,
.fcp-channel-menu__item:focus-visible {
    background: var(--fcp-menu-item-hover-bg);
}

.fcp-channel-menu__item--pending {
    cursor: default;
}

.fcp-channel-menu__icon-badge {
    width: var(--fcp-menu-icon-badge-size);
    height: var(--fcp-menu-icon-badge-size);
    flex: 0 0 var(--fcp-menu-icon-badge-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fcp-menu-icon-badge-radius);
    color: var(--fcp-menu-icon-color);
}

.fcp-channel-menu__icon {
    width: var(--fcp-menu-icon-size);
    height: var(--fcp-menu-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.fcp-channel-menu__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: var(--fcp-menu-icon-stroke-width);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcp-channel-menu__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fcp-channel-menu__copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.fcp-channel-menu__title {
    color: var(--fcp-menu-item-title-color);
    font-size: var(--fcp-menu-title-size);
    font-weight: var(--fcp-menu-title-font-weight);
    line-height: var(--fcp-menu-title-line-height);
}

.fcp-channel-menu__subtitle {
    color: var(--fcp-menu-item-subtitle-color);
    font-size: var(--fcp-menu-subtitle-size);
    line-height: var(--fcp-menu-subtitle-line-height);
}

.fcp-channel-menu__chevron {
    flex: 0 0 auto;
    color: var(--fcp-menu-item-subtitle-color);
}


/* Form content */
.fcp-form__intro {
    margin: 0 0 var(--fcp-intro-margin-bottom);
    color: var(--fcp-intro-color);
    font-size: var(--fcp-intro-font-size);
    line-height: var(--fcp-intro-line-height);
}

.fcp-form__group {
    margin-bottom: var(--fcp-group-margin-bottom);
}

.fcp-form__label {
    display: block;
    margin-bottom: var(--fcp-label-margin-bottom);
    color: var(--fcp-label-color);
    font-size: var(--fcp-label-font-size);
    font-weight: var(--fcp-label-font-weight);
    line-height: var(--fcp-label-line-height);
}

.fcp-widget .fcp-form .fcp-form__control,
.fcp-widget .fcp-form input.fcp-form__control,
.fcp-widget .fcp-form textarea.fcp-form__control {
    display: block !important;
    width: 100% !important;
    min-height: var(--fcp-field-min-height) !important;
    box-sizing: border-box !important;
    padding: var(--fcp-field-padding) !important;
    border: var(--fcp-field-border-width) solid var(--fcp-field-border-color) !important;
    border-radius: var(--fcp-field-radius) !important;
    background: var(--fcp-field-bg) !important;
    color: var(--fcp-field-color) !important;
    box-shadow: var(--fcp-field-shadow) !important;
    font-family: inherit !important;
    font-size: var(--fcp-field-font-size) !important;
    line-height: var(--fcp-field-line-height) !important;
    -webkit-appearance: none;
    appearance: none;
}

.fcp-widget .fcp-form textarea.fcp-form__control {
    min-height: var(--fcp-textarea-min-height) !important;
    resize: vertical !important;
}

.fcp-widget .fcp-form .fcp-form__control:focus,
.fcp-widget .fcp-form input.fcp-form__control:focus,
.fcp-widget .fcp-form textarea.fcp-form__control:focus {
    border-color: var(--fcp-field-focus-border-color) !important;
    box-shadow: var(--fcp-field-focus-shadow) !important;
    outline: 0 !important;
}

.fcp-widget .fcp-form .fcp-form__control:focus-visible,
.fcp-widget .fcp-form input.fcp-form__control:focus-visible,
.fcp-widget .fcp-form textarea.fcp-form__control:focus-visible {
    outline: var(--fcp-field-focus-outline-width) solid currentColor !important;
    outline-offset: var(--fcp-field-focus-outline-offset) !important;
}

.fcp-widget .fcp-form .fcp-form__control:disabled,
.fcp-widget .fcp-form input.fcp-form__control:disabled,
.fcp-widget .fcp-form textarea.fcp-form__control:disabled {
    background: var(--fcp-field-disabled-bg) !important;
    opacity: var(--fcp-field-disabled-opacity) !important;
    cursor: not-allowed !important;
}

/* Submit button */
.fcp-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--fcp-submit-min-height);
    padding: var(--fcp-submit-padding);
    border: var(--fcp-submit-border-width) solid var(--fcp-submit-border-color);
    border-radius: var(--fcp-submit-radius);
    background: var(--fcp-submit-bg);
    color: var(--fcp-submit-color);
    cursor: pointer;
    touch-action: manipulation;
    font-family: inherit;
    font-size: var(--fcp-submit-font-size);
    font-weight: var(--fcp-submit-font-weight);
    line-height: var(--fcp-submit-line-height);
}

.fcp-form__submit:hover,
.fcp-form__submit:focus-visible {
    background: var(--fcp-submit-hover-bg);
}

/* Mobile layout */
@media (max-width: 575.98px) {
    .fcp-widget__button {
        padding: var(--fcp-mobile-button-padding);
        font-size: var(--fcp-mobile-button-font-size);
    }

    .fcp-widget__icon,
    .fcp-widget__svg {
        width: var(--fcp-mobile-icon-size);
        height: var(--fcp-mobile-icon-size);
    }

    .fcp-widget {
        right: var(--fcp-mobile-offset);
        left: auto;
        bottom: calc(var(--fcp-mobile-offset) + env(safe-area-inset-bottom));
    }

    .fcp-widget--left {
        right: auto;
        left: var(--fcp-mobile-offset);
    }

    .fcp-widget__button {
        width: auto;
        max-width: calc(100vw - var(--fcp-mobile-offset) - var(--fcp-mobile-offset));
        min-height: var(--fcp-mobile-button-min-height);
        white-space: nowrap;
    }

    .fcp-widget__label {
        transform: none;
    }

    /* Optional mobile-only launcher presentation. The desktop Button Style
       remains the baseline; these classes override it only below 576px. */
    .fcp-widget--mobile-icon-only .fcp-widget__button {
        min-width: 0;
        min-height: 0;
        padding: var(--fcp-mobile-button-padding);
        gap: 0;
        border-radius: 50%;
    }

    .fcp-widget--mobile-icon-only .fcp-widget__label {
        display: none;
    }

    .fcp-widget--mobile-standard .fcp-widget__button {
        gap: var(--fcp-button-gap);
        min-width: var(--fcp-button-min-width);
        min-height: var(--fcp-mobile-button-min-height);
        padding: var(--fcp-mobile-button-padding);
        border-radius: var(--fcp-button-radius);
    }

    .fcp-widget--mobile-standard .fcp-widget__label {
        display: inline-block;
    }

    .fcp-panel,
    .fcp-widget--left .fcp-panel {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: calc(100vh - var(--fcp-mobile-panel-gap));
        max-height: calc(100dvh - var(--fcp-mobile-panel-gap));
        border-radius: var(--fcp-panel-radius) var(--fcp-panel-radius) 0 0;
        transform: translateY(100%);
        transform-origin: bottom center;
    }

    .fcp-widget.is-open .fcp-panel,
    .fcp-widget--left.is-open .fcp-panel {
        transform: translateY(0);
    }

    .fcp-form {
        max-height: calc(100vh - var(--fcp-mobile-panel-gap));
        max-height: calc(100dvh - var(--fcp-mobile-panel-gap));
    }

    .fcp-panel__body {
        padding-bottom: var(--fcp-mobile-body-padding-bottom);
    }

    .fcp-panel__footer {
        z-index: 20;
        padding-bottom: calc(var(--fcp-widget-offset) + env(safe-area-inset-bottom));
    }

    textarea.fcp-form__control {
        resize: none;
    }
}

/* Submission notices */
.fcp-form__notice {
    margin: var(--fcp-notice-margin);
    padding: var(--fcp-notice-padding);
    border-radius: var(--fcp-notice-radius);
    font-size: var(--fcp-notice-font-size);
    line-height: var(--fcp-notice-line-height);
}

.fcp-form__notice.is-success {
    border: var(--fcp-notice-border-width) solid var(--fcp-notice-success-border);
    background: var(--fcp-notice-success-bg);
    color: var(--fcp-notice-success-color);
}

.fcp-form__notice.is-error {
    border: var(--fcp-notice-border-width) solid var(--fcp-notice-error-border);
    background: var(--fcp-notice-error-bg);
    color: var(--fcp-notice-error-color);
}

.fcp-form.is-submitting .fcp-form__control {
    opacity: var(--fcp-submitting-field-opacity);
}

.fcp-form__submit:disabled {
    cursor: progress;
    opacity: var(--fcp-submit-disabled-opacity);
}

/* Spam protection and CAPTCHA */
.fcp-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fcp-form__security {
    margin: var(--fcp-security-margin-top) 0 0;
    color: var(--fcp-security-color);
    font-size: var(--fcp-security-font-size);
    line-height: var(--fcp-security-line-height);
}

.fcp-form__security--message {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-weight: 500;
}

.fcp-form__security-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    color: currentColor;
}

.fcp-form__security-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fcp-form__security-text {
    min-width: 0;
}

.fcp-form__captcha {
    margin-top: var(--fcp-captcha-margin-top);
    margin-bottom: var(--fcp-captcha-margin-bottom);
    min-height: var(--fcp-captcha-min-height);
    overflow: visible;
}

.fcp-form--has-captcha .fcp-panel__body {
    padding-bottom: var(--fcp-captcha-body-padding-bottom);
}


/* Proof-of-Work display modes. The native widget remains mounted so its
   verification behaviour is unaffected by Hidden or Compact presentation. */
.fcp-pow-display--hidden,
.fcp-pow-display--compact .fcp-pow-display__native,
.fcp-pow-display--checkbox-internal .fcp-pow-display__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.fcp-pow-display__status {
    margin: var(--fcp-security-margin-top) 0 0;
    padding: 0;
    color: var(--fcp-label-color);
    font-weight: 600;
}

.fcp-pow-display--compact {
    margin: 0;
    padding: 0;
}

.fcp-pow-display__shield {
    width: 15px;
    height: 15px;
}

.fcp-pow-display--compact-internal .fcp-pow-display__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--fcp-security-margin-top);
    color: var(--fcp-security-color);
    font-weight: 700;
}

.fcp-pow-display--compact-internal .fcp-pow-display__shield {
    flex: 0 0 auto;
}

.fcp-pow-display--checkbox-internal {
    margin: var(--fcp-security-margin-top) 0 0;
}

.fcp-pow-display__checkbox-ui {
    display: inline-flex;
    align-items: center;
    gap: var(--fcp-checkbox-gap);
    min-height: calc(var(--fcp-checkbox-size) + 10px);
    padding: 7px 10px;
    border: 1px solid var(--fcp-field-border-color);
    border-radius: 6px;
    color: var(--fcp-label-color);
    font-weight: 600;
    box-sizing: border-box;
}

.fcp-pow-display__checkbox-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: var(--fcp-checkbox-size);
    height: var(--fcp-checkbox-size);
    border: 1px solid var(--fcp-field-border-color);
    border-radius: 3px;
    box-sizing: border-box;
    color: var(--fcp-security-color);
}

.fcp-pow-display__checkbox-mark svg {
    display: block;
    width: 80%;
    height: 80%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.fcp-pow-display__checkbox-ui[data-fcp-pow-state="complete"] .fcp-pow-display__checkbox-mark svg {
    opacity: 1;
}

.fcp-pow-display__checkbox-text {
    min-width: 0;
}


@media (prefers-reduced-motion: reduce) {
    .fcp-panel {
        transition: none;
    }
}

/* Display & Behaviour device rules */
@media (min-width: 1024px) {
    .fcp-widget--hide-desktop {
        display: none !important;
    }
}

@media (min-width: 576px) and (max-width: 1023.98px) {
    .fcp-widget--hide-tablet {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .fcp-widget--hide-mobile {
        display: none !important;
    }
}

/* Display & Behaviour animation variants */
.fcp-widget--animation-none .fcp-panel {
    transition: none;
    transform: none;
}

.fcp-widget--animation-none.is-open .fcp-panel {
    transform: none;
}

.fcp-widget--animation-fade .fcp-panel {
    transform: none;
}

.fcp-widget--animation-slide-left .fcp-panel {
    transform: translateX(var(--fcp-animation-distance)) scale(var(--fcp-animation-scale));
}

.fcp-widget--left.fcp-widget--animation-slide-left .fcp-panel {
    transform: translateX(calc(-1 * var(--fcp-animation-distance))) scale(var(--fcp-animation-scale));
}

.fcp-widget--animation-slide-right .fcp-panel {
    transform: translateX(calc(-1 * var(--fcp-animation-distance))) scale(var(--fcp-animation-scale));
}

.fcp-widget--left.fcp-widget--animation-slide-right .fcp-panel {
    transform: translateX(var(--fcp-animation-distance)) scale(var(--fcp-animation-scale));
}

.fcp-widget--animation-slide-left.is-open .fcp-panel,
.fcp-widget--animation-slide-right.is-open .fcp-panel,
.fcp-widget--left.fcp-widget--animation-slide-left.is-open .fcp-panel,
.fcp-widget--left.fcp-widget--animation-slide-right.is-open .fcp-panel {
    transform: translateX(0) scale(1);
}

@media (max-width: 575.98px) {
    .fcp-widget--animation-slide-left .fcp-panel,
    .fcp-widget--animation-slide-right .fcp-panel,
    .fcp-widget--left.fcp-widget--animation-slide-left .fcp-panel,
    .fcp-widget--left.fcp-widget--animation-slide-right .fcp-panel {
        transform: translateY(100%);
    }

    .fcp-widget--animation-slide-left.is-open .fcp-panel,
    .fcp-widget--animation-slide-right.is-open .fcp-panel,
    .fcp-widget--left.fcp-widget--animation-slide-left.is-open .fcp-panel,
    .fcp-widget--left.fcp-widget--animation-slide-right.is-open .fcp-panel {
        transform: translateY(0);
    }
}

/* Customer copy option */
.fcp-form__group--checkbox {
    margin-top: var(--fcp-checkbox-group-margin-top);
}

.fcp-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--fcp-checkbox-gap);
    color: var(--fcp-checkbox-color);
    font-size: var(--fcp-checkbox-font-size);
    line-height: var(--fcp-checkbox-line-height);
    cursor: pointer;
}

.fcp-form__checkbox {
    flex: 0 0 auto;
    width: var(--fcp-checkbox-size);
    height: var(--fcp-checkbox-size);
    margin-top: var(--fcp-checkbox-offset-top);
}

.fcp-form__checkbox-label--agreement a {
    color: var(--fcp-agreement-link-color);
}

.fcp-form__checkbox-label--agreement a:hover,
.fcp-form__checkbox-label--agreement a:focus-visible {
    color: var(--fcp-agreement-link-hover-color);
}

/* Formilla Live Chat channel status, unread and message preview. */
.fcp-widget__button {
    position: relative;
}

.fcp-widget__formilla-unread {
    position: absolute;
    top: -7px;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--fcp-formilla-unread-bg);
    color: var(--fcp-formilla-unread-color);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.fcp-widget__formilla-unread[hidden] {
    display: none !important;
}


.fcp-widget--left .fcp-widget__formilla-unread {
    right: -7px;
    left: auto;
}

.fcp-widget--right .fcp-widget__formilla-unread {
    right: auto;
    left: -7px;
}

/* Live Chat top line:
 * icon | title/subtitle | Active + chevron
 */
.fcp-channel-menu__item--livechat {
    display: grid;
    grid-template-columns: var(--fcp-menu-icon-badge-size) minmax(0, 1fr) auto;
    grid-template-rows: auto;
    align-items: center;
    position: relative;
}

.fcp-channel-menu__item--livechat .fcp-channel-menu__icon-badge {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    align-self: center;
}

.fcp-channel-menu__item--livechat .fcp-channel-menu__copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
}

.fcp-channel-menu__formilla-meta {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    align-self: center;
    white-space: nowrap;
    transform: translateY(1px);
}

.fcp-channel-menu__formilla-active {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e9f7ee;
    color: #11833d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.fcp-channel-menu__formilla-active[hidden] {
    display: none !important;
}

/* Unread count overlays the top-right corner of the Live Chat icon badge. */
.fcp-channel-menu__icon-badge .fcp-channel-menu__formilla-unread {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 3;
    min-width: 22px;
    height: 22px;
    box-sizing: border-box;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--fcp-formilla-unread-bg);
    color: var(--fcp-formilla-unread-color);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.fcp-channel-menu__formilla-unread[hidden] {
    display: none !important;
}

.fcp-channel-menu__formilla-unread.is-pulsing::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--fcp-formilla-unread-bg);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    animation: fcp-formilla-unread-pulse var(--fcp-formilla-pulse-speed, 800ms) ease-out 1;
}

@keyframes fcp-formilla-unread-pulse {
    0%   { transform: scale(.82); opacity: 0; }
    10%  { opacity: .65; }
    38%  { transform: scale(1.55); opacity: 0; }
    48%  { transform: scale(.86); opacity: 0; }
    58%  { opacity: .60; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* A visible message preview creates a second row and spans the entire
 * channel width, including beneath the icon and right-side status/chevron.
 */
.fcp-channel-menu__item--livechat:has(.fcp-channel-menu__formilla-preview:not([hidden])) {
    grid-template-rows: auto auto;
    align-items: start;
}

.fcp-channel-menu__item--livechat:has(.fcp-channel-menu__formilla-preview:not([hidden])) .fcp-channel-menu__icon-badge,
.fcp-channel-menu__item--livechat:has(.fcp-channel-menu__formilla-preview:not([hidden])) .fcp-channel-menu__copy {
    align-self: start;
}

.fcp-channel-menu__item--livechat:has(.fcp-channel-menu__formilla-preview:not([hidden])) .fcp-channel-menu__formilla-meta {
    align-self: center;
    transform: translateY(3px);
}

.fcp-channel-menu__formilla-preview {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 1px 0 0;
    padding: 6px 9px;
    border-left: 3px solid var(--fcp-formilla-preview-accent);
    border-radius: 7px;
    background: var(--fcp-formilla-preview-bg);
    color: var(--fcp-formilla-preview-color);
    font-size: calc(var(--fcp-menu-subtitle-size) * .92);
    line-height: var(--fcp-menu-subtitle-line-height);
    overflow-wrap: anywhere;
}

.fcp-channel-menu__formilla-preview[hidden] {
    display: none !important;
}

.fcp-panel__close > svg,
.fcp-panel__close > span,
.fcp-panel__close .fcp-panel__close-svg {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.fcp-form__captcha:has(.fcp-pow-display--compact) {
    margin-bottom: 0;
    padding-bottom: 0;
}


.fcp-form__group.fcp-form__captcha:has(.fcp-pow-display--compact),
.fcp-form__captcha:has(.fcp-pow-display--compact),
.fcp-pow-display--compact {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.fcp-pow-display--compact .fcp-pow-display__status {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.fcp-form__group.fcp-form__captcha:has(.fcp-pow-display--compact) {
    min-height: 0;
}
