/*
 Theme Name: Shoptimizer Child
 Theme URI: https://example.com/
 Description: Child theme for Shoptimizer to safely store customizations.
 Author: You
 Version: 1.0.0
 Template: shoptimizer
 Text Domain: shoptimizer-child
*/

/* ============================
   My Account – Downloads Panel
   ============================ */

.sem-account-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 28px 32px 32px;
    margin: 0 0 32px;
    position: relative;
    overflow: hidden;
}

/* Top gradient header bar */
.sem-account-panel__header {
    margin: -28px -32px 24px;
    padding: 20px 32px;
    background: linear-gradient(135deg, #1d3557, #264f7d);
    color: #ffffff;
}

.sem-account-panel__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
}

.sem-account-panel__subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.85;
}

/* Small metadata line under header */
.sem-account-panel__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 18px;
}

/* Table wrapper */
.sem-downloads-table-wrapper {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #ffffff;
}

/* Table */
.sem-downloads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sem-downloads-table thead {
    background: #f4f6fb;
}

.sem-downloads-table th,
.sem-downloads-table td {
    padding: 10px 14px;
    text-align: left;
}

.sem-downloads-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.sem-downloads-table tbody tr:nth-child(even) {
    background-color: #fafbff;
}

.sem-downloads-table tbody tr:hover {
    background-color: #eef2ff;
}

/* File column */
.sem-downloads-file {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sem-downloads-file__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e5edff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sem-downloads-file__icon svg {
    width: 16px;
    height: 16px;
    color: #1d4ed8;
}

.sem-downloads-file__name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.sem-downloads-file__order {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

/* Product link */
.sem-downloads-product a {
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
}

.sem-downloads-product a:hover {
    text-decoration: underline;
}

/* Badges */
.sem-downloads-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.sem-downloads-badge--unlimited {
    background: #dcfce7;
    color: #166534;
}

.sem-downloads-badge--limited {
    background: #fef3c7;
    color: #92400e;
}

/* Expiry text */
.sem-downloads-expiry {
    font-size: 13px;
    color: #374151;
}

/* Buttons */
.sem-downloads-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sem-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.sem-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.sem-btn--ghost {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.sem-btn--ghost:hover {
    background: #f3f4f6;
}

/* Empty state */
.sem-downloads-empty {
    text-align: center;
    padding: 28px 20px;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}

.sem-downloads-empty__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    margin: 0 auto 12px;
    background: #e5edff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sem-downloads-empty__icon svg {
    width: 22px;
    height: 22px;
    color: #1d4ed8;
}

.sem-downloads-empty__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.sem-downloads-empty__text {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .sem-account-panel {
        padding: 20px 18px 22px;
    }

    .sem-account-panel__header {
        margin: -20px -18px 18px;
        padding: 16px 18px;
    }

    .sem-downloads-table-wrapper {
        overflow-x: auto;
    }

    .sem-downloads-table {
        min-width: 560px;
    }
}
