/* Déclencheur repris à l’identique de l’ancien plugin. */
.expedition-delay .info-icon {
    position: relative;
    color: #2b537f;
    font-size: 1em;
    font-style: normal;
    cursor: pointer;
}

.expedition-delay .checkmark {
    font-size: 16px;
    font-weight: bold;
    filter: saturate(46%) hue-rotate(12deg) brightness(82%) contrast(163%);
}

.expedition-delay {
    margin-bottom: 0 !important;
    font-size: 96%;
    cursor: pointer;
}

button.expedition-delay {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    text-transform: none;
}

button.expedition-delay:hover,
button.expedition-delay:focus {
    color: inherit;
    background: none;
    border: 0;
    box-shadow: none;
}

button.expedition-delay:focus-visible {
    outline: 2px solid #0a55de;
    outline-offset: 4px;
}

button.expedition-delay:focus:not(:focus-visible) {
    outline: none;
}

button.expedition-delay.lft-tpop-pointer-focus {
    outline: none !important;
}

.lft-tpop-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgb(14 23 38 / 66%);
    backdrop-filter: blur(3px);
}

.lft-tpop-dialog {
    --lft-blue: #0a55de;
    --lft-ink: #17253d;
    --lft-muted: #69758a;
    --lft-line: #e2e7ef;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    box-sizing: border-box;
    width: min(600px, calc(100vw - 32px));
    max-height: min(720px, calc(100svh - 32px));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 28px 30px 24px;
    color: var(--lft-ink);
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgb(8 21 43 / 30%);
    font-family: inherit;
    transform: translate(-50%, -50%);
    -webkit-overflow-scrolling: touch;
}

.lft-tpop-dialog:focus {
    outline: none;
}

.lft-tpop-dialog[hidden],
.lft-tpop-dialog-backdrop[hidden] {
    display: none;
}

