:root {
    --color-primary: #c21b17;
    --color-primary-hover: #a61a16;
    --color-white: #fff;
    --color-text-dark: #20252b;
    --font-main: "Roboto", sans-serif;
}

.block-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    padding: 30px 0 30px 70px;

}

.block-wrapper>div {
    flex: 1;
    box-sizing: border-box;
}

.offices-list {
    max-height: 450px;
    height: 450px;
    overflow: auto;
    padding-block: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    gap: 8px;
    border-radius: 4px;
    border: 2px solid transparent;
    padding: 18px 66px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    a {
        font-family: var(--font-main);
        color: inherit;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    &.btn-red-background {
        background-color: var(--color-primary);
        color: var(--color-white);
        border-color: var(--color-primary);

        &:hover {
            background-color: var(--color-primary-hover);
            border-color: var(--color-primary-hover);
            color: var(--color-white);
        }
    }

    &.btn-white-background {
        background: var(--color-white);
        color: var(--color-primary);
        padding: 18px 30px;
    }
}

@media (max-width: 1024px) {
    .cta-button {
        padding: 18px;
    }
}

.agent-offices-slider {
    h3 {
        padding-left: 72px;
        margin-block: 0;
        font-size: 1.5rem;
        font-weight: 300;
        letter-spacing: 0;
        line-height: 32px;
        text-transform: uppercase;
    }

    h4 {
        margin-bottom: 10px;
        margin-top: 0;
        font-size: 0.75rem;
        font-weight: 500;
        letter-spacing: 1px;
        line-height: 16px;
        text-transform: uppercase;
    }

    .agent-office {
        padding-top: 18px;
        margin-right: 42px;
        overflow: hidden;

    }

    @media (max-width: 1024px) {
        .agent-office {
            margin-top: 20px;
            margin-bottom: 30px;
            padding-left: 24px;
            padding-right: 24px;
            padding-bottom: 24px;
            word-break: break-all;
            box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        }
    }

    p {
        font-size: 0.875rem;
        letter-spacing: .25px;
        line-height: 20px;
        margin-block: 0;
        font-weight: 300;
    }

    a {
        text-transform: uppercase;
    }

    .tel-email {
        margin-bottom: 24px;
        padding-top: 24px;

        a {
            color: var(--color-text-dark);
            text-decoration: underline;
        }

        strong {
            font-weight: 500;
        }
    }

    .office-link {
        margin-top: 16px;

        a {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-decoration: underline;
            text-transform: unset;
        }
    }

    .glide__bullets {
        bottom: 0;
        align-items: center;
    }

    .glide__bullet {
        width: 3px;
        height: 3px;
        background-color: #b0b2b3;
        border: unset;
    }

    .glide__bullet:focus,
    .glide__bullet:hover {
        background-color: var(--color-primary);
        border: unset;
    }

    .glide__bullet--active {
        width: 8px;
        height: 8px;
        background-color: var(--color-primary);
    }

    .glide__bullet--adjacent {
        width: 10px;
        height: 10px;
        background-color: var(--color-primary);
    }
}

.agent-phone-block {
    position: relative;
    width: 40%;
    max-width: 40%;
    background: var(--color-primary);
    margin-top: -30px;
    color: var(--color-white);
    flex: none;
    align-self: flex-start;
    gap: 24px;
    justify-content: space-around;
    padding: 20px;
    text-align: center;
    max-height: none;

    .phone {
        font-weight: 300;
        letter-spacing: 0;
        margin: 0;

        a {
            color: var(--color-white);
        }
    }

    .cta-button {
        margin-top: 24px;
    }

    .whatsapp-button {
        display: flex;
        margin-top: 20px;
        margin-bottom: 20px;
        justify-content: center;
        align-items: center;
    }

    .icon {
        background-size: cover;
        flex-shrink: 0;
        font-family: "GeneraliIcons" !important;
        font-size: 1.5rem;
        font-weight: 400;
        width: 20px;

        &.whatsapp-icon::before {
            content: "\e972";
            color: var(--color-white);
        }
    }

    .mi-generali-link {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        color: var(--color-white);
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 700;
        font-size: 0.875rem;
        letter-spacing: 1px;
        cursor: pointer;

        .chevron-icon::before {
            font-family: "GeneraliIcons" !important;
            content: "\e910";
            font-size: 1.5rem;
            font-weight: 700;
            color: #fff;
        }
    }

    .whatsapp-label {
        color: var(--color-white);
        font-weight: bold;
    }
}

@media (max-width: 1024px) {
    .agent-phone-block {
        display: none;

    }
}


.office-item {
    display: flex;
    flex-direction: row;
    align-items: inherit;
    justify-content: space-between;
    margin-bottom: 32px;
    margin-right: 32px;
    padding-bottom: 10px;
    position: relative;

    .office-contacts {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        .icon {
            font-weight: 400;
            line-height: 1.4;
            color: #333;
            font-size: 1rem;
            font-family: Roboto, sans-serif;
            margin-block: 0;
            display: flex;
            align-items: center;
            text-align: left;
        }

        .icon::before {
            content: "";
            background-repeat: no-repeat;
            display: inline-block;
            background-size: 22px 22px;
            width: 40px;
            height: 22px;
            vertical-align: middle;
            margin-right: 15px;
            background-position: left;
        }

        .icon--map::before {
            background-image: url(/themes/custom/generali/images/icons/icon-map.svg);
        }

        .icon--phone::before {
            background-image: url(/themes/custom/generali/images/icons/phone-icon.svg);
        }

        .icon--mail::before {
            background-image: url(/themes/custom/generali/images/icons/mail-icon.svg);
        }

        .icon--clock::before {
            background-image: url(/themes/custom/generali/images/icons/clock-icon.svg);
        }

        .icon--phone a {
            color: #333;
        }

        .icon--mail a {
            color: #333;
        }
    }

    @media (max-width: 1024px) {
        .office-contacts {
            word-break: break-word;

        }
    }


    .office-buttons {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        p {
            margin-block: 0;
        }

        button.show-office-map {
            display: inline-block;
            padding: 12px 24px;
            background-image: url(/themes/custom/generali/images/icons/location-icon.svg);
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-color: #fff;
            border: none;
            cursor: pointer;
        }

        button.show-office-hours {
            display: inline-block;
            padding: 12px 24px;
            background-image: url(/themes/custom/generali/images/icons/calendar-icon.svg);
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
            background-color: #fff;
            border: none;
            cursor: pointer;
            margin-bottom: 8px;
        }
    }
}


.office-item::after {
    content: '';
    display: block;
    width: 20%;
    height: 1px;
    background: black;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 40%;
}



@media (max-width: 1024px) {
    .mediator-office {
        width: 90%;
        box-shadow: 0 5px 35px 0 rgba(27, 19, 19, .1);
        margin: 30px 20px;
        padding: 24px;
    }
}

@media (max-width: 475px) {
    .office-item {
        margin-right: 0;

        .icon--phone::before {
            margin-right: 0px !important;
        }

        .office-buttons {
            margin-block: 20px;
        }
    }

    .mediator-office {
        width: 80%;

        .tel-email {
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }
}

.page-node-type-agent {
    .two_columns {
        .two_columns__cta {
            .btn-transparent-link {
                a:not(.cta-arrow-link)::after {
                    background-size: cover;
                    flex-shrink: 0;
                    font-family: "GeneraliIcons" !important;
                    font-size: 1.5rem;
                    font-weight: 400;
                    width: 20px;
                    content: "\e972";
                }
                .icon::after {
                    display: none;
                }
            }
        }
    }
}