.linknoss-price-card {
    --lrp-accent: #15afeb;
    --lrp-accent-dark: #193c73;
    --lrp-surface: #f2f6fa;
    --lrp-text: #0b2246;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: flex-start;
    gap: 0;
    box-sizing: border-box;
    width: min(100%, 470px);
    padding: 15px 18px;
    border: 1px solid rgba(21, 175, 235, .32);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, var(--lrp-surface) 100%);
    box-shadow: 0 9px 26px rgba(11, 34, 70, .12);
    color: var(--lrp-text);
    container-type: inline-size;
    font: inherit;
    line-height: 1.25;
}

.linknoss-price-card *,
.linknoss-price-card *::before,
.linknoss-price-card *::after {
    box-sizing: border-box;
}

.linknoss-price-card__border-beam {
    position: absolute;
    z-index: 0;
    inset: -1px;
    overflow: hidden;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.linknoss-price-card__border-beam::before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 180%;
    aspect-ratio: 1;
    content: "";
    background: conic-gradient(from 0deg, transparent 0 76%, rgba(21, 175, 235, .12) 83%, var(--lrp-accent) 91%, #8edcff 94%, transparent 100%);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: lrp-border-beam 5.5s linear infinite;
}

.linknoss-price-card__content {
    position: relative;
    z-index: 1;
}

@keyframes lrp-border-beam {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .linknoss-price-card__border-beam::before {
        animation: none;
        opacity: 0;
    }
}

.linknoss-price-card__content {
    display: grid;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    gap: 2px;
}

.linknoss-price-card__label {
    display: block;
    margin-bottom: 3px;
    color: var(--lrp-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.linknoss-price-card__booking-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 0;
}

.linknoss-price-card__price {
    color: var(--lrp-accent);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    letter-spacing: -.025em;
    white-space: nowrap;
}

.linknoss-price-card__price small {
    color: var(--lrp-accent);
    font-size: .52em;
    font-weight: 750;
    letter-spacing: .03em;
}

.linknoss-price-card__departure {
    margin: 3px 0 1px;
    color: var(--lrp-accent-dark);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.linknoss-price-card__verified {
    margin-top: 5px;
    color: #59697e;
    font-size: 10px;
    font-weight: 400;
    opacity: .82;
    text-align: center;
}

.linknoss-route-price--unavailable {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f6f7f7;
    color: #59666a;
    font-size: 13px;
}

@media (max-width: 420px) {
    .linknoss-price-card {
        width: 100%;
        padding: 12px 14px;
        gap: 11px;
    }

    .linknoss-price-card__booking-row {
        column-gap: 6px;
    }

    .linknoss-price-card__verified {
        font-size: 9px;
    }
}

/* ---------------------------------------------- intestazione e righe */

.linknoss-price-card__heading {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    color: var(--lrp-accent);
    font-size: clamp(15px, 3.6vw, 18px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    text-transform: none;
}

.lrp-rows {
    display: grid;
    gap: 8px;
    margin: 5px 0 4px;
}

.lrp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px 15px;
    border: 1px solid rgba(21, 175, 235, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}


.lrp-row__info {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.lrp-row__label {
    color: var(--lrp-text);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    opacity: .72;
}

/* La riga resta identica all'altra: il badge è agganciato al bordo
   e non entra nel flusso, quindi non sposta nulla. */
.lrp-row--best {
    position: relative;
}

.lrp-row__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.lrp-row__badge {
    position: absolute;
    right: 14px;
    bottom: -9px;
    z-index: 1;
    display: block;
    max-width: calc(100% - 24px);
    margin: 0;
    border-radius: 999px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ff8a1f 0%, #f0620a 100%);
    box-shadow: 0 2px 8px rgba(240, 98, 10, .38);
    color: #fff;
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
    opacity: 1;
    overflow: hidden;
    text-align: center;
    animation: lrp-promo-pulse 2.4s ease-in-out infinite;
}

.lrp-row__badge::after {
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    content: "";
    animation: lrp-promo-shine 3.2s ease-in-out infinite;
}

@keyframes lrp-promo-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(240, 98, 10, .34); }
    50% { box-shadow: 0 3px 14px rgba(240, 98, 10, .62); }
}

@keyframes lrp-promo-shine {
    0%, 62% { left: -60%; }
    100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .lrp-row__badge { animation: none; }
    .lrp-row__badge::after { display: none; }
}

.lrp-row__date {
    color: var(--lrp-accent-dark);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.lrp-row__price {
    flex: 0 0 auto;
    color: var(--lrp-accent);
    font-size: clamp(19px, 3.6vw, 24px);
    font-weight: 800;
    letter-spacing: -.025em;
    white-space: nowrap;
}


.lrp-row__price small {
    font-size: .52em;
    font-weight: 750;
    letter-spacing: .03em;
}

@media (max-width: 420px) {
    .lrp-row {
        padding: 11px 12px 13px;
    }

    .lrp-row__date {
        font-size: 13px;
    }
}

.linknoss-price-card--stale .linknoss-price-card__verified {
    opacity: .95;
}


.linknoss-price-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 9px 0 3px;
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1cc0f5 0%, var(--lrp-accent) 55%, #0f8fc4 100%);
    box-shadow: 0 6px 16px rgba(21, 175, 235, .32);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .045em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.linknoss-price-card__cta:hover,
.linknoss-price-card__cta:focus {
    box-shadow: 0 10px 24px rgba(21, 175, 235, .42);
    color: #fff;
    filter: saturate(1.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.linknoss-price-card__cta:focus-visible {
    outline: 2px solid var(--lrp-accent-dark);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .linknoss-price-card__cta {
        transition: none;
    }
}

/* Con le classi del tema resta solo la spaziatura, nessuno stile proprio. */
.lrp-cta-theme {
    margin: 9px 0 3px;
}

/* Segnaposto della resa differita */
.linknoss-price-live {
    display: block;
}

/* Segnaposto fermo: nessuna animazione, nessun effetto di sostituzione. */
.lrp-skeleton {
    min-height: 46px;
    border-color: rgba(21, 175, 235, .14);
    background: rgba(21, 175, 235, .06);
}

/* Contenitore autonomo: la visibilità la decide il plugin, non il tema. */
.linknoss-price-wrap {
    display: block;
}

.lrp-only-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .lrp-only-mobile {
        display: block;
    }

    .lrp-only-desktop {
        display: none;
    }
}

/* Comparsa morbida del contenuto caricato dopo la pagina */
.linknoss-price-live > * {
    animation: lrp-appear .28s ease-out both;
}

@keyframes lrp-appear {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .linknoss-price-live > * { animation: none; }
}
