.guide-route-section {
    width: 100%;
    max-width: var(--content-max-width);
    margin: clamp(28px, 4vw, 48px) auto;
    padding: 0 var(--content-padding-x);
    box-sizing: border-box;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.guide-route-box {
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 3vw, 44px);

    border: 2px dashed #ffffff;
    box-sizing: border-box;

    color: #ffffff;
}

.guide-route-title {
    margin: 0 0 clamp(18px, 3vw, 32px);
    padding: 0 0.8em;

    color: #ffffff;

    font-size: clamp(1.5rem, 1.05rem + 1.5vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.guide-route-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: clamp(10px, 2vw, 20px);
}

.guide-route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-height: clamp(48px, 5vw, 64px);

    padding:
        clamp(10px, 1.5vw, 14px)
        clamp(16px, 2.5vw, 26px);

    box-sizing: border-box;

    border: 2px solid var(--route-button-border, #ffffff);
    border-radius: var(--route-button-radius, 0);

    color: var(--route-button-text, #ffffff);
    background: var(--route-button-background, #333333);

    font-family: inherit;
    font-size: clamp(1rem, 0.82rem + 0.85vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;

    white-space: normal;
    overflow-wrap: anywhere;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        filter 0.16s ease,
        box-shadow 0.16s ease;
}

.guide-route-button:visited {
    color: var(--route-button-text, #ffffff);
}

.guide-route-button:hover,
.guide-route-button:focus-visible {
    color: var(--route-button-text, #ffffff);
    filter: brightness(1.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.guide-route-button:active {
    color: var(--route-button-text, #ffffff);
    transform: translateY(0);
    box-shadow: none;
}

.route-confirm-dialog {
    width: min(520px, calc(100vw - 32px));
    margin: auto;
    padding: 0;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;

    color: #ffffff;
    background: rgba(10, 10, 10, 0.96);

    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.route-confirm-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
}

.route-confirm-panel {
    padding: clamp(20px, 4vw, 38px);
}

.route-confirm-message {
    margin: 0;

    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.35rem);
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
    overflow-wrap: anywhere;
}

.route-confirm-message strong {
    font-weight: 800;
}

.route-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: clamp(10px, 2vw, 14px);
    margin-top: clamp(20px, 3vw, 28px);
}

.route-confirm-button {
    min-width: 110px;
    padding:
        clamp(9px, 1.5vw, 11px)
        clamp(16px, 2.5vw, 22px);

    border: 2px solid currentColor;
    border-radius: 0;

    font-family: inherit;
    font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1rem);
    font-weight: 700;
    line-height: 1.35;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.route-confirm-cancel {
    color: #ffffff;
    background: #333333;
}

.route-confirm-accept {
    color: #000000;
    background: #ffffff;
}

.route-confirm-button:hover,
.route-confirm-button:focus-visible {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.route-confirm-button:active {
    transform: translateY(0);
}

.route-confirm-button:focus-visible {
    outline: 3px solid #79bfff;
    outline-offset: 3px;
}

#route-confirm-name {
    display: inline-block;
    margin: 0 0.18em;
    padding: 0.15em 0.48em;

    border: 2px solid var(
        --confirm-name-border,
        #ffffff
    );

    border-radius: var(
        --confirm-name-radius,
        0
    );

    color: var(
        --confirm-name-text,
        #ffffff
    );

    background: var(
        --confirm-name-background,
        #333333
    );

    font-size: inherit;
    font-weight: 800;
    line-height: 1.25;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .guide-route-section {
        margin: 24px auto;
    }

    .guide-route-box {
        padding: 18px 14px;
    }

    .guide-route-title {
        margin-bottom: 18px;
        padding: 0 0.25em;

        font-size: 1.5rem;
        line-height: 1.35;
    }

    .guide-route-buttons {
        gap: 10px;
    }

    .guide-route-button {
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;

        font-size: 1rem;
        line-height: 1.45;
    }

    .route-confirm-dialog {
        width: calc(100vw - 24px);
    }

    .route-confirm-panel {
        padding: 20px 16px;
    }

    .route-confirm-message {
        font-size: 1rem;
        line-height: 1.6;
    }

    .route-confirm-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .route-confirm-button {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 14px;

        font-size: 0.95rem;
    }
}