.woocommerce-MyAccount-navigation-link--my-maps a,
.woocommerce-MyAccount-navigation-link--my-maps.is-active a,
.woocommerce-MyAccount-navigation-link--my-maps:hover a {
    color: #f5f7fa !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.threedm-account-library {
    --threedm-map-bg: #191a1f;
    --threedm-map-card: #2d2e33;
    --threedm-map-line: rgba(255, 255, 255, 0.1);
    --threedm-map-text: #f5f7fa;
    --threedm-map-muted: #9a9da5;
    --threedm-map-blue: #1473e6;
    color: var(--threedm-map-text);
}

.threedm-account-library-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
}

.threedm-account-library-head h2,
.threedm-account-library-head p {
    margin: 0;
}

.threedm-account-library-head h2 {
    color: var(--threedm-map-text);
    font-size: 26px;
}

.threedm-account-library-head p {
    margin-top: 6px;
    color: var(--threedm-map-muted);
}

.threedm-new-map {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--threedm-map-blue);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
}

.threedm-account-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 136px);
    gap: 14px;
    justify-content: start;
}

.threedm-account-map-card {
    position: relative;
    display: flex;
    width: 136px;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--threedm-map-card);
    color: var(--threedm-map-text) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.threedm-account-map-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: inherit !important;
    text-decoration: none !important;
}

.threedm-account-map-card:hover {
    border-color: var(--threedm-map-blue);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.threedm-account-map-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--threedm-map-line);
    background: #0e0f11;
}

.threedm-account-map-thumb > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.threedm-account-map-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(63, 65, 72, 0.72);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(5px);
}

.threedm-account-map-badge img {
    width: 28px !important;
    height: 28px !important;
    display: block;
    object-fit: contain;
}

.threedm-account-map-badge.is-unpurchased {
    background: rgba(80, 82, 90, 0.72);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.threedm-account-map-badge.is-unpurchased:hover,
.threedm-account-map-badge.is-unpurchased:focus-visible {
    background: #2a2b31;
    outline: 2px solid var(--threedm-map-blue);
    outline-offset: 1px;
}

.threedm-account-map-badge.is-unpurchased:active {
    transform: scale(0.94);
}

.threedm-account-map-delete-form {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    margin: 0;
}

.threedm-account-map-delete-form .threedm-account-map-badge {
    position: static;
}

.threedm-account-map-info {
    display: flex;
    min-width: 0;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.threedm-account-map-info strong {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    color: var(--threedm-map-blue);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.threedm-account-map-info small {
    color: var(--threedm-map-muted);
    font-size: 9px;
    white-space: nowrap;
}

.threedm-account-empty {
    padding: 42px 24px;
    border: 1px solid var(--threedm-map-line);
    border-radius: 9px;
    background: var(--threedm-map-bg);
    text-align: center;
}

.threedm-account-empty h3,
.threedm-account-empty p {
    margin: 0;
}

.threedm-account-empty p {
    margin-top: 6px;
    color: var(--threedm-map-muted);
}

@media (max-width: 600px) {
    .threedm-account-library-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .threedm-account-map-grid {
        grid-template-columns: repeat(auto-fill, 136px);
    }
}
