#bsapi-product-list {
    --bsapi-outer-bg: #252525;
    --bsapi-card-bg: #171717;
    --bsapi-text: #d8d8d8;
    --bsapi-muted: #9a9a9a;
    --bsapi-soft-text: #cfcfcf;
    --bsapi-download-text: #8e8e8e;
    --bsapi-line: #2a2a2a;
    --bsapi-gold: #a99863;
    --bsapi-gold-light: #c3b277;
    --bsapi-meta-gap: 7px;

    background: var(--bsapi-outer-bg);
    padding: 30px;
    border-radius: 3px;
}

.bsapi-product-card {
    background: var(--bsapi-card-bg);
    margin-bottom: 12px;
    padding: 28px;
    border-radius: 3px;
}

.bsapi-product-card:last-child {
    margin-bottom: 0;
}

.bsapi-product-card-head {
    position: relative;
    display: block;
    min-height: 120px;
    padding-right: 145px;
}

.bsapi-product-card-head::after {
    content: "";
    display: block;
    clear: both;
}

.bsapi-product-image {
    float: left;
    width: 120px;
    margin: 0 1rem 0 0;
}

.bsapi-product-image img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.bsapi-product-title,
.bsapi-product-purchased,
.bsapi-product-serialnumber {
    display: block;
    margin: 0;
}

.bsapi-product-title {
    color: var(--bsapi-text);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    padding-top: 1rem;
}

.bsapi-product-purchased {
    margin-top: var(--bsapi-meta-gap);
    color: var(--bsapi-soft-text);
    font-size: 14px;
    line-height: 1.35;
}

.bsapi-product-serialnumber {
    margin-top: var(--bsapi-meta-gap);
    color: var(--bsapi-soft-text);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bsapi-product-purchased i,
.bsapi-product-serialnumber i {
    color: var(--bsapi-muted);
}

.bsapi-product-card-head > span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.bsapi-product-downloads-button {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.bsapi-product-downloads-button:hover {
    color: #b7a56a;
}

.bsapi-product-downloads {
    display: none;
    padding-top: 22px;
    color: var(--bsapi-download-text);
    font-size: 14px;
    line-height: 1.5;
}

.bsapi-product-downloads p {
    margin: 0 0 8px 0;
    color: var(--bsapi-download-text);
}

.bsapi-product-downloads strong,
.bsapi-product-downloads b {
    color: #b7a56a;
    font-weight: 700;
}

.bsapi-product-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 1rem;
    padding-top: 22px;
    border-top: 1px solid var(--bsapi-line);

    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.4;
}

.bsapi-product-download:last-child {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bsapi-line);
}

.bsapi-product-download > div {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bsapi-product-download form {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.bsapi-product-download input[type="submit"].bsapi-product-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 32px;
    min-width: 96px;
    margin: 0 !important;
    padding: 0 16px !important;

    background: var(--bsapi-gold);
    border: 1px solid var(--bsapi-gold-light);
    color: #ffffff;

    font-size: 14px;
    line-height: 32px;
    font-weight: 400;

    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
    appearance: none;
}

.bsapi-product-download input[type="submit"].bsapi-product-download-button:hover {
    background: #b7a56a;
    border-color: #d0bf82;
    color: #ffffff;
}

.download-token-container {
    margin-top: 1rem;
}

@media (max-width: 767px) {
    #bsapi-product-list {
        padding: 24px;
    }

    .bsapi-product-card {
        padding: 24px 10px 14px 10px;
        margin-bottom: 12px;
    }

    .bsapi-product-card-head {
        min-height: 0;
        padding-right: 0;
    }

    .bsapi-product-image {
        width: 104px;
        margin: 0 1rem 14px 0;
    }

    .bsapi-product-image img {
        width: 104px;
        height: 104px;
    }

    .bsapi-product-title {
        padding-top: 1rem;
        font-size: 14px;
        line-height: 1.18;
    }

    .bsapi-product-purchased,
    .bsapi-product-serialnumber {
        font-size: 12px;
        line-height: 1.3;
    }

    .bsapi-product-card-head > span {
        position: static;
        display: block;
        clear: both;
        transform: none;
        margin-top: 12px;
    }

    .bsapi-product-downloads-button {
        font-size: 16px;
    }

    .bsapi-product-downloads {
        padding-top: 18px;
        font-size: 12px;
        line-height: 1.45;
    }

    .bsapi-product-download {
        gap: 12px;
        padding-top: 18px;
        font-size: 12px;
    }

    .bsapi-product-download input[type="submit"].bsapi-product-download-button {
        height: 32px;
        min-width: 86px;
        padding: 0 12px !important;
        font-size: 12px;
        line-height: 32px;
    }
}

/* Copy button */

.bsapi-copy-icon {
    margin-left: 10px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.8em;
    line-height: 1;
    cursor: pointer;
}

.bsapi-copy-icon:hover {
    color: #b7a56a;
}

.bsapi-copy-button--mobile {
    display: none;
}

.bsapi-copy-feedback {
    display: inline-block;
    margin-left: 10px;
    color: #6fa15f;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.bsapi-copy-feedback.is-visible {
    opacity: 1;
}

.bsapi-download-code-row {
    margin-top: 8px;
    margin-bottom: 18px;
    color: #a18f64;
}

.bsapi-download-code-row strong,
.bsapi-download-code-row .bsapi-token {
    color: #a18f64;
}

.bsapi-download-code-error {
    color: #a18f64;
}

@media (max-width: 767px) {
    .bsapi-copy-icon {
        display: none !important;
    }

    .bsapi-copy-button--mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin-top: 10px;
        padding: 8px 12px;

        background: #444444;
        border: none;
        color: #d8d8d8;

        font-size: 11px;
        line-height: 1.2;
        font-weight: 400;

        border-radius: 0;
        box-shadow: none;
        text-shadow: none;
        cursor: pointer;
    }

    .bsapi-copy-button--mobile:hover {
        background: #555555;
        color: #ffffff;
    }

    .bsapi-product-serialnumber .bsapi-copy-button--mobile {
        display: inline-flex;
    }

    .bsapi-download-code-row .bsapi-copy-button--mobile {
        display: inline-flex;
        margin-top: 10px;
    }

    .bsapi-copy-feedback {
        margin-left: 8px;
        font-size: 11px;
        color: #6fa15f;
    }

    .bsapi-download-code-row {
        margin-top: 10px;
        margin-bottom: 18px;
    }

    .bsapi-download-code-text {
        display: block;
    }
}

.bsapi-download-code-placeholder {
    color: #8e8e8e;
}

.bsapi-download-code-error {
    color: #b7a56a;
}

.bsapi-download-code-row {
    margin-top: 12px;
    margin-bottom: 18px;
}