﻿/* Libby promo */
.theme-white.libby-footer-promo {
    background: white;
    color: black;

    .libby-footer-promo__headline > * {
        color: black;
        font-weight: bold;
    }

    .libby-footer-promo__contents a {
        color: black;
        text-decoration: underline;
    }
}

.libby-footer-promo {
    color: white;
    background: linear-gradient(180deg, #921c43 38.23%, #641b36 100%);
    font-size: 16px;
    font-weight: normal;
    line-height: 22px;
    margin-top: 30px;

    .row {
        max-width: 82.5rem;
        margin: 0 auto;
    }

    p {
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        margin-bottom: 0;
    }

    .libby-footer-promo__headline {
        font-size: 24px;
        line-height: 30px;
        color: white;
        margin: 0;
    }

    .libby-footer-promo__paragraph {
        margin-bottom: 0;
    }

    .libby-footer-promo__message {
        ul {
            margin-bottom: 0;

            :last-child {
                margin-bottom: 0;
            }
        }

        :last-child {
            margin-bottom: 20px;
        }
    }

    .libby-footer-promo__headline-kindle {
        font-weight: normal;
    }

    .libby-footer-promo__contents {
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 0;
    }

    .libby-footer-promo__message,
    .libby-footer-promo__libby-app-group {
        margin-top: 30px;
    }

    @media (max-width: 869px) {
        padding: 40px 26px;

        .libby-footer-promo__contents {
            align-items: center;
            flex-direction: column;
        }

        .libby-footer-promo__message,
        .libby-footer-promo__libby-app-group {
            margin-top: 0;
        }
    }

    .libby-footer-promo__contents a {
        color: white;
        text-decoration: underline;
    }

    .libby-footer-promo__libby-device {
        align-self: flex-end;
        display: flex;
        flex-direction: column;
        margin: -30px -60px 0 -60px;
    }

    @media (max-width: 869px) {
        .libby-footer-promo__libby-device {
            display: none;
        }
    }

    .libby-footer-promo__message {
        display: flex;
        flex: 1 1;
        flex-direction: column;
        gap: 20px;
    }
}

@media (min-width: 870px) {
    .libby-footer-promo {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Libby App Group */
.libby-app-group {
    font-size: 16px;
    font-weight: normal;
    line-height: 22px;
    max-width: 30rem;
    padding: 0;

    p {
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        margin-bottom: 0;
    }
}

.libby-app-group__app-container {
    color: #222222;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;

    .libby-app-group__app-libby {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        text-align: center;
    }

    .libby-app-group__app-libby-headline {
        font-size: 15px;
        line-height: 18px;
    }

    .libby-app-group__app-libby-icon {
        height: 78px;
        margin-bottom: 4px;
        width: 78px;
    }

    .libby-app-group__app-libby-tagline {
        font-size: 13px;
        line-height: 16px;
    }

    .libby-app-group__app-link-container {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;

        .app-store-badge__link {
            padding-bottom: 24px;
        }

            .app-store-badge__link:last-of-type {
                padding-bottom: 0;
            }
    }
}

.libby-app-group__row {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 300px;

    &.libby-app-group__kindle-fire-row {
        align-items: center;
        font-size: 14px;
    }

    .libby-app-group__column {
        display: flex;
        flex-direction: row;
        justify-content: center;

        &.libby-app-group__app-column {
            background: #f1f2f5;
            border-radius: 12px;
            padding: 20px 16px;
        }

        &.libby-app-group__award-column {
            justify-content: space-around;
            gap: 20px;
            margin-bottom: 20px;
            margin-top: 20px;
        }

        &.libby-app-group__kindle-fire-column {
            flex-direction: column;
        }
    }
}

.libby-app-group__link {
    text-decoration: underline;
    color: black;
}

.libby-app-group__libbyAppLink {
    margin-top: 10px;
}

/* App Badges */
.app-store-badge__link {
    border-radius: 8px;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

    .app-store-badge__link:hover {
        filter: brightness(0.8);
    }

.app-store-badge__icon {
    height: 51px;
    width: 170px;
}

