.DigitalProductOverview {
    background-color: var(--white);
    min-height: $component-height;

    &-section-wrapper {
        border: 1px solid var(--gray-400);
        border-radius: 3px;
        margin-bottom: 25px;

        &-with-errors {
            border: 1px solid var(--parrot);
        }
    }

    &-header {
        align-content: stretch;
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    &-header-title {
        margin-bottom: 10px;
        margin-top: 0;
    }

    &-section {
        border-top: 1px solid var(--gray-400);
        display: flex;
        flex-wrap: wrap;
        padding: 25px;
        width: $content-inner-width;

        &-no-paddings {
            padding: 0 0;
        }

        &-subsection {
            width: 100%;
            margin-top: 3px;
        }

        .DigitalProductOverviewArtwork-invalid-image {
            display: flex;
            flex-flow: row wrap;
            justify-content: center;
            align-items: center;
            margin-top: 40px;
            text-align: center;
        }

        .DigitalProductOverviewArtwork-invalid-header {
            font-weight: 500;
            font-size: 16px;
            color: #a8a0a0;
        }
    }

    &-row {
        display: flex;
        flex-wrap: wrap;
    }

    .LoadingIndicator {
        height: $component-height;
    }
}

.DigitalProductOverview-header {
    .DismissibleAlert {
        margin-bottom: 20px;
        width: 100%;
    }

    .CollapsableAlert {
        margin-bottom: 30px;
        width: 100%;
    }
}

.DigitalProductOverviewTracks {
    &-table {
        width: 100%;
    }

    &-column-title {
        color: $grey_300;
        font-weight: $weight_bold;
        padding-bottom: 5px;
        padding-top: 5px;
        text-transform: uppercase;
        &:first-child {
            padding-left: 25px;
            padding-right: 25px;
        }
    }

    &-empty-icon {
        .Icons-tracks-empty {
            height: 60px;
            width: 60px;
            margin-bottom: 15px;
        }
    }

    &-head-row {
        border-bottom: 1px solid $grey_200;
    }

    &-not-found {
        align-items: center;
        color: $grey_300;
        font-size: 18px;
        font-weight: $weight_bold;
        margin-bottom: initial;
        text-align: center;
        width: 100%;
    }

    &-track-item {
        padding-bottom: 10px;
        padding-right: 10px;
        padding-top: 10px;

        width: 350px;

        &-performers {
            display: inline-block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 195px;
        }

        /*
            The ability to show tooltips for elements with text overflow cut off
            with ellipsis that don't have a non-empty title is part of WebKit core,
            but it's turned off by default.
            Only Safari overrides that and has the behavior enabled.
            There's no way to turn that off from the application code.
            As a work-around, is to add an empty block element inside the element
            that has the overflow hidden with text-overflow: ellipsis
         */
        &-performers::before {
            content: "";
            display: block;
        }

        &-audio-controls .Icons-play,
        .Icons-stop {
            cursor: pointer;
        }

        &-audio-duration {
            display: inline-block;
            /* stylelint-disable declaration-no-important */
            margin-left: 10px !important;
        }
    }

    &-track-number {
        color: $grey_300;
        font-size: 12px;
        font-weight: $weight_bold;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
        width: 2%;
    }

    &-track-row {
        border-bottom: 1px solid $grey_150;
        color: var(--gray-800);
        font-size: 14px;
        font-weight: $weight_book;
        padding-bottom: 10px;
        padding-top: 10px;
        /* stylelint-disable max-nesting-depth */
        &:last-child {
            border-bottom: none;
        }
        &.Corrected {
            color: var(--fox);
            .Icons-refresh {
                fill: var(--fox);
                vertical-align: middle;
            }
        }
        /* stylelint-enable max-nesting-depth */
    }

    &-volume-divider {
        background-color: var(--gray-800);
        color: var(--white);
        font-size: 14px;
        font-weight: $weight_bold;
        padding: 5px;
    }

    &-track-name {
        padding: 10px 15px 10px 0;
        width: 23%;
    }

    &-expand-track-list,
    &-shrink-track-list {
        color: var(--bluejay);
        font-size: 12px;
        font-weight: $weight_bold;
        padding-bottom: 10px;
        padding-top: 10px;
        text-align: center;
        text-transform: uppercase;

        .Icons-down-direction-arrow {
            fill: var(--bluejay);
            transform: translateX(2px) translateY(2px);
        }
    }

    &-shrink-track-list {
        .Icons-down-direction-arrow {
            transform: translateX(2px) translateY(2px) rotate(180deg);
        }
    }

    &-track-list-button:hover {
        cursor: pointer;
    }

    &-us-pub-obligation {
        max-width: 0;
        padding: 10px 15px 10px 0;
        width: 34%;

        &-label {
            display: block;
            overflow: hidden;
            text-decoration: none;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }

    &-publishers {
        padding: 10px 15px 10px 0;
        width: 34%;
    }
}

.PrimaryArtist-field-truncate {
    -webkit-box-orient: vertical;
    display: block;
    /* stylelint-disable */
    display: -webkit-box;
    /* stylelint-enable */
    height: auto;
    -webkit-line-clamp: 2;
    margin: 0;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.DigitalProductOverview-section-wrapper-artwork {
    display: inline-block;
    vertical-align: top;
    width: 275px;

    .DigitalProductOverviewSectionHeader {
        width: 275px;
    }

    .DigitalProductOverview-section {
        width: 274px;
    }

    .Icons-artwork-empty {
        /* stylelint-disable */
        height: 76px !important;
        /* stylelint-enable */
        margin-top: 64px;
        width: 76px;
    }
}

.DigitalProductOverview-section-wrapper-promo-player {
    display: inline-block;
    margin-left: 25px;
    width: 575px;

    .DigitalProductOverviewSectionHeader {
        width: 575px;
    }

    .DigitalProductOverview-section {
        display: block;
        width: 574px;
    }
}
