/* "Panel doradcy" (assets/lead-panel.js). Lives on <body>, outside any .hub-cs-*
   scope: the accent (main button only) and the font come from the theme, as in tray.css.
   Selectors are doubled (.hub-cs-lp .hub-cs-lp-…) so theme form styles don't win. */
.hub-cs-lp {
    --hub-cs-lp-accent: var(--hub-cs-accent, var(--theme-button-background-initial-color, var(--wp--preset--color--primary, #0a6b58)));
    --hub-cs-lp-accent-text: var(--hub-cs-accent-text, var(--theme-button-text-initial-color, #fff));
    --hub-cs-lp-radius: var(--hub-cs-button-radius, 10px);
    font-family: var(--hub-cs-font-family, inherit);
    line-height: 1.45;
}

.hub-cs-lp *,
.hub-cs-lp *::before,
.hub-cs-lp *::after {
    box-sizing: border-box;
}

/* ---- Computer: from the right edge, middle of the screen ---- */
.hub-cs-lp .hub-cs-lp-panel {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 99980;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fff;
    color: #1d2327;
    border-radius: 16px 0 0 16px;
    box-shadow: -14px 0 40px rgba(0, 0, 0, .22);
    transform: translate(110%, -50%);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}

.hub-cs-lp.is-open .hub-cs-lp-panel {
    transform: translate(0, -50%);
}

.hub-cs-lp .hub-cs-lp-photo {
    position: relative;
    height: 132px;
    background: #c9d3dc center / cover no-repeat;
}

.hub-cs-lp .hub-cs-lp-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7));
}

.hub-cs-lp .hub-cs-lp-region {
    position: absolute;
    left: 18px;
    right: 50px;
    bottom: 12px;
    z-index: 1;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hub-cs-lp .hub-cs-lp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1d2327;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.hub-cs-lp .hub-cs-lp-body,
.hub-cs-lp .hub-cs-lp-thanks {
    padding: 16px 18px 18px;
}

.hub-cs-lp .hub-cs-lp-thanks {
    text-align: center;
    padding: 26px 20px;
}

.hub-cs-lp .hub-cs-lp-ok {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e3f4ea;
    color: #1d7a46;
    font-size: 24px;
}

.hub-cs-lp .hub-cs-lp-title {
    margin: 0 0 6px;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
}

.hub-cs-lp .hub-cs-lp-text {
    margin: 0 0 10px;
    font-size: 14px;
    color: #50575e;
}

.hub-cs-lp .hub-cs-lp-chip {
    margin: 0 0 12px;
    padding: 7px 10px;
    border-radius: 9px;
    background: #f0f3f6;
    font-size: 12.5px;
    color: #1d2327;
}

.hub-cs-lp .hub-cs-lp-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.hub-cs-lp .hub-cs-lp-input {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #c3cbd3;
    border-radius: 9px;
    background: #fff;
    color: #1d2327;
    font: inherit;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: none;
}

.hub-cs-lp .hub-cs-lp-row {
    display: flex;
    gap: 8px;
}

.hub-cs-lp .hub-cs-lp-row .hub-cs-lp-input:first-child {
    flex: 1.6;
}

.hub-cs-lp .hub-cs-lp-row .hub-cs-lp-input:last-child {
    flex: 1;
}

.hub-cs-lp .hub-cs-lp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.hub-cs-lp .hub-cs-lp-consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #50575e;
    cursor: pointer;
}

.hub-cs-lp .hub-cs-lp-consent input {
    width: auto;
    margin: 2px 0 0;
    flex: none;
}

.hub-cs-lp .hub-cs-lp-consent a {
    color: inherit;
    text-decoration: underline;
}

.hub-cs-lp .hub-cs-lp-error {
    margin: 0;
    font-size: 12.5px;
    color: #b32d2e;
}

.hub-cs-lp .hub-cs-lp-error:empty {
    display: none;
}

.hub-cs-lp .hub-cs-lp-send {
    width: 100%;
    margin: 2px 0 0;
    padding: 12px;
    border: 0;
    border-radius: var(--hub-cs-lp-radius);
    background: var(--hub-cs-lp-accent);
    color: var(--hub-cs-lp-accent-text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.hub-cs-lp .hub-cs-lp-send:disabled {
    opacity: .7;
    cursor: default;
}

/* ---- Phone: a bar at the bottom, the form slides up on a tap ---- */
.hub-cs-lp .hub-cs-lp-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 99980;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-radius: 14px;
    background: #1d2327;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transform: translateY(160%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
    cursor: pointer;
}

.hub-cs-lp.is-open .hub-cs-lp-bar {
    transform: translateY(0);
}

.hub-cs-lp.is-sheet .hub-cs-lp-bar {
    transform: translateY(160%);
}

.hub-cs-lp .hub-cs-lp-thumb {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 9px;
    background: #55606b center / cover no-repeat;
}

.hub-cs-lp .hub-cs-lp-bar-text {
    flex: 1;
    min-width: 0;
}

.hub-cs-lp .hub-cs-lp-bar-text strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.25;
}

.hub-cs-lp .hub-cs-lp-bar-text small {
    display: block;
    font-size: 11.5px;
    line-height: 1.3;
    opacity: .75;
}

.hub-cs-lp .hub-cs-lp-bar-go {
    flex: none;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--hub-cs-lp-accent);
    color: var(--hub-cs-lp-accent-text);
    font-size: 12.5px;
    font-weight: 800;
}

.hub-cs-lp .hub-cs-lp-bar .hub-cs-lp-close {
    position: static;
    width: 26px;
    height: 26px;
    line-height: 26px;
    flex: none;
    background: transparent;
    color: #fff;
    opacity: .75;
}

.hub-cs-lp .hub-cs-lp-shade {
    position: fixed;
    inset: 0;
    z-index: 99981;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.hub-cs-lp.is-sheet .hub-cs-lp-shade {
    opacity: 1;
    pointer-events: auto;
}

.hub-cs-lp .hub-cs-lp-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99982;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: #1d2327;
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.hub-cs-lp.is-sheet .hub-cs-lp-sheet {
    transform: translateY(0);
}

.hub-cs-lp .hub-cs-lp-grab {
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: #c3cbd3;
}

.hub-cs-lp .hub-cs-lp-sheet .hub-cs-lp-photo {
    height: 110px;
    margin: 8px 12px 0;
    border-radius: 12px;
    overflow: hidden;
}

.hub-cs-lp .hub-cs-lp-sheet .hub-cs-lp-close {
    top: 26px;
    right: 22px;
}

.hub-cs-lp .hub-cs-lp-sheet .hub-cs-lp-title {
    font-size: 17px;
}

/* 16px: iPhones zoom the page into smaller form fields. */
.hub-cs-lp .hub-cs-lp-sheet .hub-cs-lp-input {
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .hub-cs-lp .hub-cs-lp-panel,
    .hub-cs-lp .hub-cs-lp-bar,
    .hub-cs-lp .hub-cs-lp-sheet,
    .hub-cs-lp .hub-cs-lp-shade {
        transition: none;
    }
}
