/* ==========================================================
   SUBLIMOLDES DESCARGAS PERSONALIZADAS
========================================================== */

.smd-downloads-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.smd-download-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 24px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.smd-download-media {
    width: 220px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smd-download-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Si el producto no tiene imagen */
.smd-download-image-placeholder {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.smd-download-info {
    min-width: 0;
}

.smd-download-title {
    margin: 0 0 14px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.smd-download-line {
    margin: 7px 0;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.smd-download-line strong {
    font-weight: 800;
}

.smd-icon {
    display: inline-block;
    width: 24px;
}

.smd-password-line {
    color: #065f46;
}

.smd-password-line code {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 11px;
    border-radius: 8px;
    background: #d1fae5;
    border: 1px solid #86efac;
    color: #064e3b;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .3px;
}

.smd-muted {
    color: #6b7280;
}

.smd-download-action {
    display: flex;
    justify-content: center;
    align-items: center;
}

.smd-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 42px;
    padding: 10px 18px;
    background: #020617;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .4px;
    border-radius: 2px;
    border: 1px solid #111827;
    box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.smd-download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
    opacity: .92;
}

.smd-download-button-disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .85;
}

.smd-download-pending {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.55;
}

.sublimoldes-countdown {
    margin: 9px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px dashed #fb923c;
    color: #7c2d12;
    font-size: 15px;
    font-weight: 900;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .smd-download-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .smd-download-media {
        width: 150px;
        height: 120px;
    }

    .smd-download-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .smd-download-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .smd-download-media {
        width: 100%;
        height: 190px;
    }

    .smd-download-button {
        width: 100%;
    }
}

/* ==========================================================
   TITULO CLICKEABLE
   Normal: negro / Hover: azul
========================================================== */

.smd-download-card .smd-download-title a.smd-download-title-link,
.woocommerce-MyAccount-content .smd-download-card .smd-download-title a.smd-download-title-link,
.woocommerce-MyAccount-content .smd-download-card .smd-download-title a.smd-download-title-link:visited {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.smd-download-card .smd-download-title a.smd-download-title-link:hover,
.smd-download-card .smd-download-title a.smd-download-title-link:focus,
.woocommerce-MyAccount-content .smd-download-card .smd-download-title a.smd-download-title-link:hover,
.woocommerce-MyAccount-content .smd-download-card .smd-download-title a.smd-download-title-link:focus {
    color: #2563eb !important;
    text-decoration: underline !important;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ==========================================================
   AJUSTE PADDING MI CUENTA SOLO EN MÓVIL
   Escritorio queda intacto
========================================================== */

@media (max-width: 767px) {
    .elementor-widget-woocommerce-my-account .e-my-account-tab__downloads .woocommerce-MyAccount-content-wrapper,
    .elementor-widget-woocommerce-my-account .e-my-account-tab__orders .woocommerce-MyAccount-content-wrapper {
        padding: var(--sections-padding, 16px 3px 3px 3px) !important;
    }
}