.lft-tpop-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.lft-tpop-dialog h2 {
    max-width: 430px;
    margin: 0;
    color: var(--lft-ink);
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.lft-tpop-dialog__close {
    display: grid !important;
    flex: 0 0 38px;
    place-items: center;
    box-sizing: border-box !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: -5px -7px 0 0 !important;
    padding: 0 !important;
    color: #536176 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    line-height: 1 !important;
    cursor: pointer;
    appearance: none;
}

.lft-tpop-dialog__close:hover {
    color: var(--lft-ink) !important;
    background: #f0f3f7 !important;
}

.lft-tpop-dialog__close:focus {
    box-shadow: none !important;
    outline: none;
}

.lft-tpop-dialog__close:focus-visible {
    outline: 2px solid var(--lft-blue);
    outline-offset: 2px;
}

.lft-tpop-zone {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.lft-tpop-zone legend {
    margin-bottom: 8px;
    padding: 0;
    color: var(--lft-muted);
    font-size: 12px;
    font-weight: 600;
}

.lft-tpop-zone__options {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    padding: 3px;
    background: #f0f3f7;
    border-radius: 9px;
}

.lft-tpop-zone__options input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.lft-tpop-zone__options label {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 7px 13px;
    color: var(--lft-muted);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.lft-tpop-zone__options input:checked + label {
    color: var(--lft-ink);
    background: #fff;
    box-shadow: 0 1px 3px rgb(20 35 60 / 12%);
}

.lft-tpop-zone__options input:focus-visible + label {
    outline: 2px solid var(--lft-blue);
    outline-offset: 1px;
}

.lft-tpop-journey {
    margin-top: 22px;
}

.lft-tpop-journey__dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 11px;
    color: var(--lft-muted);
    font-size: 12px;
    line-height: 1.25;
}

.lft-tpop-journey__dates span:last-child {
    text-align: right;
}

.lft-tpop-journey__track {
    position: relative;
    display: flex;
    gap: 4px;
    align-items: center;
    height: 14px;
    padding: 0 6px;
}

.lft-tpop-journey__track .is-preparation,
.lft-tpop-journey__track .is-transit {
    height: 7px;
    border-radius: 999px;
}

.lft-tpop-journey__track .is-preparation {
    flex: 1 1 50%;
    background: var(--lft-blue);
}

.lft-tpop-journey__track .is-transit {
    flex: 1 1 50%;
    background: #8fb0e8;
}

.lft-tpop-journey__track .is-start,
.lft-tpop-journey__track .is-end {
    position: absolute;
    z-index: 1;
    top: 50%;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid var(--lft-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

.lft-tpop-journey__track .is-start {
    left: 0;
}

.lft-tpop-journey__track .is-end {
    right: 0;
    border-color: #7ea3df;
}

.lft-tpop-journey__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 15px;
}

.lft-tpop-journey__steps > div {
    min-width: 0;
    text-align: center;
}

.lft-tpop-journey__steps span {
    display: block;
    color: var(--lft-muted);
    font-size: 13px;
    line-height: 1.35;
}

.lft-tpop-journey__steps strong {
    display: block;
    margin: 4px 0 0;
    color: var(--lft-ink);
    font-size: 14px;
    font-weight: 680;
    line-height: 1.35;
}

.lft-tpop-dialog__footnote {
    margin: 22px 0 0;
    padding-top: 16px;
    color: var(--lft-muted);
    border-top: 1px solid var(--lft-line);
    font-size: 11px;
    line-height: 1.45;
}

.lft-tpop-dialog-open {
    overflow: hidden;
}

@media (max-width: 849px) {
    .expedition-delay {
        margin-bottom: 5px !important;
    }
}

@media (max-width: 600px) {
    .lft-tpop-dialog {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: min(88svh, 680px);
        padding: 24px 20px max(20px, env(safe-area-inset-bottom));
        border-radius: 20px 20px 0 0;
        transform: none;
    }

    .lft-tpop-dialog h2 {
        max-width: 280px;
        font-size: 21px;
    }

    .lft-tpop-zone {
        margin-top: 20px;
    }

    .lft-tpop-zone__options {
        display: grid;
        width: 100%;
    }

    .lft-tpop-zone__options label {
        padding: 8px 9px;
    }

    .lft-tpop-journey {
        margin-top: 20px;
    }

    .lft-tpop-journey__steps {
        gap: 18px;
    }
}

@media screen and (min-width: 200px) and (max-width: 330px) {
    .lft-tpop-dialog {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lft-tpop-dialog h2 {
        font-size: 19px;
    }

    .lft-tpop-journey__steps {
        gap: 12px;
    }

    .lft-tpop-journey__steps span {
        font-size: 12px;
    }

    .lft-tpop-journey__steps strong {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lft-tpop-dialog {
        animation: lft-tpop-dialog-in 180ms cubic-bezier(.2, .8, .2, 1);
    }

    .lft-tpop-dialog-backdrop {
        animation: lft-tpop-backdrop-in 160ms ease-out;
    }

    .lft-tpop-dialog.is-closing {
        animation: lft-tpop-dialog-out 180ms cubic-bezier(.4, 0, 1, 1) forwards;
    }

    .lft-tpop-dialog-backdrop.is-closing {
        animation: lft-tpop-backdrop-out 180ms ease-in forwards;
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
    .lft-tpop-dialog {
        animation: lft-tpop-sheet-in 280ms cubic-bezier(.22, 1, .36, 1);
    }

    .lft-tpop-dialog.is-closing {
        animation: lft-tpop-sheet-out 240ms cubic-bezier(.4, 0, 1, 1) forwards;
    }
}

@keyframes lft-tpop-dialog-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 8px)) scale(.985);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes lft-tpop-sheet-in {
    from {
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lft-tpop-dialog-out {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 8px)) scale(.985);
    }
}

@keyframes lft-tpop-sheet-out {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

@keyframes lft-tpop-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lft-tpop-backdrop-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
