.download-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 7px 5px 7px 5px;
    border: 2px outset #f4b543;
    border-radius: 5px;
    
    background: linear-gradient(#ffe85f, #f0a400);
    color: #3a2100;
    box-sizing: border-box;
    font: bold 12px Arial,Tahoma,Verdana,sans-serif;
    text-decoration: none;
    margin-bottom: 4px;
    max-width: 100%;
}

.download-button:hover {
    background: linear-gradient(#ffd21f);
    color: #2a1700;
    text-decoration: none;
}

.download-button:active {
    border-style: inset;
}

.download-button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    line-height: 1.08;
    text-align: right;
}

.download-button-main {
    color: #3c2100;
    font-size: 15px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button-type {
    color: #57360a;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.15;
    white-space: normal;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button-size {
    color: #432700;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.15;
    white-space: normal;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button-meta {
    color: #6a4814;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.15;
    white-space: normal;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button.mirror-button {
    min-height: 38px;
    padding: 5px 5px 5px 5px;
    background: linear-gradient(#ffb2b2, #b00020);
    border-color: #ffb2b2;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.download-button.mirror-button:hover {
    background: #99001c;
    color: #fff;
}

.download-button.mirror-button .download-button-main {
    color: #fff;
     text-shadow: 0 1px 0 #550010, 0 0 3px rgba(0,0,0,.5);
}

.download-button.mirror-button .download-button-type,
.download-button.mirror-button .download-button-size,
.download-button.mirror-button .download-button-meta {
    color: #ffe66b;
    font-weight: bold;
    text-shadow: 0 1px 0 #550010, 0 0 3px rgba(0,0,0,.45);
}

a.download-button.torrent-button,
.download-button.torrent-button {
    min-height: 38px;
    padding: 5px 5px 5px 5px;
    background: linear-gradient(#4f4f4f, #050505);
    border-color: #777;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

a.download-button.torrent-button:hover,
.download-button.torrent-button:hover {
    background: #000;
    color: #fff;
}

a.download-button.torrent-button .download-button-main,
.download-button.torrent-button .download-button-main {
    color: #fff;
    text-shadow: 0 1px 0 #000, 0 0 3px rgba(0,0,0,.65);
}

a.download-button.torrent-button .download-button-type,
a.download-button.torrent-button .download-button-size,
a.download-button.torrent-button .download-button-meta,
.download-button.torrent-button .download-button-type,
.download-button.torrent-button .download-button-size,
.download-button.torrent-button .download-button-meta {
    color: #cfcfcf;
    font-weight: bold;
    text-shadow: 0 1px 0 #000, 0 0 3px rgba(0,0,0,.5);
}

.download-button.pending-approval {
    background: linear-gradient(#efefef, #bdbdbd);
    border-color: #ddd;
    color: #555;
    cursor: default;
    text-shadow: none;
}

.download-button.pending-approval:hover {
    background: linear-gradient(#efefef, #bdbdbd);
    color: #555;
    text-decoration: none;
}

.download-button.pending-approval .download-button-main,
.download-button.pending-approval .download-button-type,
.download-button.pending-approval .download-button-size,
.download-button.pending-approval .download-button-meta {
    color: #555;
    text-shadow: none;
}

a.download-button.pending-approval {
    cursor: pointer;
}

.download-button.bundle-download {
    margin-top: 0;
    background: linear-gradient(#dfffe9, #61c981);
    border-color: #96dfb5;
}

.download-button.bundle-download:hover {
    background: linear-gradient(#a8efb8);
}

.download-button.bundle-download .download-button-main {
    color: #311d00;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button.bundle-download .download-button-type {
    color: #4f3305;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button.bundle-download .download-button-size {
    color: #251600;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button:not(.bundle-download) .download-button-size {
    color: #432700;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 0px rgba(255,255,255,.72);
}

.download-button .icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('/mods/icons.png');
    background-repeat: no-repeat;
    background-position: -24px 0;
    vertical-align: middle;
    flex: 0 0 auto;
    margin-left: 5px;
}

.download-button .icon.navigate {
    transform: rotate(-90deg);
}

.download-button .mirror-icon,
.download-button .bundle-icon,
.download-button .torrent-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    margin-left: 5px;
}

.download-button .waiting-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url("/waiting.gif") no-repeat center center;
    background-size: contain;
    margin-left: 5px;
}

.download-file .download-button {
    margin-bottom: 0;
}

.download-file {
    text-align: right;
}

.download-action-row .download-button {
    justify-self: end;
}

.mod-detail .download-button.mirror-button {
    margin-top: 0px;
}

.mod-detail .download-button.torrent-button {
    margin-top: 0px;
}

.download-select .download-button.mirror-button {
    width: auto;
    min-width: 118px;
    margin-top: 0;
}

.download-select .download-button.torrent-button {
    width: auto;
    min-width: 118px;
    margin-top: 0;
}

.download-select .download-button.mirror-button .download-button-main,
.download-select .download-button.mirror-button .download-button-type,
.download-select .download-button.torrent-button .download-button-main,
.download-select .download-button.torrent-button .download-button-type {
    white-space: nowrap;
}
