@mixin details-accordion {
    .details-accordion {
        .p-accordion {
            .p-accordion-header {
                margin-top: 0px;
                border-radius: 0px;
                position: relative;
                transition-duration: 0.2s;

                a {
                    padding: 0;

                    .details-accordion__header {
                        @include font-small();
                        font-weight: $font-medium;
                        padding: $space-xl;
                        position: relative;
                        display: flex;
                        flex-direction: row;
                        align-items: flex-start;
                        justify-content: flex-start;
                        background-color: $white;

                        .details-accordion__header__values {
                            display: flex;
                            flex-direction: row;
                            transition-duration: 0.2s;
                            opacity: 0;
                            visibility: hidden;
                            height: 0px;
                        }
                    }
                }

                &::after {
                    content: '';
                    position: absolute;
                    top: 0;
                    height: 1px;
                    left: $space-xl;
                    right: $space-xl;
                    border-top: 1.3px dotted $border;
                    transition-duration: 0.2s;
                }

                &.p-state-active {
                    .details-accordion__header__values {
                        opacity: 1 !important;
                        visibility: visible !important;
                        height: auto !important;
                    }

                    &::after {
                        left: 0;
                        right: 0;
                        border-top-style: solid;
                    }
                }
            }
        }

        .p-accordion-content {
            border-radius: 0 0 $border-radius $border-radius !important;
            padding: 0px;
            .details-accordion__body {
                padding: $space-xl;
                padding-top: 0;
            }
        }

        .details-accordion__title {
            white-space: normal;
            width: $margin-details-title;
        }
    }

    .accordion--open + flight-details-schedule {
        .p-accordion-header {
            &::after {
                left: 0 !important;
                right: 0 !important;
                border-top-style: solid !important;
            }
        }
    }
}

online-board-flight-details-page {
    @include details-accordion();
}

@import '../../../adaptive/_flights-board-details-page-adaptive';
