@import './consts.scss';

.withTrackingOptInDialogShown {
    overflow: hidden;
}

.overlay {
    background-color: rgba(0, 0, 0, .5);
    bottom: 0;
    color: $color-text;
    left: 0;
    max-width: 100vw;
    position: fixed;
    right: 0;
    top: 0;
}

.dialog {
    background-color: white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: flex;
    flex-direction: column;
    font-family: $font-family !important;
    font-weight: normal;
}

.background {
    position: absolute;
}

.footer {
    background-color: #fff;
    box-shadow: 0 0 6px 0 rgba(195, 195, 195, 0.5);
    box-sizing: border-box;
    padding: 12px 27px;
    text-align: center;
    display: flex;
    gap: 16px;

    @media #{$desktop-devices} {
        text-align: right;
        flex-direction: row-reverse;
    }

    @media #{$mobile-devices} {
        display: flex;
        height: auto;
        flex-direction: column;
        gap: 8px;
    }
}

.footerButton {
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    outline: none;
    padding: 11px 18px;
    text-transform: uppercase;
}

.consentButtons {
    display: flex;
    height: auto;
    gap: 18px;
    flex-direction: row;

    @media #{$mobile-devices} {
        flex-direction: column-reverse;
        gap: 8px
    }
}

.acceptButton,
.rejectButton,
.saveButton {
    background-color: $color-primary-fill;
    border: 1px solid $color-primary-fill;
    color: $color-primary;
}

.learnMoreButton,
.backButton {
    background-color: $color-secondary-fill;
    border: 1px solid $color-secondary;
    color: $color-secondary;
}

.learnMoreButton {
    order: 2
}

.backButton {
    order: 3
}

.acceptButton {
    order: 1
}

.link {
    color: $color-link !important;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

.chevron {
    fill: $color-gray;
    height: 12px;
    margin-bottom: -2px;
    margin-left: 10px;
    width: 12px;
}

.chevronExpanded {
    transform: rotate(180deg);
}
