.lsdl-downloads {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.lsdl-shortcode {
    max-width: 980px;
    margin: 24px auto;
    padding: 0;
}

.lsdl-row {
    display: grid;
    grid-template-columns: 112px 1fr auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 148px;
    padding: 20px 32px 20px 20px;
    border: 1px solid rgba(13, 90, 115, 0.16);
    border-radius: 18px;
    background: #ffffff;
    color: #022640;
    box-shadow: 0 6px 18px rgba(2, 38, 64, 0.035);
    box-sizing: border-box;
}

.lsdl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    color: #3d83e6;
    background: linear-gradient(145deg, #f4f7fc 0%, #eaf1fb 100%);
}

.lsdl-icon svg {
    width: 58px;
    height: 58px;
}

.lsdl-icon-green {
    color: #32a86a;
    background: linear-gradient(145deg, #eefaf3 0%, #e4f5ec 100%);
}

.lsdl-icon-purple {
    color: #7e62b4;
    background: linear-gradient(145deg, #f6f3fb 0%, #eeeaf7 100%);
}

.lsdl-copy {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.lsdl-copy strong {
    color: #011d3a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.lsdl-copy span {
    max-width: 520px;
    color: #526980;
    font-size: 17px;
    line-height: 1.4;
}

.lsdl-copy em {
    color: #5f7187;
    font-size: 16px;
    font-style: normal;
    line-height: 1.2;
}

.lsdl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 150px;
    min-height: 58px;
    padding: 15px 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #0d5f78 0%, #07516a 100%);
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 9px 18px rgba(7, 81, 106, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lsdl-button:hover,
.lsdl-button:focus {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #0f6d89 0%, #07516a 100%);
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(7, 81, 106, 0.24);
    outline: none;
}

.lsdl-button svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
}

.lsdl-installed-panel {
    border-style: solid !important;
}

@media (max-width: 980px) {
    .lsdl-row {
        grid-template-columns: 86px 1fr;
        padding: 18px;
        gap: 18px;
    }

    .lsdl-icon {
        width: 78px;
        height: 78px;
    }

    .lsdl-icon svg {
        width: 48px;
        height: 48px;
    }

    .lsdl-button {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .lsdl-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .lsdl-icon {
        width: 74px;
        height: 74px;
    }

    .lsdl-copy strong {
        font-size: 19px;
    }

    .lsdl-copy span,
    .lsdl-copy em {
        font-size: 15px;
    }
}

.lsdl-icon-gold {
    color: #caa13a;
    background: linear-gradient(145deg, #fff8e7 0%, #f6edcf 100%);
}

.lsdl-icon-teal {
    color: #0d5f78;
    background: linear-gradient(145deg, #eef9fb 0%, #dff1f5 100%);
}


/* v1.0.4: make injected Resources/Downloads use the full portal card width. */
.lsdl-installed-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 24px !important;
    border: 1px solid rgba(13, 90, 115, 0.14) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
}

.lsdl-panel-heading {
    color: #07516a;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.lsdl-panel-body {
    width: 100%;
    box-sizing: border-box;
}

.lsdl-panel-body > .lsdl-downloads {
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (min-width: 981px) {
    .lsdl-installed-resources-panel .lsdl-row,
    .lsdl-installed-downloads-panel .lsdl-row {
        grid-template-columns: 112px minmax(0, 1fr) auto;
    }

    .lsdl-installed-resources-panel .lsdl-copy,
    .lsdl-installed-downloads-panel .lsdl-copy {
        text-align: left;
        align-items: flex-start;
    }
}


/* v1.0.6: simple support email card for Support tab. */
.lsdl-support-email {
    width: 100%;
    box-sizing: border-box;
}

.lsdl-support-email-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    background: #f5f9fc;
    box-sizing: border-box;
}

.lsdl-support-email-copy {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.lsdl-support-email-copy strong {
    color: #011d3a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.lsdl-support-email-copy span {
    color: #022640;
    font-size: 18px;
    line-height: 1.35;
}

.lsdl-support-email-copy a {
    color: #075f78 !important;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none !important;
    overflow-wrap: anywhere;
}

.lsdl-support-email-copy a:hover,
.lsdl-support-email-copy a:focus {
    text-decoration: underline !important;
}

.lsdl-support-email-copy em {
    color: #022640;
    font-size: 17px;
    font-style: normal;
    line-height: 1.3;
}

.lsdl-installed-support-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    padding: 24px !important;
    border: 1px solid rgba(13, 90, 115, 0.14) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
}

@media (max-width: 640px) {
    .lsdl-support-email-card {
        grid-template-columns: 1fr;
    }
}
