/* Download page (after a purchase) and order history: the files in a card,
   one row per item with its download button */

.download-page #title-description a{
    color: var(--c);
}

.download-page #title-description b{
    color: #fff;
    font-weight: 600;
}

/* The files beside the thank you picture, stacked on narrow screens */
.dl-layout{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    max-width: 1240px;
    margin-top: 28px;
}

@container packs (max-width: 900px){
    .dl-layout{
        grid-template-columns: minmax(0, 1fr);
    }
}

.dl-card{
    position: relative;
    padding: 22px 26px;
    border: 1px solid #181e23;
    border-radius: 12px;
    background: #111315;
}

/* Signature gradient line on top */
.dl-card::before{
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8f6bff, #d052d8, #ff7a6b, transparent);
}

.dl-card h2{
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a97a3;
}

.dl-history{
    max-width: 640px;
    margin-top: 28px;
}

.dl-list{
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The button goes under the name when they don't fit side by side */
.dl-item{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 14px 0;
    border-top: 1px solid #1d2329;
}

.dl-item:first-child{
    border-top: 0;
}

.dl-name{
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14.5px;
    font-weight: 500;
    color: #fff;
    overflow-wrap: anywhere;
}

.dl-date{
    font-size: 13px;
    font-weight: 300;
    color: #8a97a3;
}

/* Like the buy buttons */
.dl-button{
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 25px;
    background: #7b48fc;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s;
}

.dl-button:hover{
    background: #8a5dfc;
    color: #fff;
}

.dl-button:focus-visible{
    outline: 2px solid #55f5ff;
    outline-offset: 2px;
}

.dl-button.download-history-link-disabled,
.dl-button.download-history-link-disabled:hover{
    background: #2a323a;
    color: #8a97a3;
    cursor: not-allowed;
}

.dl-thanks img{
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #181e23;
    border-radius: 12px;
}

@media screen and (max-width: 600px){
    .dl-card{
        padding: 18px 20px;
    }
}
