/*
 * =========================================================
 * DESIGN SETTINGS
 * =========================================================
 */

.fd-kjoreplan {

    /* -----------------------------------------
       Elementor global values
       ----------------------------------------- */

    --fd-text: var(--e-global-color-text);
    --fd-primary: var(--e-global-color-primary);
    --fd-secondary: var(--e-global-color-secondary);
    --fd-accent: var(--e-global-color-accent);

    --fd-blue: var(--e-global-color-ebc0440);
    --fd-orange: var(--e-global-color-64a015a);
    --fd-beige: var(--e-global-color-7f7106c);
    --fd-light: var(--e-global-color-eaa664e);


    /* -----------------------------------------
       General component values
       ----------------------------------------- */

    --fd-surface: #fff;
    --fd-border: #e5e5e5;
    --fd-muted: #6f6f6f;

    --fd-radius: 12px;


    /* -----------------------------------------
       Event colors

       Change these three to quickly restyle
       the event types.
       ----------------------------------------- */

    --fd-program: var(--fd-primary);
    --fd-stasjon: var(--fd-blue);
    --fd-reise: var(--fd-orange);


    /* -----------------------------------------
       Derived colors
       ----------------------------------------- */

    --fd-program-soft:
        color-mix(in srgb, var(--fd-program) 15%, white);

    --fd-stasjon-soft:
        color-mix(in srgb, var(--fd-stasjon) 12%, white);


    /* -----------------------------------------
       Typography
       ----------------------------------------- */

    font-family:
        var(--e-global-typography-text-font-family),
        inherit;

    color: var(--fd-text);

    width: 100%;
}


/* =========================================================
   GROUP SELECT
   ========================================================= */

.fd-group-select-wrap {
    position: relative;
    margin-bottom: 10px;
}

.fd-group-select {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 62px;
    padding: 11px 14px;

    background: var(--fd-surface);

    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius);

    cursor: pointer;
}

.fd-group-select-content {
    min-width: 0;
}

.fd-group-select-label {
    margin-bottom: 2px;

    color: var(--fd-muted);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.fd-group-select-value {
    color: var(--fd-text);

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.fd-chevron {
    display: flex;

    width: 18px;
    height: 18px;

    flex-shrink: 0;

    color: var(--fd-muted);
}

.fd-chevron svg {
    display: block;
    width: 100%;
    height: 100%;
}

.fd-group-select-input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}


/* =========================================================
   GROUP BUTTONS
   ========================================================= */

.fd-group-chips {
    display: flex;
    gap: 6px;

    margin-bottom: 24px;
    padding-bottom: 3px;

    overflow-x: auto;

    scrollbar-width: none;
}

.fd-group-chips::-webkit-scrollbar {
    display: none;
}

.fd-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 34px;
    height: 34px;

    padding: 0 10px;

    background: var(--fd-surface);
    color: var(--fd-text);

    border: 1px solid var(--fd-border);
    border-radius: 999px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.fd-chip.active {
    background: var(--fd-text);
    border-color: var(--fd-text);
    color: #fff;
}


/* =========================================================
   GROUP INFORMATION
   ========================================================= */

.fd-group-meta {
    margin-bottom: 22px;

    padding: 14px 16px;

    background: var(--fd-light);

    border-radius: var(--fd-radius);
}

.fd-group-name {
    margin-bottom: 5px;

    color: var(--fd-text);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fd-group-classes {
    color: var(--fd-text);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   NEXT EVENT
   ========================================================= */

.fd-next {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 18px;

    padding: 5px 10px 5px 8px;

    background: var(--fd-text);
    color: #fff;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.fd-next-dot {
    display: block;

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    background: var(--fd-primary);

    border-radius: 50%;
}

.fd-next-time {
    font-weight: 600;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.fd-timeline {
    position: relative;
}

.fd-timeline::before {
    content: "";

    position: absolute;

    top: 6px;
    bottom: 6px;
    left: 52px;

    width: 1px;

    background: var(--fd-border);
}

.fd-item {
    position: relative;

    display: grid;

    grid-template-columns:
        44px
        20px
        minmax(0, 1fr);

    gap: 7px;

    margin-bottom: 4px;
}


/* Time */

.fd-time {
    padding-top: 12px;

    color: var(--fd-muted);

    font-size: 13px;
    font-weight: 500;
    line-height: 1;

    text-align: right;
    white-space: nowrap;
}


/* Timeline dot */

.fd-dotcol {
    position: relative;

    display: flex;
    justify-content: center;

    padding-top: 11px;
}

.fd-node {
    position: relative;
    z-index: 2;

    display: block;

    width: 9px;
    height: 9px;

    background: var(--fd-text);

    border: 2px solid var(--fd-surface);
    border-radius: 50%;
}

.fd-program .fd-node {
    background: var(--fd-program);
}

.fd-stasjon .fd-node {
    background: var(--fd-stasjon);
}

.fd-reise .fd-node {
    width: 6px;
    height: 6px;

    background: var(--fd-reise);
}


/* =========================================================
   EVENT CARDS
   ========================================================= */

.fd-card {
    min-width: 0;

    margin-bottom: 10px;

    padding: 11px 13px;

    background: var(--fd-surface);

    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius);
}

.fd-tag {
    display: inline-block;

    margin-bottom: 5px;

    padding: 3px 7px;

    border-radius: 4px;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fd-program .fd-tag {
    background: var(--fd-program-soft);
    color: var(--fd-text);
}

.fd-stasjon .fd-tag {
    background: var(--fd-stasjon-soft);
    color: var(--fd-stasjon);
}

.fd-description {
    color: var(--fd-text);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =========================================================
   REISE
   ========================================================= */

.fd-reise .fd-card {
    padding: 9px 2px 9px 0;

    background: transparent;

    border: 0;
}

.fd-reise-description {
    display: flex;
    align-items: flex-start;

    gap: 6px;

    color: var(--fd-muted);

    font-size: 13px;
}

.fd-walk-icon {
    display: inline-flex;

    width: 13px;
    height: 13px;

    flex: 0 0 13px;

    margin-top: 2px;

    color: var(--fd-reise);
}

.fd-walk-icon svg {
    display: block;

    width: 100%;
    height: 100%;
}


/* =========================================================
   HIDDEN GROUPS
   ========================================================= */

.fd-group-panel[hidden] {
    display: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fd-timeline::before {
        left: 47px;
    }

    .fd-item {
        grid-template-columns:
            39px
            18px
            minmax(0, 1fr);

        gap: 6px;
    }

    .fd-time {
        font-size: 12px;
    }

    .fd-description {
        font-size: 13px;
    }
}