.lrl-widget {
    --lrl-primary: #08789a;
    --lrl-primary-dark: #075a75;
    --lrl-border: #d6e4ea;
    --lrl-muted: #607985;
    box-sizing: border-box;
    margin: 24px 0;
    padding: 26px;
    border: 1px solid var(--lrl-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
    box-shadow: 0 12px 34px rgba(20, 58, 76, .09);
}

.lrl-widget * {
    box-sizing: border-box;
}

.lrl-route-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) minmax(165px, .55fr);
    gap: 14px;
    align-items: end;
}

.lrl-field label {
    display: block;
    margin-bottom: 7px;
    color: #183f50;
    font-weight: 700;
}

.lrl-station-input,
.lrl-date {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #bfcfd7;
    border-radius: 11px;
    background: #fff;
    color: #172f39;
    font: inherit;
    outline: none;
}

.lrl-station-input:focus,
.lrl-date:focus {
    border-color: var(--lrl-primary);
    box-shadow: 0 0 0 3px rgba(8, 120, 154, .12);
}

.lrl-swap {
    width: 46px;
    height: 46px;
    border: 1px solid #c8d8df;
    border-radius: 50%;
    background: #fff;
    color: var(--lrl-primary);
    font-size: 25px;
    cursor: pointer;
    transition: .2s;
}

.lrl-swap:hover {
    transform: rotate(180deg);
    border-color: var(--lrl-primary);
}

.lrl-submit {
    min-height: 49px;
    margin-top: 18px;
    padding: 0 26px;
    border: 0;
    border-radius: 11px;
    background: var(--lrl-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(8, 120, 154, .22);
}

.lrl-submit:hover {
    background: var(--lrl-primary-dark);
}

.lrl-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.lrl-status,
.lrl-empty {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eef7fb;
    color: #244d5e;
}

.lrl-empty,
.lrl-status.is-visible {
    display: block;
}

.lrl-status.is-error {
    background: #fff1f0;
    color: #972820;
}

.lrl-summary {
    margin: 20px 0 10px;
    color: #466875;
    font-size: 14px;
    font-weight: 600;
}

.lrl-results .table-1 {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--lrl-border);
    border-radius: 12px;
    background: #fff;
}

.lrl-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
}

.lrl-table th,
.lrl-table td {
    padding: 12px;
    border-bottom: 1px solid #e7eef1;
    text-align: left;
    vertical-align: top;
}

.lrl-table th {
    background: #edf7fa;
    color: #17485b;
    font-size: 13px;
    text-transform: uppercase;
}

.lrl-table tr:last-child td {
    border-bottom: 0;
}

.lrl-table tr:nth-child(even) td {
    background: #fbfdfe;
}

.lrl-table td strong,
.lrl-table td small {
    display: block;
}

.lrl-table td small {
    margin-top: 3px;
    color: var(--lrl-muted);
    font-size: 12px;
}

.lrl-note {
    margin: 16px 0 0;
    color: var(--lrl-muted);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .lrl-route-grid {
        grid-template-columns: 1fr 46px 1fr;
    }

    .lrl-date-field {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .lrl-widget {
        padding: 18px;
        border-radius: 14px;
    }
.lrl-route-grid {
        grid-template-columns: 1fr;
    }

    .lrl-swap {
        justify-self: center;
        transform: rotate(90deg);
    }

    .lrl-swap:hover {
        transform: rotate(270deg);
    }

    .lrl-date-field {
        grid-column: auto;
    }

    .lrl-submit {
        width: 100%;
    }
}


.lrl-result-section {
    margin-top: 22px;
}

.lrl-result-section h3 {
    margin: 0 0 11px;
    color: #183f50;
    font-size: 20px;
}

.lrl-transfer-list {
    display: grid;
    gap: 14px;
}

.lrl-transfer-card {
    overflow: hidden;
    border: 1px solid var(--lrl-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 58, 76, .06);
}

.lrl-transfer-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: #edf7fa;
    color: #17485b;
}

.lrl-transfer-head > div,
.lrl-total-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lrl-transfer-head span {
    color: var(--lrl-muted);
    font-size: 13px;
}

.lrl-total-time {
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: right;
}

.lrl-total-time strong {
    white-space: nowrap;
}

.lrl-transfer-leg {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 16px;
    border-top: 1px solid #e7eef1;
}

.lrl-leg-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lrl-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.lrl-leg-route {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #173f50;
}

.lrl-leg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-top: 8px;
    color: var(--lrl-muted);
    font-size: 13px;
}

.lrl-leg-meta > strong,
.lrl-leg-meta > small {
    display: inline;
}

.lrl-leg-meta small {
    margin-left: 4px;
}

@media (max-width: 680px) {
    .lrl-transfer-head {
        display: block;
    }

    .lrl-transfer-head > div,
    .lrl-total-time {
        justify-content: flex-start;
        margin-top: 4px;
        text-align: left;
    }

    .lrl-transfer-leg {
        grid-template-columns: 30px minmax(0, 1fr);
        padding: 14px 12px;
    }

    .lrl-leg-route {
        align-items: flex-start;
    }
}


.lrl-source-notice {
    margin: 10px 0 16px;
    padding: 11px 13px;
    border-left: 3px solid var(--lrl-primary);
    border-radius: 6px;
    background: #f1f8fb;
    color: #486875;
    font-size: 13px;
    line-height: 1.5;
}

.lrl-google-attribution {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--lrl-border);
    color: #5e5e5e;
    font-family: Arial, Sans-Serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
}

.lrl-google-attribution > span:first-child {
    white-space: nowrap;
    font-size: 13px;
}

.lrl-google-attribution a {
    color: inherit;
    text-decoration: underline;
}


.lrl-seo-content {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--lrl-border);
    color: #294c5a;
    line-height: 1.72;
}

.lrl-seo-content > h3,
.lrl-faq > h3 {
    margin: 0 0 14px;
    color: #173f50;
    font-size: 22px;
    line-height: 1.35;
}

.lrl-seo-content p {
    margin: 0 0 14px;
}

.lrl-faq {
    margin-top: 24px;
}

.lrl-faq details {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--lrl-border);
    border-radius: 10px;
    background: #fff;
}

.lrl-faq summary {
    padding: 14px 16px;
    color: #17485b;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.lrl-faq details[open] summary {
    border-bottom: 1px solid #e7eef1;
    background: #edf7fa;
}

.lrl-faq details p {
    margin: 0;
    padding: 14px 16px 16px;
}

@media (max-width: 680px) {
.lrl-seo-content {
        margin-top: 24px;
        padding-top: 20px;
    }

    .lrl-seo-content > h3,
    .lrl-faq > h3 {
        font-size: 20px;
    }
}
