.tb-offer-modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    margin: 0 auto;
    min-height: 100vh;
    width: 100%;
    background: white;

    &.is-target {
        z-index: config('zIndex.full');
        overflow-y: scroll;
    }
}

.tb-offer-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid config('colors.grey-light');
    padding: 1rem;

    @include mappy-bp(lg) {
        border: 0;
        margin: 0 auto;
        max-width: 46rem; // 736px according to the design.
    }
}

.tb-offer-modal__title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;

    @include mappy-bp(lg) {
        font-size: 2rem;
        font-weight: 700;
        margin-top: 4rem;
    }
}

.tb-offer-modal__close {
    color: config('colors.grey-dark');

    .c-icon {
        font-size: 1.5rem;
    }

    @include mappy-bp(lg) {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;

        .c-icon {
            font-size: 2rem;
        }
    }
}

// Styles are not meant for production yet.
.tb-offer-modal__content {
    margin: 0 auto;
    max-width: 46rem; // 736px according to the design
    padding: 1rem 1rem 8rem;
}

.tb-offer-modal__ticket-selection {
    height: 0;
    visibility: hidden;
    transform: scaleY(0);

    &.is-target {
        height: auto;
        margin-top: 2.5rem;
        visibility: visible;
        transform: scaleY(1);
    }
}

.tb-offer-modal__time-label {
    font-size: .875rem;
    cursor: pointer;
    display: block;
    margin-bottom: .25rem;
}

.tb-select-wrapper {
    position: relative;

    .c-icon {
        font-size: 2rem;
        pointer-events: none;
        position: absolute;
        top: .375rem;
        right: .625rem;
    }
}

.tb-offer-modal__time-select {
    display: block;
    border: 1px solid config('colors.grey');
    height: 3rem;
    padding: .75rem;
    width: 100%;
    appearance: none;
    background: config('colors.grey-lighter');
    border-radius: .25rem;

    // Remove browser dropdown indicator in Internet Explorer.
    &::-ms-expand {
        display: none;
    }
}
